Skip to content

Commit b113fb7

Browse files
committed
Enable unit test
1 parent 9c5c8a6 commit b113fb7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/build_test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
export CXX=clang++
2626
mkdir build_rel
2727
cd build_rel
28-
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_SVE_256=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
28+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_SVE_256=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
2929
make install package -j4
3030
3131
- name: Build debug
@@ -55,7 +55,7 @@ jobs:
5555
pip install numpy Pillow
5656
5757
- name: Run system tests
58-
# GitHub is using Cobalt-100, which has 128-bit SVE/SVE2 so we cannot test sve_256 here
58+
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
5959
run: |
6060
python ./Test/astc_test_functional.py --encoder none
6161
python ./Test/astc_test_functional.py --encoder neon
@@ -65,7 +65,8 @@ jobs:
6565
python ./Test/astc_test_image.py --encoder sve_128 --test-set Small
6666
6767
- name: Run unit tests
68-
run: ctest
68+
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
69+
run: ctest -E test-unit-sve_256
6970
working-directory: build_rel
7071

7172
build-ubuntu-arm64-gcc:

Source/UnitTest/cmake_core.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,3 @@ target_link_libraries(${ASTCENC_TEST}
170170

171171
add_test(NAME ${ASTCENC_TEST}
172172
COMMAND ${ASTCENC_TEST})
173-
174-
install(TARGETS ${ASTCENC_TEST})

0 commit comments

Comments
 (0)