Debian Codegraph @

test/test_6.sh

raw symbols SCIP
1 #!/bin/bash
2
3 #set -x
4
5 NAME="reads from stdin"
6 BIN="ngmlr-"`grep -o "set( NGM_VERSION_MAJOR [0-9]* )" CMakeLists.txt | cut -d " " -f 3`"."`grep -o "set( NGM_VERSION_MINOR [0-9]* )" CMakeLists.txt | cut -d " " -f 3`"."`grep -o "set( NGM_VERSION_BUILD [^ ]* )" CMakeLists.txt | grep -v debug | cut -d " " -f 3`
7 PARAMETER=" --skip-write -x pacbio --no-progress -t 4 "
8
9 echo "Test: $NAME ($BIN)"
10
11 LEN=`cat test/data/test_6/read.fa.gz | gunzip | bin/${BIN}/ngmlr $PARAMETER -r test/data/test_6/reference.fasta.gz 2> /dev/null | samtools view -Sc - 2> /dev/null`
12
13 if [ "$LEN" -eq "5" ]
14 then
15 echo "Success"
16 else
17 exit 1
18 fi
19