From 9b29e01816fd1a752eff4e0e1419e4bb3b97769e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 29 May 2020 16:09:13 -0500 Subject: [PATCH] fixin build: check script residing in build area Change-Id: I1a3d794b24c7506d5e24c341c61fe45b31238002 [ROCm/roctracer commit: 1e7650074a8f3c93683a8f51c1d3c7d10ad8cfa7] --- projects/roctracer/test/CMakeLists.txt | 2 ++ projects/roctracer/test/run.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/roctracer/test/CMakeLists.txt b/projects/roctracer/test/CMakeLists.txt index c84dde5d65..8ae06382ab 100644 --- a/projects/roctracer/test/CMakeLists.txt +++ b/projects/roctracer/test/CMakeLists.txt @@ -66,3 +66,5 @@ add_subdirectory ( ${TEST_DIR} ${PROJECT_BINARY_DIR}/test/hsa ) ## copying run script execute_process ( COMMAND sh -xc "cp ${RUN_SCRIPT} ${PROJECT_BINARY_DIR}" ) +## copying tests output check script +execute_process ( COMMAND sh -xc "cp ${ROOT_DIR}/script/check_trace.py ${PROJECT_BINARY_DIR}/test/." ) diff --git a/projects/roctracer/test/run.sh b/projects/roctracer/test/run.sh index 87389fc344..38a8d48dd6 100755 --- a/projects/roctracer/test/run.sh +++ b/projects/roctracer/test/run.sh @@ -60,7 +60,7 @@ eval_test() { eval "$cmdline" | tee $test_trace is_failed=$? if [ $is_failed = 0 ] ; then - python ../script/check_trace.py -in $test_name + python ./test/check_trace.py -in $test_name is_failed=$? fi if [ $is_failed = 0 ] ; then @@ -79,7 +79,7 @@ eval_test() { # rocTrecer is used explicitely by test eval_test "standalone C test" "LD_PRELOAD=libkfdwrapper64.so ./test/MatrixTranspose_ctest" MatrixTranspose_ctest_trace eval_test "standalone HIP test" "LD_PRELOAD=libkfdwrapper64.so ./test/MatrixTranspose_test" MatrixTranspose_test_trace -eval_test "standalone HIP test" "LD_PRELOAD=libkfdwrapper64.so ./test/MatrixTranspose_hipaact_test" MatrixTranspose_hipaact_test_trace +eval_test "standalone HIP hipaact test" "LD_PRELOAD=libkfdwrapper64.so ./test/MatrixTranspose_hipaact_test" MatrixTranspose_hipaact_test_trace eval_test "standalone HIP MGPU test" "LD_PRELOAD=libkfdwrapper64.so ./test/MatrixTranspose_mgpu" MatrixTranspose_mgpu_trace # Tool test