tests: cram: add uci import testing on fuzzer corpus
[project/uci.git] / tests / cram / test_uci_import.t
1 check that uci import is producing expected results:
2
3 $ [ -n "$BUILD_BIN_DIR" ] && export PATH="$BUILD_BIN_DIR:$PATH"
4 $ export TEST_INPUTS="$TESTDIR/inputs"
5 $ export FUZZ_CORPUS="$TESTDIR/../fuzz/corpus"
6
7 $ for file in $(LC_ALL=C find $FUZZ_CORPUS -type f | sort ); do
8 > valgrind --quiet --leak-check=full uci import -f $file; \
9 > done
10 uci: I/O error
11 uci: Parse error (invalid command) at line 0, byte 0
12 uci: Parse error (invalid command) at line 1, byte 18
13 uci: I/O error
14 uci: I/O error
15 [1]