2020-06-05 18:46:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Commmands necessary to setup and run the tests for RAPIDS
|
|
|
|
|
2020-06-17 22:23:00 +02:00
|
|
|
echo Setting up for testing...
|
|
|
|
|
|
|
|
echo Copying files...
|
2020-06-05 18:46:36 +02:00
|
|
|
cp -r tests/data/raw/* data/raw
|
2020-06-17 22:23:00 +02:00
|
|
|
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
|
2020-06-17 22:23:00 +02:00
|
|
|
|
|
|
|
echo Disabling downloading of dataset...
|
2020-06-05 18:46:36 +02:00
|
|
|
snakemake --profile tests/settings
|
2020-06-17 22:23:00 +02:00
|
|
|
|
|
|
|
echo Running tests on data produced...
|
2020-06-05 18:46:36 +02:00
|
|
|
python -m unittest discover tests/scripts/ -v
|