Skip to content

Commit

Permalink
More experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel committed Apr 24, 2024
1 parent 2ef17a6 commit 6d68d28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ on:
Suggested variables: for E2E tests - LIT_FILTER, LIT_FILTER_OUT.
LIT_OPTS won't work as we redefine it as part of this workflow.
For SYCL CTS - CTS_TEST_ARGS that will be passed as an argument to the
For SYCL CTS - CTS_TESTS_TO_BUILD that will be passed as an argument to the
test_all executable.
Format: '{"VAR1":"VAL1","VAR2":"VAL2",...}'
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
$CMAKE_EXTRA_ARGS
# Ignore errors so that if one category build fails others still have a
# chance to finish and be executed at the run stage.
ninja -C build-cts -k0
ninja -C build-cts -k0 $( [[ -n "$CTS_TESTS_TO_BUILD" ]] && echo "$CTS_TESTS_TO_BUILD" || echo "test_conformance")
- name: SYCL CTS List devices
# Proceed with execution even if the 'build' step did not succeed.
Expand Down Expand Up @@ -340,9 +340,10 @@ jobs:
# - crash on one would not affect others
# - multiple tests could be run in parallel
# test_all contains all categories, so skip it
which time timeout
mkdir logs
find build-cts/bin/ ! -name 'test_all' -print | \
xargs -t -I % -P 8 sh -c 'log=logs/$(basename %).log ; echo % >$log ; /usr/bin/time -p timeout 10s % >>$log 2>&1 ; ret=$? ; echo "exit code: $ret" >>$log ; exit $ret'
find build-cts/bin/ -print | \
xargs -t -I % -P 8 sh -c 'log=logs/$(basename %).log ; echo % >$log ; % >>$log 2>&1 ; ret=$? ; echo "exit code: $ret" >>$log ; exit $ret'
ret=$?
for f in logs/* ; do
Expand Down

0 comments on commit 6d68d28

Please sign in to comment.