Skip to content

Commit 5dd9b8a

Browse files
committed
Improved field tests. Fixes #21.
1 parent d8a9f07 commit 5dd9b8a

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

tests/fastStructure_field_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ set -e
1919

2020
LightGreen='\033[1;32m'
2121
NoColor='\033[0m'
22+
2223
echo "Runnig fastStructure 'field test'. This will simulate a full wrapped run on small test data."
2324

2425
git_dir=`pwd`
2526
str_bin=`which fastStructure`
2627

27-
tar xvfJ ${git_dir}/PTS/data/BigTestData.str.tar.xz -C ${git_dir}/PTS/data/
28-
~/virtualenv/python3.5/bin/structure_threader -i ${git_dir}/PTS/data/BigTestData.str -o ~/results_fs -fs ${str_bin} -K 4 -t 4
28+
tar xvfJ ${git_dir}/tests/smalldata/BigTestData.str.tar.xz -C ${git_dir}/tests/smalldata/
29+
~/virtualenv/python3.5/bin/structure_threader -i ${git_dir}/tests/smalldata/BigTestData.str -o ~/results_fs -fs ${str_bin} -K 4 -t 4
2930

3031
echo -e "${LightGreen}fastStructure 'Field test' ran successfully. Yay!${NoColor}"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../PTS/data/BigTestData.str.tar.xz
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../PTS/data/Reduced_dataset.structure

tests/smalldata/extraparams

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../PTS/data/extraparams

tests/smalldata/mainparams

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../PTS/data/mainparams

tests/structure_field_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ set -e
1919

2020
LightGreen='\033[1;32m'
2121
NoColor='\033[0m'
22+
2223
echo "Runnig STRUCTURE 'field test'. This will simulate a full wrapped run on small test data."
2324

2425
git_dir=`pwd`
2526
str_bin=`which structure`
2627

27-
~/virtualenv/python3.5/bin/structure_threader -i ${git_dir}/PTS/data/Reduced_dataset.structure -o ~/results -st ${str_bin} -K 3 -t 4 -R 5
28+
~/virtualenv/python3.5/bin/structure_threader -i ${git_dir}/tests/smalldata/Reduced_dataset.structure -o ~/results -st ${str_bin} -K 3 -t 4 -R 5
2829

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

0 commit comments

Comments
 (0)