Commit a333a29 1 parent bd183f5 commit a333a29 Copy full SHA for a333a29
File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ if ! test -f ${baseline_bam}; then
52
52
git clone . ${srcdir}
53
53
( cd ${srcdir} && git checkout -d ${baseline_commit} )
54
54
cmake ${srcdir} -B ${srcdir} /build ${cmake_options}
55
- if ! make -j 4 -C ${srcdir} /build strobealign; then
55
+ if ! make -s - j 4 -C ${srcdir} /build strobealign; then
56
56
exit 1
57
57
fi
58
58
mv ${srcdir} /build/strobealign ${baseline_binary}
65
65
# compiler options.
66
66
builddir=$( mktemp -p . -d build.XXXXXXX)
67
67
cmake . -B ${builddir} ${cmake_options}
68
- make -j 4 -C ${builddir} strobealign
68
+ make -s - j 4 -C ${builddir} strobealign
69
69
set -x
70
70
${builddir} /strobealign ${strobealign_options} ${ref} ${reads[@]} | samtools view -o head.bam
71
71
rm -rf ${builddir}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -xeuo pipefail
2
+ set -euo pipefail
3
3
4
4
if [[ $OSTYPE = linux-gnu ]]; then
5
5
color=" --color=always"
8
8
fi
9
9
10
10
function strobealign() {
11
- build/strobealign " ${@ } "
11
+ echo " Testing '${@ } '" >&2
12
+ build/strobealign " ${@ } " 2> testlog.txt
12
13
}
13
14
14
15
function diff() {
15
- env diff -u ${color} " $1 " " $2 "
16
+ if ! env diff -u ${color} " $1 " " $2 " ; then
17
+ echo " Failure running 'diff $1 $2 '"
18
+ exit 1
19
+ fi
16
20
}
17
21
18
- # Unit tests
19
- build/test-strobealign
22
+ build/test-strobealign --no-intro
20
23
21
24
# should fail when unknown command-line option used
22
25
if strobealign -G > /dev/null 2> /dev/null; then false ; fi
@@ -106,3 +109,5 @@ rm no-secondary.sam with-secondary.sam with-secondary-only-primary.sam repeated-
106
109
strobealign -C --no-PG --rg-id=1 --rg=SM:sample --rg=LB:library tests/phix.fasta tests/phix.tags.fastq > with-tags.sam
107
110
diff tests/phix.tags.sam with-tags.sam
108
111
rm with-tags.sam
112
+
113
+ echo " Success"
You can’t perform that action at this time.
0 commit comments