Browse Source

move tests

master
Connor Olding 2 years ago
parent
commit
d7c5652c1f
  1. 0
      tests/greatest.h
  2. 0
      tests/test.c
  3. 0
      tests/test_subject.c
  4. 7
      tests/testall

0
greatest.h → tests/greatest.h

0
test.c → tests/test.c

0
test_subject.c → tests/test_subject.c

7
testall → tests/testall

@ -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
Loading…
Cancel
Save