From d2135ad2c848b1f3205a1d04f043a70d6a0200ab Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 4 Jun 2020 17:31:18 -0500 Subject: [PATCH] CI run script version Change-Id: I0e806854eb7db12656f7f1770642f20247fa6734 --- test/CMakeLists.txt | 1 + test/run.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8ae06382ab..1f83e60975 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -66,5 +66,6 @@ add_subdirectory ( ${TEST_DIR} ${PROJECT_BINARY_DIR}/test/hsa ) ## copying run script execute_process ( COMMAND sh -xc "cp ${RUN_SCRIPT} ${PROJECT_BINARY_DIR}" ) +execute_process ( COMMAND sh -xc "ln -s run.sh ${PROJECT_BINARY_DIR}/run_ci.sh" ) ## copying tests output check script execute_process ( COMMAND sh -xc "cp ${ROOT_DIR}/script/check_trace.py ${PROJECT_BINARY_DIR}/test/." ) diff --git a/test/run.sh b/test/run.sh index cd3d2404be..af1fd7effb 100755 --- a/test/run.sh +++ b/test/run.sh @@ -23,13 +23,14 @@ ################################################################################ # cd to build directory +BIN_NAME=`basename $0` BIN_DIR=`dirname $0` cd $BIN_DIR # enable tools load failure reporting export HSA_TOOLS_REPORT_LOAD_FAILURE=1 # paths to ROC profiler and other libraries -if [ -n "$ROCTRACER_ROOT" ] ; then +if [ "$BIN_NAME" = "run_ci.sh" ] ; then export LD_LIBRARY_PATH=$PWD/../../build/roctracer else export LD_LIBRARY_PATH=$PWD