From f791bf03f9cc1c561139c9701fe95b69302503e9 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 3 Mar 2021 22:17:45 +0000 Subject: [PATCH] TT#111150 Add new unit tests GitHub workflow This runs the test suite with sanitizers enabled. Change-Id: Ie3a80c094725d2604946f9557b3db8498f549f42 --- .github/workflows/unit-tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 000000000..7b17964e3 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,27 @@ +name: Unit Tests + +on: + push: + pull_request: + schedule: + - cron: '0 8 * * *' + +jobs: + test: + runs-on: ubuntu-latest + name: Run unit tests + + env: + FLAGS: "-fsanitize=address -fsanitize=leak -fsanitize=undefined" + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Get build dependencies + run: | + sudo apt-get build-dep -qq -y . + + - name: Run unit tests with sanitizers enabled + run: | + make CFLAGS="$FLAGS" LDFLAGS="$FLAGS" check