-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding in generic test libraries and converted trim_reads tests to us…
…e them
- Loading branch information
1 parent
d2f8421
commit 14c1698
Showing
3 changed files
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,6 @@ target/ | |
*~ | ||
*.swp | ||
*.swo | ||
|
||
# Project ignores | ||
tests/testoutput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,26 @@ Directory Should Have Items | |
[Arguments] ${path} @{expected} | ||
${items} = List Directory ${path} | ||
Lists Should Be Equal ${items} ${expected} | ||
|
||
Run JIP Tool And Return RC And Output | ||
[Arguments] ${cmdline} ${expected_rc}=0 ${jipdb}=${TESTOUTPUTDIR}/jip.db ${log_to_console}=True | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
necrolyte2
Author
Member
|
||
${result} = Run Process ${cmdline} shell=True stderr=STDOUT env:JIP_DB=${jipdb} | ||
Run Keyword If ${log_to_console} Log To Console ${result.stdout} | ||
Should Be Equal As Integers ${result.rc} ${expected_rc} | ||
[return] ${result.rc} ${result.stdout} | ||
|
||
Ensure Tool Accepts Stdin And Outputs Stdout | ||
[Arguments] ${tool_and_options} ${input_contents} ${expected_contents} | ||
${in_fastq} = Set Variable ${TESTOUTPUTDIR}/input.fastq | ||
${out_fastq} = Set Variable ${TESTOUTPUTDIR}/output.fastq | ||
Create File ${in_fastq} ${input_contents} | ||
${rc} ${stdout} = Run Jip Tool And Return RC And Output cat ${in_fastq} | ${tool_and_options} | cat > ${out_fastq} | ||
Log To Console ${stdout} | ||
Should Be Equal As Integers ${rc} 0 | ||
Verify File ${out_fastq} ${expected_contents} | ||
|
||
Normalized Input And Output Usage Statement | ||
[Arguments] ${tool} | ||
${rc} ${stdout} = Run JIP Tool And Return RC And Output ${tool} --help expected_rc=1 | ||
Should Contain ${stdout} [<input>] [-p] | ||
Should Contain ${stdout} [<input>] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
should this be
expected_rc=0
?