@@ -19,6 +19,13 @@ inputs:
1919    description : ' Name of LIT archive file' 
2020    required : false 
2121    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' 
2229  results_name_suffix :
2330    description : ' Name suffix of the results artifact' 
2431    required : true 
@@ -28,6 +35,10 @@ inputs:
2835  cmake_args :
2936    description : ' Extra arguments to cmake command' 
3037    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 
3142
3243post-if : false 
3344runs :
@@ -66,13 +77,33 @@ runs:
6677      ls -la 
6778      tar -xf ${{ inputs.lit_archive }} -C lit 
6879      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 }} 
6994   - name : Configure 
7095    shell : bash 
7196    run : | 
7297      echo "::group::CMake configuration" 
7398      mkdir build 
7499      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 
76107      echo "::endgroup::" 
77108   - name : Run testing 
78109    shell : bash 
81112      export PATH=$PWD/toolchain/bin/:$PATH 
82113      # TODO make this part of container build 
83114      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+       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" 
85116      if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then 
86117        source /runtimes/oneapi-tbb/env/vars.sh; 
87118      elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then 
@@ -103,13 +134,18 @@ runs:
103134      SYCL_PI_TRACE=-1 sycl-ls 
104135      echo "::endgroup::" 
105136      cd build 
106-       ninja check-sycl-all 
137+       if ${{ inputs.in_tree_e2e }} 
138+       then 
139+         ninja check-sycl-e2e 
140+       else 
141+         ninja check-sycl-all 
142+       fi 
107143   - name : Upload test results 
108144    uses : actions/upload-artifact@v1 
109145    if : always() 
110146    with :
111147      name : lit_results 
112-       path : build/results_${{ inputs.results_name_suffix }}.json 
148+       path : build/results_${{ inputs.results_name_suffix }}_${{ inputs.in_tree_e2e}} .json 
113149  - name : Cleanup 
114150    shell : bash 
115151    if : always() 
@@ -118,3 +154,4 @@ runs:
118154      rm -rf lit 
119155      rm -rf build 
120156      rm -rf llvm_test_suite 
157+       rm -rf test-e2e 
0 commit comments