Skip to content

Commit 9d05eba

Browse files
committed
Change field tests from a hard-coded path to a dynamic one
1 parent 6f4ebbb commit 9d05eba

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ tests:
2929
- pip install pytest
3030
- pip install .
3131
- pytest tests/*.py -v
32-
- which structure_threader
3332
- tests/structure_field_test.sh
3433
- tests/fastStructure_field_test.sh
3534
- tests/maverick_field_test.sh

tests/fastStructure_field_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ echo "Runnig fastStructure 'field test'. This will simulate a full wrapped run o
2424

2525
git_dir=$(pwd)
2626
str_bin=$(which fastStructure)
27+
structure_threader_exec=$(which structure_threader)
2728

2829
tar xvfJ ${git_dir}/tests/smalldata/BigTestData.str.tar.xz -C ${git_dir}/tests/smalldata/
29-
~/virtualenv/python3.5/bin/structure_threader run -i ${git_dir}/tests/smalldata/BigTestData.str -o ~/results_fs -fs ${str_bin} -K 4 -t 4 --ind ${git_dir}/tests/smalldata/indfile.txt
30+
${structure_threader_exec} run -i ${git_dir}/tests/smalldata/BigTestData.str -o ~/results_fs -fs ${str_bin} -K 4 -t 4 --ind ${git_dir}/tests/smalldata/indfile.txt
3031

3132
echo -e "${LightGreen}fastStructure 'Field test' ran successfully. Yay!${NoColor}"

tests/maverick_field_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ echo "Runnig MavericK 'field test'. This will simulate a full wrapped run on sma
2424

2525
git_dir=$(pwd)
2626
maverick_bin=$(which MavericK)
27+
structure_threader_exec=$(which structure_threader)
2728

28-
~/virtualenv/python3.5/bin/structure_threader run -i ${git_dir}/tests/smalldata/Reduced_dataset.structure -o ~/results -mv ${maverick_bin} -K 3 -t 4 --params ${git_dir}/tests/smalldata/parameters.txt
29+
${structure_threader_exec} run -i ${git_dir}/tests/smalldata/Reduced_dataset.structure -o ~/results -mv ${maverick_bin} -K 3 -t 4 --params ${git_dir}/tests/smalldata/parameters.txt
2930

3031
echo -e "${LightGreen}MavericK 'Field test' ran successfully. Yay!${NoColor}"

tests/structure_field_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ echo "Runnig STRUCTURE 'field test'. This will simulate a full wrapped run on sm
2424

2525
git_dir=$(pwd)
2626
str_bin=$(which structure)
27+
structure_threader_exec=$(which structure_threader)
2728

28-
~/virtualenv/python3.5/bin/structure_threader run -i ${git_dir}/tests/smalldata/Reduced_dataset.structure -o ~/results -st ${str_bin} -K 3 -t 4 -R 5 --params ${git_dir}/tests/smalldata/mainparams
29+
${structure_threader_exec} run -i ${git_dir}/tests/smalldata/Reduced_dataset.structure -o ~/results -st ${str_bin} -K 3 -t 4 -R 5 --params ${git_dir}/tests/smalldata/mainparams
2930

3031
echo -e "${LightGreen}STRUCTURE 'Field test' ran successfully. Yay!${NoColor}"

0 commit comments

Comments
 (0)