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.
This commit is contained in:
William Hubbs
2022-04-16 15:13:08 -05:00
committed by GitHub
parent 0b3f8750e7
commit fdfa6dbb0e
15 changed files with 143 additions and 114 deletions

View File

@@ -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

View File

@@ -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