run-tests.sh 632 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. #
  3. # This script can be used to run the installed neon test suite
  4. # against an installed copy of the neon library.
  5. #
  6. # enable glibc malloc safety checks
  7. MALLOC_CHECK_=2
  8. MALLOC_PERTURB_=242
  9. export MALLOC_CHECK_ MALLOC_PERTURB_
  10. cd data
  11. if test -x ../bin/ssl; then
  12. rm -rf ca
  13. touch ../configure
  14. echo "INIT: generating SSL ceritifcates..."
  15. if sh ./makekeys 2> makekeys.out; then :; else
  16. echo FAIL: could not generate SSL certificates
  17. exit 2
  18. fi
  19. fi
  20. for t in ../bin/*; do
  21. if ${t}; then :; else
  22. echo FAIL: ${t}
  23. exit 1
  24. fi
  25. done
  26. echo "PASS: all tests passed"
  27. exit 0