diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5428d54c..e63a014a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,4 +1,4 @@ -name: Kvazaar_pr_tests +name: uvg266_pr_tests on: pull_request_target: @@ -14,12 +14,12 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-ubsan: runs-on: self-hosted @@ -33,12 +33,12 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-asan: runs-on: self-hosted @@ -56,12 +56,12 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-tsan: runs-on: self-hosted @@ -75,12 +75,12 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-valgrind: runs-on: self-hosted @@ -94,9 +94,9 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && KVZ_TEST_VALGRIND=1 make check -j4 VERBOSE=1 \ No newline at end of file + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test \ No newline at end of file diff --git a/.github/workflows/uvg266.yml b/.github/workflows/uvg266.yml index 46ec7281..2a34d6ba 100644 --- a/.github/workflows/uvg266.yml +++ b/.github/workflows/uvg266.yml @@ -1,4 +1,4 @@ -name: Kvazaar_tests +name: uvg266_tests on: push: @@ -11,12 +11,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-ubsan: runs-on: self-hosted @@ -26,12 +26,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-asan: runs-on: self-hosted @@ -41,16 +41,16 @@ jobs: ASAN_OPTIONS: detect_leaks=0 # AddressSanitizer adds some extra symbols so we expect a failure from # the external symbols test. - XFAIL_TESTS: test_external_symbols.sh + XFAIL_TESTS: test_external_symbols steps: - uses: actions/checkout@v2 - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-tsan: runs-on: self-hosted @@ -60,12 +60,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test test-valgrind: runs-on: self-hosted @@ -75,9 +75,9 @@ jobs: steps: - uses: actions/checkout@v2 - - name: configure - run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) + - name: cmake + run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - name: make - run: make -j + run: make install -j - name: Run tests - run: export PATH="/home/docker/bin:${PATH}" && KVZ_TEST_VALGRIND=1 make check -j4 VERBOSE=1 + run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test