1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-27 02:48:51 +03:00
bash-ini-parser/t/t0001-parse.sh
albfan b9a3ce5bfc Added test suite
relates to #4
2015-05-16 18:38:46 +02:00

20 lines
335 B
Bash
Executable File

#!/bin/sh
SHARNESS_TEST_EXTENSION="sh"
test_description="check parse"
. sharness/sharness.sh
. ../../bash-ini-parser
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0001
test_expect_success "Whitespace parse" "
cfg_parser $DIR_TEST/test1.ini &&
cfg_writer > test1.out &&
diff -u test1.out $DIR_TEST/test1.out.correct
"
test_done