You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-08-07 18:02:52 +03:00
Unwanted file test.
File "2" is created after using cfg_writer.
This commit is contained in:
committed by
Alberto Fanjul
parent
45ecd6c72e
commit
6ed878d1b0
@@ -1,4 +1,4 @@
|
||||
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
||||
$(top_srcdir)/build-aux/tap-driver.sh
|
||||
TESTS = t0001-whitespace.sh t0002-invalid.sh t0003-sections.sh t0004-comments.sh t0005-new_var.sh t0006-duplication.sh
|
||||
TESTS = t0001-whitespace.sh t0002-invalid.sh t0003-sections.sh t0004-comments.sh t0005-new_var.sh t0006-duplication.sh t0007-unwanted_file.sh
|
||||
EXTRA_DIST = $(TESTS)
|
||||
|
20
t/t0007-unwanted_file.sh
Executable file
20
t/t0007-unwanted_file.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
test_description="check unwanted file"
|
||||
|
||||
. setup.sh
|
||||
|
||||
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0007
|
||||
|
||||
test_expect_success "Unwanted file" "
|
||||
export COVERAGE_NAME=file_2_parser
|
||||
cp ../.simplecov .
|
||||
cfg_parser $DIR_TEST/file_2.ini
|
||||
cfg_section_sec1
|
||||
var1=bar
|
||||
cfg_update sec1 var1
|
||||
cfg_writer > file_2.out
|
||||
test ! -e 2
|
||||
"
|
||||
|
||||
test_done
|
2
t/t0007/file_2.ini
Normal file
2
t/t0007/file_2.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[sec1]
|
||||
var1=foo
|
Reference in New Issue
Block a user