mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-04-19 13:22:14 +03:00
20 lines
399 B
Bash
Executable File
20 lines
399 B
Bash
Executable File
#!/bin/bash
|
|
|
|
test_description="check sections"
|
|
|
|
. setup.sh
|
|
|
|
test_expect_success "Parse sections" "
|
|
export COVERAGE_NAME=sections_parser
|
|
cp ../.simplecov .
|
|
$COMMAND cfg_parser $DIR_TEST/sections.ini
|
|
export COVERAGE_NAME=sections_writer
|
|
$COMMAND cfg_writer > sections.out
|
|
if [-z $COVERAGE ]
|
|
then
|
|
diff $DIR_TEST/sections.out.correct sections.out
|
|
fi
|
|
"
|
|
|
|
test_done
|