Restore run_tests

This commit is contained in:
Björn Harrtell 2020-12-26 17:24:29 +01:00
parent d71e53876f
commit e598aa2857

View File

@ -1,9 +1,16 @@
#!/bin/bash
#echo -e '\033[1;33m--- Running TypeScript tests ---'
#TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register -r esm src/**/*.spec.ts
echo -e '\033[1;33m--- Removing previous C++ tests if any ---'
rm -f ./testcpp
echo -e '\033[1;33m--- Compiling C++ tests ---'
clang++ -std=c++14 -Wall -Werror -Wshorten-64-to-32 -Wfloat-conversion -Wmissing-declarations -fsanitize=float-divide-by-zero -g -o ./testcpp -Isrc/cpp/include src/cpp/packedrtree.cpp src/cpp/test/run_tests.cpp
clang++ -std=c++14 -Wall -Werror -Wshorten-64-to-32 -Wfloat-conversion -Wmissing-declarations -g -o ./testcpp -Isrc/cpp/include src/cpp/packedrtree.cpp src/cpp/test/run_tests.cpp
echo -e '\033[1;33m--- Running C++ tests ---'
./testcpp -d yes
./testcpp -d yes
echo -e '\033[1;33m--- Running Java tests ---'
cd src/java && mvn test