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