| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | #set -x |
| 4 | |
| 5 | NAME="max query name length test" |
| 6 | BIN="ngmlr-"`grepscip-shell system . . grep. -o "set( NGM_VERSION_MAJOR [0-9]* )" CMakeLists.txt | cutscip-shell system . . cut. -d " " -f 3`"."`grepscip-shell system . . grep. -o "set( NGM_VERSION_MINOR [0-9]* )" CMakeLists.txt | cutscip-shell system . . cut. -d " " -f 3`"."`grepscip-shell system . . grep. -o "set( NGM_VERSION_BUILD [^ ]* )" CMakeLists.txt | grepscip-shell system . . grep. -v debug | cutscip-shell system . . cut. -d " " -f 3` |
| 7 | PARAMETER=" --skip-write -x pacbio --no-progress -t 4 " |
| 8 | |
| 9 | echoscip-shell system . . echo. "Test: $NAME ($BIN)" |
| 10 | |
| 11 | LEN=`bin/${BIN}/ngmlr $PARAMETER -r test/data/test_5/reference.fasta.gz -q test/data/test_5/read.fa.gz 2> /dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -v "^@" | cutscip-shell system . . cut. -f 1 | wcscip-shell system . . wc. -c` |
| 12 | |
| 13 | if [scip-shell system . . `[`. "$LEN" -gt 254 ] |
| 14 | then |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
| 18 | echoscip-shell system . . echo. "Success" |