You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our build script build.sh is used to build any target of the DAPHNE system. It has several command line arguments (see ./build.sh -h). Some of those can be used to turn certain features on or off (e.g., --cuda and --arrow).
Our test script test.sh is used to run the test cases. Internally, it first builds the run_tests target (a catch2 application) by invoking build.sh --target run_tests. test.sh accepts arbitrary arguments and passes them on to the executable run_tests. That way, we can use any catch2 arguments to influence the test execution. For instance, we can use that to run only test cases of kernels and print the names of the executed test cases and durations by ./test.sh [kernels] -d yes.
Unfortunately, test.sh does currently not accept any additional arguments to build.sh. Thus, we cannot run test cases requiring, e.g., --cuda or --arrow.
test.sh should be changed to support both arguments to build.sh and arguments to run_tests. However, for maintainability reasons, test.sh should not need to be aware of the concrete arguments supported by build.sh and run_tests. Some ideas:
# Optional argument --buildargs with a single value (quote if multiple are required):
./test.sh --buildargs "--arrow --cuda" [kernels] -d yes # pass build.sh args
./test.sh [kernels] -d yes # don't pass build.sh args
# Always expect one argument for build.sh (quote if multiple are required):
./test.sh "--arrow --cuda" [kernels] -d yes # pass build.sh args
./test.sh "" [kernels] -d yes # don't pass build args
Alternative suggestions are welcome.
The text was updated successfully, but these errors were encountered:
This is partially handled by c5a438b. Didn't notice this issue when I added support for --cuda and a few others. The current solution is a quick fix, so this issue remains valid to pass arbitrary args to build.sh.
Our build script
build.sh
is used to build any target of the DAPHNE system. It has several command line arguments (see./build.sh -h
). Some of those can be used to turn certain features on or off (e.g.,--cuda
and--arrow
).Our test script
test.sh
is used to run the test cases. Internally, it first builds therun_tests
target (a catch2 application) by invokingbuild.sh --target run_tests
.test.sh
accepts arbitrary arguments and passes them on to the executablerun_tests
. That way, we can use any catch2 arguments to influence the test execution. For instance, we can use that to run only test cases of kernels and print the names of the executed test cases and durations by./test.sh [kernels] -d yes
.Unfortunately,
test.sh
does currently not accept any additional arguments tobuild.sh
. Thus, we cannot run test cases requiring, e.g.,--cuda
or--arrow
.test.sh
should be changed to support both arguments tobuild.sh
and arguments torun_tests
. However, for maintainability reasons,test.sh
should not need to be aware of the concrete arguments supported bybuild.sh
andrun_tests
. Some ideas:Alternative suggestions are welcome.
The text was updated successfully, but these errors were encountered: