File tree 2 files changed +35
-3
lines changed
2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 731
731
732
732
daphne_msg " Build Daphne"
733
733
734
- cmake -S " $projectRoot " -B " $daphneBuildDir " -G Ninja $BUILD_CUDA $BUILD_ARROW $BUILD_FPGAOPENCL $BUILD_DEBUG \
734
+ cmake -S " $projectRoot " -B " $daphneBuildDir " -G Ninja $BUILD_CUDA $BUILD_ARROW $BUILD_FPGAOPENCL $BUILD_DEBUG \
735
735
-DCMAKE_PREFIX_PATH=" $installPrefix " -DANTLR_VERSION=" $antlrVersion " \
736
736
-DMLIR_DIR=" $buildPrefix /$llvmName /lib/cmake/mlir/" \
737
737
-DLLVM_DIR=" $buildPrefix /$llvmName /lib/cmake/llvm/"
Original file line number Diff line number Diff line change 26
26
# Stop immediately if any command fails.
27
27
set -e
28
28
29
+ catch2_options=" "
30
+ BUILD_CUDA=" "
31
+ BUILD_ARROW=" "
32
+ BUILD_FPGAOPENCL=" "
33
+ BUILD_DEBUG=" "
34
+
35
+ while [[ $# -gt 0 ]]; do
36
+ key=$1
37
+ shift
38
+ case $key in
39
+ --cuda)
40
+ echo using CUDA
41
+ export BUILD_CUDA=" --cuda"
42
+ ;;
43
+ --arrow)
44
+ echo using ARROW
45
+ BUILD_ARROW=" --arrow"
46
+ ;;
47
+ --fpgaopencl)
48
+ echo using FPGAOPENCL
49
+ export BUILD_FPGAOPENCL=" --fpgaopencl"
50
+ ;;
51
+ --debug)
52
+ echo building DEBUG version
53
+ export BUILD_DEBUG=" --debug"
54
+ ;;
55
+ * )
56
+ catch2_options=" ${catch2_options} ${key} "
57
+ ;;
58
+ esac
59
+ done
60
+
29
61
# Build tests.
30
- ./build.sh --target run_tests
62
+ ./build.sh $BUILD_CUDA $BUILD_ARROW $BUILD_FPGAOPENCL $BUILD_DEBUG --target run_tests
31
63
32
64
# Preparations for running DaphneLib (Python API) tests.
33
65
export PYTHONPATH=$PYTHONPATH :$( pwd) /src/
34
66
mkdir --parents src/api/python/tmp
35
67
36
68
# Run tests.
37
- build/test/run_tests $@
69
+ build/test/run_tests $catch2_options
38
70
39
71
set +e
You can’t perform that action at this time.
0 commit comments