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