Chris@0: #!/bin/bash Chris@0: Chris@119: . ../include.sh Chris@0: Chris@0: $r >/dev/null 2>&1 && \ Chris@0: fail "Return code 0 when run without args (should be a failure code)" Chris@0: Chris@0: $r 2>&1 >/dev/null | grep -q "for help" || \ Chris@0: fail "Improper response when run without args" Chris@0: Chris@0: $r --help 2>&1 | grep -q Copy || \ Chris@0: fail "Expected help not printed when run with --help" Chris@0: Chris@0: $r --list >/dev/null 2>&1 || \ Chris@0: fail "Fails to run with --list" Chris@0: Chris@118: $r --list 2>/dev/null | grep -q $percplug || \ Chris@118: fail "Fails to print $percplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" Chris@118: Chris@0: $r --list 2>/dev/null | grep -q $testplug || \ Chris@0: fail "Fails to print $testplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" Chris@0: Chris@118: $r --skeleton $percplug >/dev/null || \ Chris@118: fail "Fails to run with --skeleton $percplug" Chris@75: Chris@118: $r -s $percplug >/dev/null || \ Chris@118: fail "Fails to run with -s $percplug" Chris@0: Chris@118: $r --skeleton $percplug >/dev/null || \ Chris@118: fail "Fails to run with --skeleton $percplug" Chris@0: Chris@118: $r --skeleton $percplug | rapper -i turtle - test >/dev/null 2>&1 || \ Chris@118: fail "Invalid XML skeleton produced with --skeleton $percplug" Chris@0: Chris@127: $r --minversion $version || \ Chris@127: fail "Returned failure code when run with --minversion $version" Chris@127: Chris@127: $r --minversion ${version}.1 2>/dev/null && \ Chris@127: fail "Returned success code when run with --minversion $version" Chris@127: Chris@127: $r --minversion 63.9 2>/dev/null && \ Chris@127: fail "Returned success code when run with --minversion 63.9" Chris@127: Chris@0: exit 0