Mercurial > hg > sonic-annotator
annotate tests/test-helpfulflags/test-helpfulflags.sh @ 119:7a31201dc42d test-reorg
Split out tests into individual directories, with simpler naming therein
author | Chris Cannam |
---|---|
date | Wed, 08 Oct 2014 15:08:57 +0100 |
parents | tests/test-helpfulflags.sh@0fe5abb56a6e |
children | f0df07da6f46 |
rev | line source |
---|---|
Chris@0 | 1 #!/bin/bash |
Chris@0 | 2 |
Chris@119 | 3 . ../include.sh |
Chris@0 | 4 |
Chris@0 | 5 $r >/dev/null 2>&1 && \ |
Chris@0 | 6 fail "Return code 0 when run without args (should be a failure code)" |
Chris@0 | 7 |
Chris@0 | 8 $r 2>&1 >/dev/null | grep -q "for help" || \ |
Chris@0 | 9 fail "Improper response when run without args" |
Chris@0 | 10 |
Chris@0 | 11 $r --help 2>&1 | grep -q Copy || \ |
Chris@0 | 12 fail "Expected help not printed when run with --help" |
Chris@0 | 13 |
Chris@0 | 14 $r --list >/dev/null 2>&1 || \ |
Chris@0 | 15 fail "Fails to run with --list" |
Chris@0 | 16 |
Chris@118 | 17 $r --list 2>/dev/null | grep -q $percplug || \ |
Chris@118 | 18 fail "Fails to print $percplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" |
Chris@118 | 19 |
Chris@0 | 20 $r --list 2>/dev/null | grep -q $testplug || \ |
Chris@0 | 21 fail "Fails to print $testplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" |
Chris@0 | 22 |
Chris@118 | 23 $r --skeleton $percplug >/dev/null || \ |
Chris@118 | 24 fail "Fails to run with --skeleton $percplug" |
Chris@75 | 25 |
Chris@118 | 26 $r -s $percplug >/dev/null || \ |
Chris@118 | 27 fail "Fails to run with -s $percplug" |
Chris@0 | 28 |
Chris@118 | 29 $r --skeleton $percplug >/dev/null || \ |
Chris@118 | 30 fail "Fails to run with --skeleton $percplug" |
Chris@0 | 31 |
Chris@118 | 32 $r --skeleton $percplug | rapper -i turtle - test >/dev/null 2>&1 || \ |
Chris@118 | 33 fail "Invalid XML skeleton produced with --skeleton $percplug" |
Chris@0 | 34 |
Chris@0 | 35 exit 0 |