@@ -19,6 +19,13 @@ inputs:
19
19
description : ' Name of LIT archive file'
20
20
required : false
21
21
default : ' lit.tar.xz'
22
+ e2e_tests_artifact :
23
+ description : ' Name of the artifact, that contains End-to-End LIT Tests'
24
+ required : true
25
+ e2e_tests_archive :
26
+ description : ' Name of End-to-End LIT Tests archive file'
27
+ required : false
28
+ default : ' e2e_tests.tar.xz'
22
29
results_name_suffix :
23
30
description : ' Name suffix of the results artifact'
24
31
required : true
@@ -28,6 +35,10 @@ inputs:
28
35
cmake_args :
29
36
description : ' Extra arguments to cmake command'
30
37
required : false
38
+ in_tree_e2e :
39
+ description : " Flag directing to use in-tree End-to-End LIT tests"
40
+ required : false
41
+ default : false
31
42
32
43
post-if : false
33
44
runs :
@@ -66,13 +77,33 @@ runs:
66
77
ls -la
67
78
tar -xf ${{ inputs.lit_archive }} -C lit
68
79
rm -f ${{ inputs.lit_archive }}
80
+ - name : Download End-to-End LIT Tests
81
+ if : inputs.in_tree_e2e
82
+ uses : actions/download-artifact@v3
83
+ with :
84
+ name : ${{ inputs.e2e_tests_artifact }}
85
+ - name : Extract End-to-End LIT Tests
86
+ if : inputs.in_tree_e2e
87
+ shell : bash
88
+ run : |
89
+ mkdir test_e2e
90
+ ls -la
91
+ tar -xf ${{ inputs.e2e_tests_archive }} -C test_e2e
92
+ ls -R test_e2e
93
+ rm -f ${{ inputs.e2e_tests_archive }}
69
94
- name : Configure
70
95
shell : bash
71
96
run : |
72
97
echo "::group::CMake configuration"
73
98
mkdir build
74
99
export PATH=$PWD/toolchain/bin/:$PATH
75
- cmake -GNinja -B./build -S./llvm_test_suite -DTEST_SUITE_SUBDIRS=SYCL -DCHECK_SYCL_ALL="${{ inputs.check_sycl_all }}" -DCMAKE_CXX_COMPILER="$PWD/toolchain/bin/clang++" -DTEST_SUITE_LIT="$PWD/lit/lit.py" ${{ inputs.cmake_args }}
100
+ if ${{ inputs.in_tree_e2e }}
101
+ then
102
+ # TODO: Rename check_sycl_all input
103
+ cmake -GNinja -B./build -S./test_e2e -DSYCL_TEST_E2E_TARGETS="${{ inputs.check_sycl_all }}" -DCMAKE_CXX_COMPILER="$PWD/toolchain/bin/clang++" -DLLVM_LIT="$PWD/lit/lit.py" ${{ inputs.cmake_args }}
104
+ else
105
+ cmake -GNinja -B./build -S./llvm_test_suite -DTEST_SUITE_SUBDIRS=SYCL -DCHECK_SYCL_ALL="${{ inputs.check_sycl_all }}" -DCMAKE_CXX_COMPILER="$PWD/toolchain/bin/clang++" -DTEST_SUITE_LIT="$PWD/lit/lit.py" ${{ inputs.cmake_args }}
106
+ fi
76
107
echo "::endgroup::"
77
108
- name : Run testing
78
109
shell : bash
@@ -81,7 +112,10 @@ runs:
81
112
export PATH=$PWD/toolchain/bin/:$PATH
82
113
# TODO make this part of container build
83
114
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/hip/lib/:/opt/rocm/lib
84
- export LIT_OPTS="-v --no-progress-bar --show-unsupported --max-time 3600 --time-tests -o $PWD/build/results_${{ inputs.results_name_suffix }}.json"
115
+ # For standalone llvm-test-suite
116
+ export LIT_OPTS="-v --no-progress-bar --show-unsupported --max-time 3600 --time-tests -o $PWD/build/results_${{ inputs.results_name_suffix }}_${{ inputs.in_tree_e2e }}.json"
117
+ # For in-tree End-to-End tests
118
+ export SYCL_TEST_E2E_TARGETS="-v --no-progress-bar --show-unsupported --max-time 3600 --time-tests -o $PWD/build/results_${{ inputs.results_name_suffix }}_${{ inputs.in_tree_e2e }}.json"
85
119
if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
86
120
source /runtimes/oneapi-tbb/env/vars.sh;
87
121
elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then
@@ -103,13 +137,18 @@ runs:
103
137
SYCL_PI_TRACE=-1 sycl-ls
104
138
echo "::endgroup::"
105
139
cd build
106
- ninja check-sycl-all
140
+ if ${{ inputs.in_tree_e2e }}
141
+ then
142
+ ninja check-sycl-e2e
143
+ else
144
+ ninja check-sycl-all
145
+ fi
107
146
- name : Upload test results
108
147
uses : actions/upload-artifact@v1
109
148
if : always()
110
149
with :
111
150
name : lit_results
112
- path : build/results_${{ inputs.results_name_suffix }}.json
151
+ path : build/results_${{ inputs.results_name_suffix }}_${{ inputs.in_tree_e2e}} .json
113
152
- name : Cleanup
114
153
shell : bash
115
154
if : always()
@@ -118,3 +157,4 @@ runs:
118
157
rm -rf lit
119
158
rm -rf build
120
159
rm -rf llvm_test_suite
160
+ rm -rf test-e2e
0 commit comments