File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 11
11
STXTYPER=./stxtyper
12
12
fi
13
13
14
+ if [ ! -e " test/basic.expected" ]
15
+ then
16
+ echo " test/basic.expected not found, downloading new test data"
17
+ echo " from https://raw.githubusercontent.com/ncbi/stxtyper/main/"
18
+ mkdir test
19
+ pushd test
20
+ curl --location --silent -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/amrfinder_integration.expected \
21
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/amrfinder_integration.fa \
22
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/amrfinder_integration2.expected \
23
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/amrfinder_integration2.fa \
24
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/basic.expected \
25
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/basic.fa \
26
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/basic.nuc_out.expected \
27
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/cases.expected \
28
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/cases.fa \
29
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/synthetics.expected \
30
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/synthetics.fa \
31
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/virulence_ecoli.expected \
32
+ -O https://raw.githubusercontent.com/ncbi/stxtyper/main/test/virulence_ecoli.fa
33
+ popd
34
+ fi
35
+
14
36
# globals updated by function test_input_file
15
37
FAILURES=0
16
38
TESTS=0
@@ -19,7 +41,7 @@ TEST_TEXT=''
19
41
echo " TERM=$TERM "
20
42
21
43
# some color macros
22
- if [ " $TERM " == " " || " $TERM " == " dumb" ]
44
+ if [ " $TERM " == " " ] || [ " $TERM " == " dumb" ]
23
45
then
24
46
green=' ' # no colors
25
47
red=' '
You can’t perform that action at this time.
0 commit comments