Merge pull request #318 from ROCm-Developer-Tools/emankov

[HIPIFY][#311][fix] Get rid of socat in run_test.sh
Dieser Commit ist enthalten in:
Evgeny Mankov
2018-01-15 15:35:04 +03:00
committet von GitHub
Commit 56f297c2ca
2 geänderte Dateien mit 0 neuen und 14 gelöschten Zeilen
-3
Datei anzeigen
@@ -78,9 +78,6 @@ if (HIPIFY_CLANG_TESTS)
require_program(lit)
require_program(FileCheck)
if(NOT WIN32)
require_program(socat)
endif()
# Populates CUDA_TOOLKIT_ROOT_DIR, which is then applied to the lit config to give the
# value of --cuda-path for the test runs.
-11
Datei anzeigen
@@ -13,16 +13,5 @@ shift 3
# Remaining args are the ones to forward to clang proper.
# Time for the classic insane little trick for making colour output work.
# A self-deleting shell-script that does the thing we want to do...
TMP_SCRIPT=$(mktemp)
cat << EOF > $TMP_SCRIPT
set -o errexit
set -o xtrace
rm $TMP_SCRIPT
$HIPIFY -o=$TMP_FILE $IN_FILE -- $@ && cat $TMP_FILE | sed -Ee 's|//.+|// |g' | FileCheck $IN_FILE
EOF
chmod a+x $TMP_SCRIPT
# Run the script via socat, spawning a virtual terminal and propagating exit code, and hence failure.
socat -du EXEC:$TMP_SCRIPT,pty,stderr STDOUT