Skip to content

Commit 55a2a4f

Browse files
committed
[test]: Create script to automate all test suites
1 parent bfd162a commit 55a2a4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/run_tests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ echo -e "\033[34mRunning Python tests...\033[0m"
1515
pytest -rs --color=yes ./tests/ --ignore ./tests/gpu/excluded
1616

1717
# Run C++ tests
18+
echo -e "\033[34mBuilding C++ tests...\033[0m"
19+
# Clean up build directory
20+
rm -rf build
21+
# TODO: fix `pip install .` for not generating the build directory
22+
# Build the CUDA extension module
23+
cmake -S . -B build
24+
cmake --build build
25+
1826
echo -e "\033[34mRunning C++ tests...\033[0m"
1927
for test in ./build/test_*; do
2028
echo "Running $test..."

0 commit comments

Comments
 (0)