comparison tests/test-helpfulflags/test-helpfulflags.sh @ 122:eb0f3a2029b8

Merge from test-reorg branch
author Chris Cannam
date Wed, 08 Oct 2014 15:38:48 +0100
parents 7a31201dc42d
children f0df07da6f46
comparison
equal deleted inserted replaced
117:5be4995f4029 122:eb0f3a2029b8
1 #!/bin/bash
2
3 . ../include.sh
4
5 $r >/dev/null 2>&1 && \
6 fail "Return code 0 when run without args (should be a failure code)"
7
8 $r 2>&1 >/dev/null | grep -q "for help" || \
9 fail "Improper response when run without args"
10
11 $r --help 2>&1 | grep -q Copy || \
12 fail "Expected help not printed when run with --help"
13
14 $r --list >/dev/null 2>&1 || \
15 fail "Fails to run with --list"
16
17 $r --list 2>/dev/null | grep -q $percplug || \
18 fail "Fails to print $percplug in plugin list (if you haven't got it, install it -- it's needed for other tests)"
19
20 $r --list 2>/dev/null | grep -q $testplug || \
21 fail "Fails to print $testplug in plugin list (if you haven't got it, install it -- it's needed for other tests)"
22
23 $r --skeleton $percplug >/dev/null || \
24 fail "Fails to run with --skeleton $percplug"
25
26 $r -s $percplug >/dev/null || \
27 fail "Fails to run with -s $percplug"
28
29 $r --skeleton $percplug >/dev/null || \
30 fail "Fails to run with --skeleton $percplug"
31
32 $r --skeleton $percplug | rapper -i turtle - test >/dev/null 2>&1 || \
33 fail "Invalid XML skeleton produced with --skeleton $percplug"
34
35 exit 0