Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/sh
2 set -e
3
4 pkg=metaphlan
5
6 CUR_DIR=`pwd`
7
8 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
9 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
10 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
11 fi
12
13 cp ${CUR_DIR}/debian-tests-data/* -a "${AUTOPKGTEST_TMP}"
14
15 cd "${AUTOPKGTEST_TMP}"
16
17 # Run metaphlan using the test fastq file from the copied data
18 metaphlan Test.fastq \
19 --input_type fastq \
20 --bowtie2db . \
21 --index mpa_vFeb24_CDIFF_CHOCOPhlAnSGB_20240910 \
22 -o result.txt
23
24 # Check if result.txt is not empty
25 if [ -s result.txt ]; then
26 echo "MetaPhlAn test passed"
27 else
28 echo "MetaPhlAn test failed"
29 exit 1
30 fi
31