Refactor tests and add FeatureSelection tests

This commit is contained in:
2024-04-02 17:38:48 +02:00
parent 56b5158ff3
commit de23303801
6 changed files with 159 additions and 36 deletions

View File

@@ -5,7 +5,7 @@ SHELL := /bin/bash
f_release = build_release
f_debug = build_debug
app_targets = BayesNet
test_targets = unit_tests_bayesnet
test_targets = TestBayesNet
n_procs = -j 16
define ClearTests
@@ -85,9 +85,11 @@ test: ## Run tests (opt="-s") to verbose output the tests, (opt="-c='Test Maximu
@$(MAKE) clean
@cmake --build $(f_debug) -t $(test_targets) $(n_procs)
@for t in $(test_targets); do \
echo ">>> Running $$t...";\
if [ -f $(f_debug)/tests/$$t ]; then \
cd $(f_debug)/tests ; \
./$$t $(opt) ; \
cd ../.. ; \
fi ; \
done
@echo ">>> Done";