move tests

This commit is contained in:
Connor Olding 2019-06-28 13:14:49 -07:00
parent 71f1a7e138
commit d7c5652c1f
4 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@ set -e
CC=${CC:-gcc}
TEST_DIR="$(readlink -f "$(dirname "$0")")"
cd "$TEST_DIR"
# ensure all tests are queued to run.
awk '
/^TEST/ {
@ -31,6 +34,6 @@ END {
}
' test.c
$CC -std=c99 -Wall -Wextra -Wno-unused -Werror $CFLAGS test_subject.c -o test_subject
$CC -std=c99 -Wall -Wextra -Wno-unused -Werror $CFLAGS test.c -o test
$CC -std=c99 -I.. -Wall -Wextra -Wno-unused -Werror $CFLAGS test_subject.c -o test_subject
$CC -std=c99 -I.. -Wall -Wextra -Wno-unused -Werror $CFLAGS test.c -o test
./test