From e101f94ff679faa8277165ec15dd48919972d0eb Mon Sep 17 00:00:00 2001 From: "Chorazewicz, Igor" Date: Fri, 5 Nov 2021 14:23:40 +0100 Subject: [PATCH] Run tests on CI --- .github/workflows/build-cachelib-centos.yml | 3 +++ .github/workflows/build-cachelib-debian.yml | 3 +++ run_tests.sh | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100755 run_tests.sh diff --git a/.github/workflows/build-cachelib-centos.yml b/.github/workflows/build-cachelib-centos.yml index 5cd28db1b6..ab5bf4d2cd 100644 --- a/.github/workflows/build-cachelib-centos.yml +++ b/.github/workflows/build-cachelib-centos.yml @@ -34,3 +34,6 @@ jobs: uses: actions/checkout@v2 - name: "build CacheLib using build script" run: ./contrib/build.sh -j -v -T + - name: "run tests" + timeout-minutes: 60 + run: cd opt/cachelib/tests && ../../../run_tests.sh diff --git a/.github/workflows/build-cachelib-debian.yml b/.github/workflows/build-cachelib-debian.yml index 182759e175..6aeda6e535 100644 --- a/.github/workflows/build-cachelib-debian.yml +++ b/.github/workflows/build-cachelib-debian.yml @@ -38,3 +38,6 @@ jobs: uses: actions/checkout@v2 - name: "build CacheLib using build script" run: ./contrib/build.sh -j -v -T + - name: "run tests" + timeout-minutes: 60 + run: cd opt/cachelib/tests && ../../../run_tests.sh diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000000..baa9bfee0a --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Newline separated list of tests to ignore +BLACKLIST="allocator-test-AllocationClassTest +allocator-test-NvmCacheTests +common-test-TimeTests +common-test-UtilTests +shm-test-test_page_size" + +find -type f \( -not -name "*bench*" -and -not -name "navy*" \) -executable | grep -vF "$BLACKLIST" | xargs -n1 bash -c