@@ -19,13 +19,6 @@ 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'
29
22
results_name_suffix :
30
23
description : ' Name suffix of the results artifact'
31
24
required : true
@@ -35,10 +28,6 @@ inputs:
35
28
cmake_args :
36
29
description : ' Extra arguments to cmake command'
37
30
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
42
31
43
32
post-if : false
44
33
runs :
@@ -77,33 +66,13 @@ runs:
77
66
ls -la
78
67
tar -xf ${{ inputs.lit_archive }} -C lit
79
68
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 }}
94
69
- name : Configure
95
70
shell : bash
96
71
run : |
97
72
echo "::group::CMake configuration"
98
73
mkdir build
99
74
export PATH=$PWD/toolchain/bin/:$PATH
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
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 }}
107
76
echo "::endgroup::"
108
77
- name : Run testing
109
78
shell : bash
112
81
export PATH=$PWD/toolchain/bin/:$PATH
113
82
# TODO make this part of container build
114
83
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/hip/lib/:/opt/rocm/lib
115
- 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"
84
+ export LIT_OPTS="-v --no-progress-bar --show-unsupported --max-time 3600 --time-tests -o $PWD/build/results_${{ inputs.results_name_suffix }}.json"
116
85
if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
117
86
source /runtimes/oneapi-tbb/env/vars.sh;
118
87
elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then
@@ -134,18 +103,13 @@ runs:
134
103
SYCL_PI_TRACE=-1 sycl-ls
135
104
echo "::endgroup::"
136
105
cd build
137
- if ${{ inputs.in_tree_e2e }}
138
- then
139
- ninja check-sycl-e2e
140
- else
141
- ninja check-sycl-all
142
- fi
106
+ ninja check-sycl-all
143
107
- name : Upload test results
144
108
uses : actions/upload-artifact@v1
145
109
if : always()
146
110
with :
147
111
name : lit_results
148
- path : build/results_${{ inputs.results_name_suffix }}_${{ inputs.in_tree_e2e}} .json
112
+ path : build/results_${{ inputs.results_name_suffix }}.json
149
113
- name : Cleanup
150
114
shell : bash
151
115
if : always()
@@ -154,4 +118,3 @@ runs:
154
118
rm -rf lit
155
119
rm -rf build
156
120
rm -rf llvm_test_suite
157
- rm -rf test-e2e
0 commit comments