File: run-unit-test

package info (click to toggle)
lefse 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: python: 2,745; sh: 108; makefile: 7
file content (68 lines) | stat: -rw-r--r-- 1,862 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
set -e

# Run comparative tests to see if we get an expected default output. Test installed files so no need to move them.

# lefse_run.py
if [[ $(lefse_run.py -h 2>&1) = "usage: lefse_run.py [-h]"* ]]; then
	echo "lefse_run.py comparative pass"
else
	echo "lefse_run.py comparative fail. Instead, I get:"
	lefse_run.py -h
	exit 1
fi

# lefse2circlader.py
if [[ $(lefse2circlader.py -h 2>&1) = "usage: lefse2circlader.py [-h]"* ]]; then
	echo "lefse2circlader.py comparative pass"
else
	echo "lefse2circlader.py comparative fail. Instead, I get:"
	lefse2circlader.py -h
	exit 1
fi

# lefse_plot_cladogram.py
if [[ $(lefse_plot_cladogram.py -h 2>&1) = "usage: lefse_plot_cladogram.py [-h]"* ]]; then
	echo "lefse_plot_cladogram.py comparative pass"
else
	echo "lefse_plot_cladogram.py comparative fail. Instead, I get:"
	lefse_plot_cladogram.py -h
	exit 1
fi

# lefse_plot_features.py
if [[ $(lefse_plot_features.py -h 2>&1) = "usage: lefse_plot_features.py [-h]"* ]]; then
	echo "lefse_plot_features.py comparative pass"
else
	echo "lefse_plot_features.py comparative fail. Instead, I get:"
	lefse_plot_features.py -h
	exit 1
fi

# plo_res
if [[ $(lefse_plot_res.py -h 2>&1) = "usage: lefse_plot_res.py [-h]"* ]]; then
	echo "lefse_plot_res.py comparative pass"
else
	echo "lefse_plot_res.py comparative fail. Instead, I get:"
	lefse_plot_res.py -h
	exit 1
fi

# qiime2lefse.py
if [[ $(qiime2lefse.py -h 2>&1) = "usage: qiime2lefse.py [-h]"* ]]; then
	echo "qiime2lefse.py comparative pass"
else
	echo "qiime2lefse.py comparative fail. Instead, I get:"
	qiime2lefse.py -h
	exit 1
fi

# lefse_format_input.py
if [[ $(lefse_format_input.py -h 2>&1) = "usage: lefse_format_input.py [-h]"* ]]; then
	echo "lefse_format_input.py comparative pass"
else
	echo "lefse_format_input.py comparative fail. Instead, I get:"
	lefse_format_input.py -h
	exit 1
fi