| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | #set -x |
| 4 | |
| 5 | NAME="read name length" |
| 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 " |
| 8 | |
| 9 | echoscip-shell system . . echo. "Test: $NAME ($BIN)" |
| 10 | |
| 11 | bin/${BIN}/ngmlr $PARAMETER -r test/data/test_1/ref_chr6_140kb.fa -q test/data/test_1/long_name.fa 2> /dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -v "^@" | cutscip-shell system . . cut. -f 1 > test/data/test_1/found.txt |
| 12 | |
| 13 | diffscip-shell system . . diff. test/data/test_1/expected.txt test/data/test_1/found.txt && echoscip-shell system . . echo. "Success" |
| 14 | |
| 15 | rmscip-shell system . . rm. test/data/test_1/found.txt |