-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruntests.sh
60 lines (42 loc) · 1.56 KB
/
runtests.sh
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
echo "Running first step of pipeline only: example_params_step1"
nextflow main.nf -params-file example_params/example_params_step1.json > .step1.stdout
if [ $? -eq 1 ]
then
cat .step1.stdout
echo "Running first step of pipeline failed, see .nextflow.log"
fi
echo "Running second step of pipeline only: example_params_step2.json"
nextflow main.nf -params-file example_params/example_params_step2.json > .step2.stdout
if [ $? -eq 1 ]
then
cat .step2.stdout
echo "Running second step of pipeline failed, see .nextflow.log"
fi
echo "Running third step of pipeline only: example_params_step3.json"
nextflow main.nf -params-file example_params/example_params_step3.json > .step3.stdout
if [ $? -eq 1 ]
then
cat .step3.stdout
echo "Running third step of pipeline failed, see .nextflow.log"
fi
echo "Running fourth step of pipeline only: example_params_step4.json"
nextflow main.nf -params-file example_params/example_params_step4.json > .step4.stdout
if [ $? -eq 1 ]
then
cat .step4.stdout
echo "Running fourth step of pipeline failed, see .nextflow.log"
fi
echo "Running fifth step of pipeline only: example_params_step5.json"
nextflow main.nf -params-file example_params/example_params_step5.json > .step5.stdout
if [ $? -eq 1 ]
then
cat .step5.stdout
echo "Running fifth step of pipeline failed, see .nextflow.log"
fi
echo "Running entire pipeline"
nextflow main.nf -params-file example_params/user_params_template.json > .wholepipeline.stdout
if [ $? -eq 1 ]
then
cat .wholepipeline.stdout
echo "Running whole pipeline failed, see .nextflow.log"
fi