diff options
| author | Damien George <damien@micropython.org> | 2021-06-05 22:28:05 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-06-06 22:52:25 +1000 |
| commit | 20a8f4f7ec2f691e2381a150ac6e246df9c58077 (patch) | |
| tree | f0c4da468b0ad8158c18df8837e079f05be20085 /tools | |
| parent | 784208543448e8022b185a82015e107f04960738 (diff) | |
tests/unix: Add ffi test for integer types.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/ci.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/ci.sh b/tools/ci.sh index 96c1bf89a..303957332 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -313,6 +313,10 @@ function ci_unix_build_helper { make ${MAKEOPTS} -C ports/unix "$@" } +function ci_unix_build_ffi_lib_helper { + $1 $2 -shared -o tests/unix/ffi_lib.so tests/unix/ffi_lib.c +} + function ci_unix_run_tests_helper { make -C ports/unix "$@" test } @@ -359,6 +363,7 @@ function ci_unix_minimal_run_tests { function ci_unix_standard_build { ci_unix_build_helper VARIANT=standard + ci_unix_build_ffi_lib_helper gcc } function ci_unix_standard_run_tests { @@ -379,6 +384,7 @@ function ci_unix_coverage_setup { function ci_unix_coverage_build { ci_unix_build_helper VARIANT=coverage + ci_unix_build_ffi_lib_helper gcc } function ci_unix_coverage_run_tests { @@ -403,6 +409,7 @@ function ci_unix_32bit_setup { function ci_unix_coverage_32bit_build { ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1 + ci_unix_build_ffi_lib_helper gcc -m32 } function ci_unix_coverage_32bit_run_tests { @@ -416,6 +423,7 @@ function ci_unix_coverage_32bit_run_native_mpy_tests { function ci_unix_nanbox_build { # Use Python 2 to check that it can run the build scripts ci_unix_build_helper PYTHON=python2 VARIANT=nanbox + ci_unix_build_ffi_lib_helper gcc -m32 } function ci_unix_nanbox_run_tests { @@ -424,6 +432,7 @@ function ci_unix_nanbox_run_tests { function ci_unix_float_build { ci_unix_build_helper VARIANT=standard CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT" + ci_unix_build_ffi_lib_helper gcc } function ci_unix_float_run_tests { @@ -521,6 +530,7 @@ function ci_unix_qemu_arm_setup { function ci_unix_qemu_arm_build { ci_unix_build_helper "${CI_UNIX_OPTS_QEMU_ARM[@]}" + ci_unix_build_ffi_lib_helper arm-linux-gnueabi-gcc } function ci_unix_qemu_arm_run_tests { |
