rapids/tests/scripts/run_tests.sh

18 lines
579 B
Bash
Raw Normal View History

2020-06-05 18:46:36 +02:00
#!/bin/bash
# Commmands necessary to setup and run the tests for RAPIDS
echo Setting up for testing...
echo Copying files...
2020-06-05 18:46:36 +02:00
cp -r tests/data/raw/* data/raw
cp tests/data/external/* data/external
echo Disabling downloading of dataset...
2020-06-05 18:46:36 +02:00
sed -e '10,20 s/^/#/' -e 's/rules.download_dataset.output/"data\/raw\/\{pid\}\/\{sensor\}_raw\.csv"/' rules/preprocessing.snakefile > tmp
cp tmp rules/preprocessing.snakefile
echo Disabling downloading of dataset...
2020-06-05 18:46:36 +02:00
snakemake --profile tests/settings
echo Running tests on data produced...
2020-06-05 18:46:36 +02:00
python -m unittest discover tests/scripts/ -v