File tree Expand file tree Collapse file tree 3 files changed +27
-12
lines changed
sycl/test-e2e/Basic/bit_cast Expand file tree Collapse file tree 3 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,26 @@ runs:
60
60
run : |
61
61
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
62
62
- name : SYCL End-to-end tests
63
- shell : bash {0}
63
+ id : run_e2e
64
+ continue-on-error : true
65
+ shell : bash
64
66
env :
65
67
LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param print_features=True --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
66
68
run : |
67
69
ninja -C build-e2e check-sycl-e2e > e2e.log 2>&1
68
- exit_code=$?
70
+ - name : E2E logs
71
+ if : ${{ always() }}
72
+ shell : bash
73
+ run : |
69
74
cat e2e.log
70
- if [ $exit_code -ne 0 ]; then
75
+ - name : Report E2E failures
76
+ if : steps.run_e2e.outcome != 'success'
77
+ shell : bash
78
+ run : |
71
79
# This is duplicated between lin/win, updates must change both.
72
80
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
73
- fi
74
- exit $exit_code
81
+ awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log
82
+ exit 1
75
83
76
84
- name : Pack E2E binaries
77
85
if : ${{ always() && !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode != 'run-only'}}
Original file line number Diff line number Diff line change @@ -72,20 +72,26 @@ runs:
72
72
run : ls build-e2e > e2econf_files.txt
73
73
74
74
- name : Run End-to-End tests
75
- shell : bash {0}
75
+ id : run_e2e
76
+ continue-on-error : true
77
+ shell : bash
76
78
env :
77
79
LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time ${{ inputs.e2e_testing_mode == 'run-only' && 1200 || 3600 }} --time-tests --param print_features=True --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
78
80
run : |
79
- # Run E2E tests.
80
81
cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1
81
-
82
- exit_code=$?
82
+ - name : E2E logs
83
+ if : ${{ always() }}
84
+ shell : bash
85
+ run : |
83
86
cat e2e.log
84
- if [ $exit_code -ne 0 ]; then
87
+ - name : Report E2E failures
88
+ if : steps.run_e2e.outcome != 'success'
89
+ shell : bash
90
+ run : |
85
91
# This is duplicated between lin/win, updates must change both.
86
92
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
87
- fi
88
- exit $exit_code
93
+ awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log
94
+ exit 1
89
95
90
96
# Github CI doesn't support containers on Windows, so we cannot guarantee
91
97
# that paths are the same between building and running systems. To avoid
Original file line number Diff line number Diff line change 2
2
// RUN: %{run} %t.out
3
3
// RUN: %if windows %{ %{build} -fsycl-host-compiler=cl -fsycl-host-compiler-options='/std:c++17 /Zc:__cplusplus' -o %t2.out %}
4
4
// RUN: %if windows %{ %{run} %t2.out %}
5
+ // RUN: false
5
6
6
7
#include < sycl/detail/core.hpp>
7
8
You can’t perform that action at this time.
0 commit comments