2022-04-29 10:33:50 +00:00
|
|
|
name: uvg266_pr_tests
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types: [labeled]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
basic-test:
|
|
|
|
runs-on: self-hosted
|
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
2022-04-29 10:33:50 +00:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: make
|
2022-04-29 10:33:50 +00:00
|
|
|
run: make install -j
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: Run tests
|
2022-04-29 10:33:50 +00:00
|
|
|
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
test-ubsan:
|
|
|
|
runs-on: self-hosted
|
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
CFLAGS: -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
2022-04-29 10:33:50 +00:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: make
|
2022-04-29 10:33:50 +00:00
|
|
|
run: make install -j
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: Run tests
|
2022-04-29 10:33:50 +00:00
|
|
|
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
test-asan:
|
|
|
|
runs-on: self-hosted
|
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
CFLAGS: -fsanitize=address
|
|
|
|
ASAN_OPTIONS: detect_leaks=0
|
|
|
|
# AddressSanitizer adds some extra symbols so we expect a failure from
|
|
|
|
# the external symbols test.
|
2022-06-14 11:19:24 +00:00
|
|
|
XFAIL_TESTS: test_external_symbols
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
2022-04-29 10:33:50 +00:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: make
|
2022-04-29 10:33:50 +00:00
|
|
|
run: make install -j
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: Run tests
|
2022-04-29 10:33:50 +00:00
|
|
|
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|
2021-06-08 11:52:28 +00:00
|
|
|
|
2022-04-29 16:00:46 +00:00
|
|
|
# test-tsan:
|
|
|
|
# runs-on: self-hosted
|
|
|
|
# if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
|
|
# env:
|
|
|
|
# CC: gcc
|
|
|
|
# CFLAGS: -fsanitize=thread
|
2021-06-08 11:52:28 +00:00
|
|
|
|
2022-04-29 16:00:46 +00:00
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v2
|
|
|
|
# with:
|
|
|
|
# ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
# repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
# - name: cmake
|
|
|
|
# run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
|
|
|
# - name: make
|
|
|
|
# run: make install -j
|
|
|
|
# - name: Run tests
|
|
|
|
# run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
test-valgrind:
|
|
|
|
runs-on: self-hosted
|
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
|
|
|
|
|
|
env:
|
2022-04-28 19:01:02 +00:00
|
|
|
UVG266_OVERRIDE_angular_pred: generic
|
2021-06-08 11:52:28 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
2022-04-29 10:33:50 +00:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: make
|
2022-04-29 10:33:50 +00:00
|
|
|
run: make install -j
|
2021-06-08 11:52:28 +00:00
|
|
|
- name: Run tests
|
2022-04-29 10:33:50 +00:00
|
|
|
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|