Build pipeline: vsh-ci-dev-jsbwk
Source commit: 1e1ffb315f
Source message: Merge pull request #17 from viash-hub/add_biobox_modules
- Migrate a number of components to biobox
- Fix tests
- Reduce size of test resources
- Prepare for Viash Hub
28 lines
778 B
Bash
28 lines
778 B
Bash
#!/bin/bash
|
|
|
|
echo ">>> Testing $meta_functionality_name"
|
|
|
|
echo ">>> Testing with BAM input"
|
|
"$meta_executable" \
|
|
--paired false \
|
|
--input "$meta_resources_dir/SRR1106616_5M_subset.bam" \
|
|
--output lc_extrap.txt
|
|
|
|
echo ">>> Check whether output exists"
|
|
[ ! -f "lc_extrap.txt" ] && echo "Output file does not exist!" && exit 1
|
|
[ ! -s "lc_extrap.txt" ] && echo "Output file is empty!" && exit 1
|
|
|
|
rm lc_extrap.txt
|
|
|
|
echo ">>> Testing with BED input"
|
|
"$meta_executable" \
|
|
--paired false \
|
|
--input "$meta_resources_dir/a.sorted.bed" \
|
|
--output lc_extrap.txt
|
|
|
|
echo ">>> Check whether output exists"
|
|
[ ! -f "lc_extrap.txt" ] && echo "Output file does not exist!" && exit 1
|
|
[ ! -s "lc_extrap.txt" ] && echo "Output file is empty!" && exit 1
|
|
|
|
echo "All tests succeeded!"
|
|
exit 0 |