From fdfa6dbb0e69742029d53f0e163b8e7e7e6860f5 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 16 Apr 2022 15:13:08 -0500 Subject: rewrite tests (#515) * rewrite tests to work with meson This ports our tests to meson and makes them able to be run in parallel. * add tests to ci * rewrite test/check-trailing-newlines in bash This test was using a GNU sed command which does not work on Alpine Linux. --- .github/workflows/ci-alpine-linux.yml | 5 ++++- .github/workflows/ci-ubuntu.yml | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ci-alpine-linux.yml b/.github/workflows/ci-alpine-linux.yml index 40920751..3c5fb06d 100644 --- a/.github/workflows/ci-alpine-linux.yml +++ b/.github/workflows/ci-alpine-linux.yml @@ -23,6 +23,9 @@ jobs: - run: meson setup builddir/ env: CC: gcc - - run: ninja -C builddir + - run: meson compile -C builddir + env: + CC: gcc + - run: meson test --verbose -C builddir env: CC: gcc diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml index 5a5c9ed7..1be9f0c5 100644 --- a/.github/workflows/ci-ubuntu.yml +++ b/.github/workflows/ci-ubuntu.yml @@ -16,6 +16,9 @@ jobs: - run: ninja -C builddir env: CC: gcc + - run: ninja test --verbose -C builddir + env: + CC: gcc clang-glibc: @@ -30,3 +33,6 @@ jobs: - run: ninja -C builddir env: CC: clang + - run: ninja test --verbose -C builddir + env: + CC: clang -- cgit v1.2.3