diff options
| author | David Bremner <david@tethera.net> | 2016-06-04 09:29:14 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-06-13 21:52:33 -0300 |
| commit | cc1a6d2a947ef8c2577a77027d69fce012ae91fd (patch) | |
| tree | 8cf495c6eff6ddaa0f81912878226e3a9a0be833 /test/test-lib.sh | |
| parent | 57bd4cf3221a56f8fd8a27af541d6cc8b4011b62 (diff) | |
test: factor out some boilerplate from C tests
The trick of having a common header file doesn't work to share between
test scripts, so make an include file in the test directory.
The use of #include <notmuch-test.h> looks slightly pretentious, but
the include file is not actually in the current (temporary) directory.
Diffstat (limited to 'test/test-lib.sh')
| -rw-r--r-- | test/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index 54c65b60..aac0343b 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -1206,7 +1206,7 @@ test_C () { exec_file="test${test_count}" test_file="${exec_file}.c" cat > ${test_file} - ${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY}/../lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc + ${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY} -I${TEST_DIRECTORY}/../lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc echo "== stdout ==" > OUTPUT.stdout echo "== stderr ==" > OUTPUT.stderr ./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr |
