forked from wtsi-npg/simtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests
executable file
·125 lines (103 loc) · 2.61 KB
/
run_tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
cd data
#
# Create tests
#
../simtools create --infile example.json --outfile test.sim --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools create: TEST FAILED
exit;
fi
diff test.sim example.raw.sim
if [ $? -ne 0 ]; then
echo simtools create: check output file: TEST FAILED
exit;
fi
#
# illuminus tests
#
../simtools illuminus --infile test.sim --outfile test.iln --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools illuminus: TEST FAILED
exit;
fi
diff test.iln example_1.iln
if [ $? -ne 0 ]; then
echo simtools illuminus: check output file: TEST FAILED
exit;
fi
../simtools illuminus --end 3 --infile test.sim --outfile test.iln --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools illuminus2: TEST FAILED
exit;
fi
diff test.iln example_2.iln
if [ $? -ne 0 ]; then
echo simtools illuminus2: check output file: TEST FAILED
exit;
fi
../simtools illuminus --start 3 --infile test.sim --outfile test.iln --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools illuminus3: TEST FAILED
exit;
fi
diff test.iln example_3.iln
if [ $? -ne 0 ]; then
echo simtools illuminus3: check output file: TEST FAILED
exit;
fi
../simtools illuminus --end 3 --start 3 --infile test.sim --outfile test.iln --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools illuminus4: TEST FAILED
exit;
fi
diff test.iln example_4.iln
if [ $? -ne 0 ]; then
echo simtools illuminus4: check output file: TEST FAILED
exit;
fi
#
# genosnp tests
#
../simtools genosnp --infile test.sim --outfile test.gsn --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools genosnp: TEST FAILED
exit;
fi
diff test.gsn example_1.gsn
if [ $? -ne 0 ]; then
echo simtools genosnp: check output file: TEST FAILED
exit;
fi
../simtools genosnp --start 1 --infile test.sim --outfile test.gsn --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools genosnp2: TEST FAILED
exit;
fi
diff test.gsn example_2.gsn
if [ $? -ne 0 ]; then
echo simtools genosnp2: check output file: TEST FAILED
exit;
fi
../simtools genosnp --end 3 --infile test.sim --outfile test.gsn --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools genosnp3: TEST FAILED
exit;
fi
diff test.gsn example_3.gsn
if [ $? -ne 0 ]; then
echo simtools genosnp3: check output file: TEST FAILED
exit;
fi
../simtools genosnp --end 3 --start 2 --infile test.sim --outfile test.gsn --man_file example.bpm.csv
if [ $? -ne 0 ]; then
echo simtools genosnp4: TEST FAILED
exit;
fi
diff test.gsn example_4.gsn
if [ $? -ne 0 ]; then
echo simtools genosnp4: check output file: TEST FAILED
exit;
fi
rm test.sim test.iln test.gsn
echo All tests successful