summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-02-28 18:54:10 +1100
committerDamien George <damien@micropython.org>2022-02-28 19:02:58 +1100
commit8626dcd6238e6a85a366f64dccf33724142653b6 (patch)
tree9123fdd85aad6cf0a38acf7ed03b861e10f2ce34
parentc4b8dae4387b3a01cf4139c75f0852c5a6ffc108 (diff)
tools/ci.sh: Run performance benchmark as part of all unix test runs.
This tests that the performance benchmarks run without error. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--.github/workflows/ports_unix.yml2
-rwxr-xr-xtools/ci.sh5
2 files changed, 1 insertions, 6 deletions
diff --git a/.github/workflows/ports_unix.yml b/.github/workflows/ports_unix.yml
index 4e75172b6..dbd213cdf 100644
--- a/.github/workflows/ports_unix.yml
+++ b/.github/workflows/ports_unix.yml
@@ -45,8 +45,6 @@ jobs:
run: source tools/ci.sh && ci_unix_standard_build
- name: Run main test suite
run: source tools/ci.sh && ci_unix_standard_run_tests
- - name: Run performance benchmarks
- run: source tools/ci.sh && ci_unix_standard_run_perfbench
- name: Print failures
if: failure()
run: tests/run-tests.py --print-failures
diff --git a/tools/ci.sh b/tools/ci.sh
index 4ae21859d..dee4b387b 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -385,6 +385,7 @@ function ci_unix_run_tests_full_helper {
fi
make -C ports/unix VARIANT=$variant "$@" test_full
(cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/$micropython ./run-multitests.py multi_net/*.py)
+ (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/$micropython ./run-perfbench.py 1000 1000)
}
function ci_native_mpy_modules_build {
@@ -424,10 +425,6 @@ function ci_unix_standard_run_tests {
ci_unix_run_tests_full_helper standard
}
-function ci_unix_standard_run_perfbench {
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython ./run-perfbench.py 1000 1000)
-}
-
function ci_unix_dev_build {
ci_unix_build_helper VARIANT=dev
}