forked from hillerlab/CESAR2.0
-
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.
added tests.sh to run a few standardized tests
- Loading branch information
Michael Hiller
committed
Apr 1, 2017
1 parent
ff693bf
commit 6cf8042
Showing
4 changed files
with
29 additions
and
4 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
>referenceExon | ||
aaCCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCC | ||
>query | ||
cttccccatttttatctcatagac------------------------------------------------------------------------------------------CCC------------ | ||
cttccccatttttatctcatagac------------------------------------------------------------------------CCC------------------------------ |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
>referenceExon | ||
aaCCTAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCC | ||
aaCCTAAACCCAAACCCAAACCC | ||
>query | ||
cttccccatttttatctcatagacCCT |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
>referenceExon | ||
aaCCTAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCCAAACCC | ||
aaCCTAAACCCAAACCCAAACCC | ||
>query | ||
cttccccatttttatctcatagacCCT------------------------------------------------------------------------------------------------------ | ||
cttccccatttttatctcatagacCCT------------------ |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 ./cesar" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
|
||
HERE=$(dirname $0) | ||
cesar=$1 | ||
|
||
# check if cesar successfully returns the test samples. | ||
|
||
echo "Checking for correct behaviour." | ||
for f in $(find $HERE/extra/samples -name '*.in'); do | ||
diff -q <($cesar $f) $HERE/extra/samples/$(basename $f .in).out | ||
if [ $? -ne 0 ]; then | ||
echo "$f... NOK" | ||
exit 1 | ||
else | ||
echo "$f... OK" | ||
fi | ||
done | ||
exit 0 |