make-bin-testsuite 828 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # This is a wrapper for make to build a binary with builtin testsuite.
  4. # It should be run just like make (i.e. extra vars can be passed on the
  5. # command line, etc.), e.g.:
  6. #
  7. # ./make-bin-testsuite BOARD=qemu_cortex_m3
  8. # ./make-bin-testsuite BOARD=qemu_cortex_m3 run
  9. #
  10. (cd ../../tests; ./run-tests --write-exp)
  11. (cd ../../tests; ./run-tests --list-tests --target=minimal \
  12. -e async -e intbig -e int_big -e builtin_help -e memstats -e bytes_compare3 -e class_reverse_op \
  13. -e /set -e frozenset -e complex -e const -e native -e viper \
  14. -e 'float_divmod\.' -e float_parse_doubleprec -e float/true_value -e float/types \
  15. | ../tools/tinytest-codegen.py --stdin) > bin-testsuite.c
  16. make \
  17. CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_bin_testsuite.h>" -DTEST=\"bin-testsuite.c\" -DNO_FORKING' \
  18. "$@"