diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-08-26 13:54:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 11:54:10 -0700 |
| commit | 76999788902a8c50e8e5d0e867763e5ea2f10042 (patch) | |
| tree | 3c1e3375504df9995e7b4c040e2a0d467c898384 /.github | |
| parent | b2ca2d5a4efeae807d3c3f48f60235e47413b559 (diff) | |
Feature/record unit test (#4910)
* Fix the slang-test bug
Since we reorganize the build directory, now the libraries are
located at different directory with executables in non-Windows
platform, we have to change the code on how to find the dll directory.
* Integrate the record/replay test into slang-unit-test
We create a unit-test-record-replay.cpp to run the converted slang
examples in child process as our tests for the record-replay layer.
* Disable the test on Apple
Due to the limitation of current examples, we temporarily disable them
on apples.
Change the ci to make this test only be run on the gpu-equipped runners,
for other runners we add a white-list file
"expected-failure-record-replay-tests.txt".
* Remove 'hello-world' example from unit test
"hello-world" doesn't use gfx abstract library, instead it uses vk directly, it's
not a preferable way. So we will drop this test, instead, we will use cpu-hello-world
example.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b60556568..b80f41423 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,8 @@ jobs: - { config: release, test-category: full } # default not full gpu tests - full-gpu-tests: false + # The runners don't have a GPU by default except for the self-hosted ones + - has-gpu: false # Self-hosted aarch64 build - os: linux config: release @@ -62,6 +64,7 @@ jobs: test-category: smoke full-gpu-tests: false runs-on: [self-hosted, Linux, ARM64] + has-gpu: true # Self-hosted full gpu build - os: windows config: release @@ -70,6 +73,7 @@ jobs: test-category: full full-gpu-tests: true runs-on: [Windows, self-hosted] + has-gpu: true fail-fast: false runs-on: ${{ matrix.runs-on }} @@ -121,12 +125,19 @@ jobs: -server-count 8 \ -category ${{ matrix.test-category }} \ -api all-cpu - else + elif [[ "${{matrix.has-gpu}}" == "true" ]]; then "$bin_dir/slang-test" \ -use-test-server \ -category ${{ matrix.test-category }} \ -api all-dx12 \ -expected-failure-list tests/expected-failure-github.txt + else + "$bin_dir/slang-test" \ + -use-test-server \ + -category ${{ matrix.test-category }} \ + -api all-dx12 \ + -expected-failure-list tests/expected-failure-github.txt \ + -expected-failure-list tests/expected-failure-record-replay-tests.txt fi - name: Test Slang via glsl if: ${{matrix.full-gpu-tests}} |
