-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding travis-ci with a basic regression check. (#37)
- Loading branch information
Showing
8 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sudo: required | ||
language: c | ||
compiler: | ||
- clang | ||
- gcc | ||
script: make && make test |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
TESTDATADIR=$(dirname ${0}); | ||
|
||
# Decompress the test data | ||
pushd $TESTDATADIR; | ||
for FILE in $(ls -1 *gz) | ||
do | ||
gunzip -c ${FILE} > $(basename ${FILE} .gz); | ||
done | ||
popd | ||
|
||
mkdir tmp | ||
|
||
# Generate the new test data | ||
./dwgsim -z 13 -N 10000 samtools/examples/ex1.fa ex1.test | ||
|
||
# Test the differences | ||
for FILE in $(ls -1 ex1.test*) | ||
do | ||
diff -q ${FILE} ${TESTDATADIR}/${FILE} | ||
done | ||
|
||
# Clean up the testdata | ||
find ${TESTDATADIR} \! -name "*gz" -type f | grep -v sh$ | xargs rm; | ||
rm -r tmp; |