Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New test script and fixing of MacOSX problems #4

Merged
merged 48 commits into from
May 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
ba882b0
Create .travis.yml
greatfireball May 12, 2016
b10bd64
Added testing under osx and linux to travis.yml
greatfireball May 12, 2016
ee7ea3f
Skipping installation step
greatfireball May 12, 2016
cdfbacd
Ignoring build failures under osx
greatfireball May 12, 2016
c0c0d8d
Added a bash function to avoid redundancy
greatfireball May 11, 2016
e30e6a6
Removed first to fasta checks due to they are already performed using…
greatfireball May 11, 2016
aaa86c1
Removed deletion of temporary files to start of test script
greatfireball May 11, 2016
20e97d5
Avoiding test problems if output files are not existing
greatfireball May 11, 2016
cb88c6a
Renamed PIPE_FLAG to SPECIAL_FLAG
greatfireball May 11, 2016
badb569
Set an empty default SPECIAL_FLAG
greatfireball May 11, 2016
1ec5672
Added a test against individual files from last run controlled by SPE…
greatfireball May 11, 2016
fd3c955
Added the third test based on the bash function
greatfireball May 11, 2016
5a36e68
Removed old test #3
greatfireball May 11, 2016
7e0961d
Added the fifth test based on the bash function
greatfireball May 11, 2016
8fd67f7
Removed old test #5
greatfireball May 11, 2016
0a0d4c5
Added the sixth test based on the bash function
greatfireball May 11, 2016
d353f8d
Removed old test #6
greatfireball May 11, 2016
8e7b976
Added the fourth test based on the bash function plus one preparation…
greatfireball May 11, 2016
efeee01
Removed old test #4
greatfireball May 11, 2016
83698d6
Added a commentary to show where the test will be started
greatfireball May 11, 2016
7eadb17
Renamed test function to test_SeqChunker, corrected the test-names, a…
greatfireball May 11, 2016
2a0a7a5
Added the first FASTQ test based on the bash function
greatfireball May 11, 2016
ae610a8
Removed old FASTQ test #1
greatfireball May 11, 2016
a0681c3
Added the second FASTQ test based on the bash function
greatfireball May 11, 2016
392169c
Removed old FASTQ test #2
greatfireball May 11, 2016
595ae6c
Added the third FASTQ test based on the bash function
greatfireball May 11, 2016
57b7378
Removed old FASTQ test #3
greatfireball May 11, 2016
ae6f95d
Added the fourth FASTQ test based on the bash function plus one prepa…
greatfireball May 11, 2016
eba0ad4
Removed old FASTQ test #4
greatfireball May 11, 2016
65ef287
Added the fifth FASTQ test based on the bash function plus one prepar…
greatfireball May 11, 2016
561d804
Removed old FASTQ test #5
greatfireball May 11, 2016
2c111a0
Cleaning up
greatfireball May 11, 2016
472aae2
Skipping md5 based tests for now
greatfireball May 11, 2016
1f44280
Now cycling through all implementations of SeqChunker
greatfireball May 11, 2016
65e1a6e
Added TAP directive support and enable TODO directive for SeqChunker-…
greatfireball May 11, 2016
0c81c1d
New version 0.4 should work on MacOSX as well as Linux
greatfireball May 11, 2016
53f5d5b
Put declaration of TAP_DIRECTIVE outside the current block
greatfireball May 11, 2016
6b4fa90
Added a test, if bash >= 4 is present
greatfireball May 11, 2016
e115cb2
Fixed a typo in to test, which results in failing test without recogn…
greatfireball May 12, 2016
28e61f1
Each test generates individual set of output files
greatfireball May 12, 2016
dd79f60
Switch to local variables for function
greatfireball May 13, 2016
21b11e3
Added a reference.md5 file for expected MD5 sums for first 14 tests
greatfireball May 13, 2016
d48be14
Added a new function for md5 based tests
greatfireball May 13, 2016
741072a
Removed old diff based test for expected output by md5 checksum based…
greatfireball May 13, 2016
f696eed
Changed to prove harnest to run tests
greatfireball May 13, 2016
9a489d8
Added missing md5 reference sums
greatfireball May 13, 2016
d701563
Merge pull request #8 from BioInf-Wuerzburg/feature/travis-ci-testing
greatfireball May 14, 2016
57e0289
Removed the allowed failure on MacOSX
greatfireball May 14, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
os:
- linux
- osx

sudo: false

language: perl

# normally cpanm is called for perl, but we do not need it so skip the installation of dependencies
install: true

script:
- cd t
- prove ./test.sh
39 changes: 36 additions & 3 deletions bin/SeqChunker
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,42 @@
#
# Last Modified: Thomas Hackl, 2014-09-10

# Version 0.3
# reliable detect binary folder
Bin="$(dirname "$(readlink -f "$0")")"
# Version 0.4
# reliable detect binary folder with compability to MacOSX
function expand_link {
FILE="$1"

TRACKING_FILE=$(mktemp)

echo "$FILE" >"$TRACKING_FILE"

NEW_FILE=$(readlink "$FILE");

while [ "$?" -eq 0 ]
do
echo "$NEW_FILE" >>"$TRACKING_FILE"

# check for duplicates
NUM_DUPLICATES=$(cat "$TRACKING_FILE" | sort | uniq -d | wc -l)

if [ "$NUM_DUPLICATES" -gt 0 ]
then
break
fi

FILE=$(dirname "$FILE")/"$NEW_FILE"
echo "$FILE" >&2
NEW_FILE=$(readlink "$FILE")
done

rm "$TRACKING_FILE"

echo "FILE should be located at '$FILE'" >&2

echo "$FILE"
}

Bin="$(dirname "$(expand_link "$0")")"

# check if perl exists, than use the perl version
if [ ! -z $(which perl) ]; then
Expand Down
Loading