mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-28 22:52:54 +08:00
26 lines
938 B
Bash
Executable File
26 lines
938 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
gcc ../ini.c unittest.c -o unittest_multi
|
|
./unittest_multi > baseline_multi.txt
|
|
rm -f unittest_multi
|
|
|
|
gcc ../ini.c -DINI_ALLOW_MULTILINE=0 unittest.c -o unittest_single
|
|
./unittest_single > baseline_single.txt
|
|
rm -f unittest_single
|
|
|
|
gcc ../ini.c -DINI_ALLOW_INLINE_COMMENTS=0 unittest.c -o unittest_disallow_inline_comments
|
|
./unittest_disallow_inline_comments > baseline_disallow_inline_comments.txt
|
|
rm -f unittest_disallow_inline_comments
|
|
|
|
gcc ../ini.c -DINI_STOP_ON_FIRST_ERROR=1 unittest.c -o unittest_stop_on_first_error
|
|
./unittest_stop_on_first_error > baseline_stop_on_first_error.txt
|
|
rm -f unittest_stop_on_first_error
|
|
|
|
gcc ../ini.c -DINI_HANDLER_LINENO=1 unittest.c -o unittest_handler_lineno
|
|
./unittest_handler_lineno > baseline_handler_lineno.txt
|
|
rm -f unittest_handler_lineno
|
|
|
|
gcc ../ini.c -DINI_MAX_LINE=20 unittest_string.c -o unittest_string
|
|
./unittest_string > baseline_string.txt
|
|
rm -f unittest_string
|