File: test.sh

package info (click to toggle)
pbbam 0.19.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,280 kB
  • sloc: cpp: 50,244; python: 1,371; ansic: 949; xml: 903; sh: 317; makefile: 185
file content (30 lines) | stat: -rwxr-xr-x 774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
set -vex

########
# TEST #
########

type module >& /dev/null || . /mnt/software/Modules/current/init/bash

# Note: htslib v1.7 added native long CIGAR support. pbbam "spoofs" it 
#       when running <1.7. So we'll always check the default htslib for 
#       general test success/fail, and then check pre-/post-v1.7 explicitly
#       to ensure we pass in either context (detectable at runtime).

# default htslib
ninja -C "${CURRENT_BUILD_DIR:-build}" -v test

# explicit htslib v1.6
module unload htslib
module load htslib/1.6
ninja -C "${CURRENT_BUILD_DIR:-build}" -v test

# explicit htslib v1.7
module unload htslib
module load htslib/1.7
ninja -C "${CURRENT_BUILD_DIR:-build}" -v test\

# restore default
module unload htslib
module load htslib