From 8e1700d4883f68e054324d1216ef1a062bc2e8c4 Mon Sep 17 00:00:00 2001 From: dorien-er Date: Tue, 30 Jan 2024 21:05:08 +0100 Subject: [PATCH] update tests --- src/busco/busco/test.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/busco/busco/test.sh b/src/busco/busco/test.sh index a5f1546d..3fd06b97 100644 --- a/src/busco/busco/test.sh +++ b/src/busco/busco/test.sh @@ -20,4 +20,23 @@ echo ">> Checking if output is empty" [ ! -s "output/short_summary.json" ] && echo "short_summary.json is empty" && exit 1 [ ! -s "output/short_summary.txt" ] && echo "short_summary.txt is empty" && exit 1 -rm -r output/ + +"$meta_executable" \ + --input $test_dir/protein.fasta \ + --mode proteins \ + --auto_lineage \ + --output_dir output + +echo ">> Checking output" +[ ! -f "output/full_table.tsv" ] && echo "full_table.tsv does not exist" && exit 1 +[ ! -f "output/missing_busco_list.tsv" ] && echo "missing_busco_list.tsv does not exist" && exit 1 +[ ! -f "output/short_summary.json" ] && echo "short_summary.json does not exist" && exit 1 +[ ! -f "output/short_summary.txt" ] && echo "short_summary.txt does not exist" && exit 1 + +echo ">> Checking if output is empty" +[ ! -s "output/full_table.tsv" ] && echo "full_table.tsv is empty" && exit 1 +[ ! -s "output/missing_busco_list.tsv" ] && echo "missing_busco_list.tsv is empty" && exit 1 +[ ! -s "output/short_summary.json" ] && echo "short_summary.json is empty" && exit 1 +[ ! -s "output/short_summary.txt" ] && echo "short_summary.txt is empty" && exit 1 + +rm -r output/ \ No newline at end of file