From cd1df65dc36ac35d526de195284d5ebf18e1f92b Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 17 Dec 2021 18:52:36 +0000 Subject: test: Add ctests for generation functions. This commit also enforces error code checking on functions inside of the generation functions, such as for `libwifi_quick_add_tag`. --- .github/workflows/x86_64.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/x86_64.yml b/.github/workflows/x86_64.yml index 844a109..cc90e1d 100644 --- a/.github/workflows/x86_64.yml +++ b/.github/workflows/x86_64.yml @@ -22,6 +22,43 @@ jobs: run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - name: Build X86_64 + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake --build . --config $BUILD_TYPE + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build X86_64 shell: bash + working-directory: ${{github.workspace}}/build run: cmake --build . --config $BUILD_TYPE + + - name: Create Test Environment + run: cmake -E make_directory ${{github.workspace}}/test/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake ${{github.workspace}}/test + + - name: Build Tests + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake --build . + + - name: Test X86_64 + shell: bash + working-directory: ${{github.workspace}}/test/build + run: ctest --output-on-failure -- cgit 1.4.1