Skip to content

Commit

Permalink
update conda test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangqingW committed Oct 24, 2023
1 parent c6163c2 commit 3691dc1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions conda-recipe/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ shell() {
diff <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/bc_allow.tsv.gz | zcat) \
<(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/bc_allow.tsv.gz | zcat) > /dev/null
)
msg shell env is fine
}

testflexiplex() {
msg Testing flexiplex demultiplex output
diff <(flexiplex -x CTACACGACGCTCTTCCGATCT -b '????????????????' -u '????????????' -x TTTTTTTTT -e 2 -f 8 -k <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/bc_allow.tsv.gz | zcat) <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/fastq/musc_rps24.fastq.gz | zcat)) <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/tests/testthat/demultiplexed.fq) > /dev/null
msg done
msg flexiplex demultiplex output passed
}

testflexiplexfail() {
msg Testing fail
diff <(flexiplex -x CTACACGACGCTCTTCCGATCT -b '????????????????' -u '????????????' -x TTTTTTTTT -e 2 -f 1 -k <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/bc_allow.tsv.gz | zcat) <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/inst/extdata/fastq/musc_rps24.fastq.gz | zcat) 2>/dev/null) <(curl -sL https://raw.githubusercontent.com/mritchielab/FLAMES/devel/tests/testthat/demultiplexed.fq) > /dev/null
msg unexpected line reached
}


msg Running in $PWD
if [[ -n "${1:-}" ]]; then
# Run single specified code-quality tool.
Expand All @@ -32,5 +26,6 @@ else
# Run all code-quality tools.
shell
testflexiplex
testflexiplexfail
fi
echo "---"
echo All tests passed!

0 comments on commit 3691dc1

Please sign in to comment.