Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/bash
2 set -e
3
4 # Run comparative tests to see if we get an expected default output. Test installed files so no need to move them.
5
6 # lefse_run.py
7 if [[ $(lefse_run.py -h 2>&1) = "usage: lefse_run.py [-h]"* ]]; then
8 echo "lefse_run.py comparative pass"
9 else
10 echo "lefse_run.py comparative fail. Instead, I get:"
11 lefse_run.py -h
12 exit 1
13 fi
14
15 # lefse2circlader.py
16 if [[ $(lefse2circlader.py -h 2>&1) = "usage: lefse2circlader.py [-h]"* ]]; then
17 echo "lefse2circlader.py comparative pass"
18 else
19 echo "lefse2circlader.py comparative fail. Instead, I get:"
20 lefse2circlader.py -h
21 exit 1
22 fi
23
24 # lefse_plot_cladogram.py
25 if [[ $(lefse_plot_cladogram.py -h 2>&1) = "usage: lefse_plot_cladogram.py [-h]"* ]]; then
26 echo "lefse_plot_cladogram.py comparative pass"
27 else
28 echo "lefse_plot_cladogram.py comparative fail. Instead, I get:"
29 lefse_plot_cladogram.py -h
30 exit 1
31 fi
32
33 # lefse_plot_features.py
34 if [[ $(lefse_plot_features.py -h 2>&1) = "usage: lefse_plot_features.py [-h]"* ]]; then
35 echo "lefse_plot_features.py comparative pass"
36 else
37 echo "lefse_plot_features.py comparative fail. Instead, I get:"
38 lefse_plot_features.py -h
39 exit 1
40 fi
41
42 # plo_res
43 if [[ $(lefse_plot_res.py -h 2>&1) = "usage: lefse_plot_res.py [-h]"* ]]; then
44 echo "lefse_plot_res.py comparative pass"
45 else
46 echo "lefse_plot_res.py comparative fail. Instead, I get:"
47 lefse_plot_res.py -h
48 exit 1
49 fi
50
51 # qiime2lefse.py
52 if [[ $(qiime2lefse.py -h 2>&1) = "usage: qiime2lefse.py [-h]"* ]]; then
53 echo "qiime2lefse.py comparative pass"
54 else
55 echo "qiime2lefse.py comparative fail. Instead, I get:"
56 qiime2lefse.py -h
57 exit 1
58 fi
59
60 # lefse_format_input.py
61 if [[ $(lefse_format_input.py -h 2>&1) = "usage: lefse_format_input.py [-h]"* ]]; then
62 echo "lefse_format_input.py comparative pass"
63 else
64 echo "lefse_format_input.py comparative fail. Instead, I get:"
65 lefse_format_input.py -h
66 exit 1
67 fi
68