File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,11 @@ jobs:
51
51
with :
52
52
source-dir : test
53
53
targets : test_c test_cpp
54
+ run_test : true
54
55
c-flags : ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }}
55
56
cxx-flags : ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }}
56
57
args : -D CHECK_SURPASS_WARNING=ON
57
-
58
- - name : Run the build results
59
- run : |
60
- ${{ matrix.compiler == 'msvc' && 'test\build\Debug\test_c.exe' || 'test/build/test_c' }}
61
- ${{ matrix.compiler == 'msvc' && 'test\build\Debug\test_cpp.exe' || 'test/build/test_cpp' }}
58
+ test_args : -C test
62
59
63
60
specified-compiler-usage :
64
61
runs-on : ${{ matrix.os }}-latest
@@ -74,13 +71,12 @@ jobs:
74
71
with :
75
72
source-dir : test
76
73
targets : test_c test_cpp
74
+ run_test : true
77
75
generator : Ninja
78
76
c-compiler : clang
79
77
cxx-compiler : clang++
80
78
args : -D CHECK_USING_CLANG=ON
81
-
82
- - name : Run the build results
83
- run : test/build/test_c && test/build/test_cpp
79
+ test_args : -C test
84
80
85
81
specified-generator-usage :
86
82
runs-on : ${{ matrix.os }}-latest
Original file line number Diff line number Diff line change @@ -28,4 +28,5 @@ foreach(LANG ${LANGS})
28
28
$< $< BOOL:${CHECK_USING_CLANG} > :CHECK_USING_CLANG>
29
29
$< $< BOOL:${CHECK_SURPASS_WARNING} > :CHECK_SURPASS_WARNING>
30
30
)
31
+ add_test (NAME test_${LANG} CONFIGURATIONS test COMMAND $< TARGET_FILE:test_${LANG} > )
31
32
endforeach ()
You can’t perform that action at this time.
0 commit comments