update CTest

This commit is contained in:
Ruobing Han 2022-09-25 12:58:58 -04:00
parent 118af6c074
commit a5235206e7
4 changed files with 9 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=${{ github.workspace }}/cuda-10.1 cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=${{ github.workspace }}/cuda-10.1 -DHETERO_MARK_DATA=${{ github.workspace }}/data
make -j8 make -j8
- name: clone SC evaluation code - name: clone SC evaluation code
run: | run: |

View File

@ -53,4 +53,6 @@ set(GCC_COVERAGE_LINK_FLAGS
add_subdirectory(compilation) add_subdirectory(compilation)
add_subdirectory(runtime) add_subdirectory(runtime)
enable_testing() enable_testing()
option(HETERO_MARK_DATA "The path to download hetero-mark dataset." /tmp/data)
add_subdirectory(tests) add_subdirectory(tests)

View File

@ -18,5 +18,6 @@ foreach(case IN LISTS TESTCASES)
NAME "${case}" NAME "${case}"
COMMAND COMMAND
${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/runHeteroMark.sh ${case} ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/runHeteroMark.sh ${case}
${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR}) ${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR}
${HETERO_MARK_DATA})
endforeach() endforeach()

View File

@ -4,12 +4,14 @@ TestCase=$1
CUDA_PATH=$2 CUDA_PATH=$2
HeteroMark_PATH=$3 HeteroMark_PATH=$3
CuPBoP_BUILD_PATH=$4 CuPBoP_BUILD_PATH=$4
DATASET_PATH=/tmp/data DATASET_PATH=$5
if [ ! -d $DATASET_PATH ]; then if [ ! -d $DATASET_PATH ]; then
echo "Download Hetero Mark dataset" echo "Download Hetero Mark dataset"
cd /tmp mkdir $DATASET_PATH
cd $DATASET_PATH
wget https://www.dropbox.com/s/ie2hcxw9lfoghg8/data.tar.gz?dl=1 wget https://www.dropbox.com/s/ie2hcxw9lfoghg8/data.tar.gz?dl=1
tar -xzf 'data.tar.gz?dl=1' tar -xzf 'data.tar.gz?dl=1'
mv data/* .
fi fi
mkdir -p $TestCase mkdir -p $TestCase