Skip to content

Commit

Permalink
Adding a test script, hashes and an archive of test data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidsmith committed Aug 13, 2023
1 parent 7300ce3 commit 49cab2e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/falco.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

tar -zxf test_build/test_data.tgz -C test_build
infiles=$(ls --color=no test_build/*.fastq)

fail=0
for i in ${infiles}
do
a=$(basename $i ".fastq")
mkdir -p test_output/${a}
./falco -o test_output/${a} ${i} \
1>test_output/${a}/${a}.output \
2>test_output/${a}/${a}.error
for j in test_output/${a}/*.txt; do
x=$(md5sum -c test_build/md5sum.txt --ignore-missing | grep "${j}:" | cut -d ' ' -f 2);
if [[ "${x}" != "OK" ]]; then
echo "${a} failed on ${j}"
fail=1
fi
done
rm -rf test_output/${a}
done

rmdir test_output
rm ${infiles}

exit ${fail}
30 changes: 30 additions & 0 deletions test/md5sum.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
fc4ef1feb58f7c1eb9eaddb7c6d521de test_output/SRR1853178_1/fastqc_data.txt
36df1dcab539ba4ef885239fc8524636 test_output/SRR1853178_1/summary.txt
cfac7dfa64bd12d081725df564bb4c6a test_output/SRR3897196_2/fastqc_data.txt
80cd130958bcb2219f1e5a07d06a3b6e test_output/SRR3897196_2/summary.txt
b6c3378b6c065c99561ffd9ede8e173e test_output/SRR9624732_1/fastqc_data.txt
a525d455b17eb6ba84cd2a60d281a2b0 test_output/SRR9624732_1/summary.txt
94636e299fefe48c3e29c93b11535743 test_output/SRR10143153_2/fastqc_data.txt
19f1811f324e4c44154f659bb6e22806 test_output/SRR10143153_2/summary.txt
cb9e1193be45d3622d8941ec9fa2dce0 test_output/SRR1772703.lite.1/fastqc_data.txt
ad5727295e7c8de6eb6874837bf1518f test_output/SRR1772703.lite.1/summary.txt
d5583c7ac1efd55c92f518e802487e2a test_output/SRR9624732_2/fastqc_data.txt
fefc5d746f853c14b5e00421ad1ec260 test_output/SRR9624732_2/summary.txt
a68b314777e30c5153eeb9df74e21d25 test_output/SRR10124060/fastqc_data.txt
776f7d1b53bbed8683de9ca1d2529f1e test_output/SRR10124060/summary.txt
928d13844709c9ad3628fde11714ce52 test_output/SRR891268_2/fastqc_data.txt
20a8e50baace4c672622793874a3d7de test_output/SRR891268_2/summary.txt
0ea4e339daac00903a3b7e23db7c409b test_output/SRR9878537.lite.1/fastqc_data.txt
e5c40997d4993c07e164ee5598c39cf9 test_output/SRR9878537.lite.1/summary.txt
d687d25f933aa371d585985f36ff8a94 test_output/SRR891268_1/fastqc_data.txt
69e7d0c53cd2e67117637c408b65333a test_output/SRR891268_1/summary.txt
57cb46f8865df05be72ab94b2c4e5628 test_output/SRR6059706.lite.1/fastqc_data.txt
e348e4bcc7fc6f05e989ac7858d2b287 test_output/SRR6059706.lite.1/summary.txt
d8b88639e5161b0b3dd550c71541779b test_output/SRR6387347/fastqc_data.txt
1699c5a55895dbeec69c1758b5d58379 test_output/SRR6387347/summary.txt
6ffc47446bfac6e1a91a9b850107d790 test_output/SRR3897196_1/fastqc_data.txt
b736ee95d5c450ef5c0dda31957b6818 test_output/SRR3897196_1/summary.txt
4d883b0b2c2c500b03c4ebe9a276d9b7 test_output/SRR10143153_1/fastqc_data.txt
9ad191925d47a57d4f8b12f21ba0a7c3 test_output/SRR10143153_1/summary.txt
213edfe0e16a6f3312af4dcbc75a2797 test_output/SRR1853178_2/fastqc_data.txt
32070625a8fde1b986d05068494c6cd5 test_output/SRR1853178_2/summary.txt
Binary file added test/test_data.tgz
Binary file not shown.

0 comments on commit 49cab2e

Please sign in to comment.