1
0

run-testsuite 605 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. CFLAGS="$(dpkg-buildflags --get CFLAGS)"
  4. CPPFLAGS="$(dpkg-buildflags --get CPPFLAGS)"
  5. LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
  6. cd tests
  7. export VECTORS='vectors'
  8. EXIT=0
  9. for f in $(find . -maxdepth 1 -type f -executable | sort) ; do
  10. echo "Testing: $(basename "$f")"
  11. chronic "$f" || EXIT=1
  12. done
  13. for f in $(find . -maxdepth 1 -type f -name '*.c' | sort) ; do
  14. BN="$(basename "$f")"
  15. echo "Compiling: $BN"
  16. PROG="${BN%%.c}"
  17. cc $CFLAGS $CPPFLAGS $LDFLAGS "$f" -o "$PROG" -ljose -ljansson
  18. echo "Testing: $PROG"
  19. chronic "./$PROG" || EXIT=1
  20. done
  21. exit "$EXIT"