* Handle directory as output filename (append input basename). - Fix dd_rhelp.test script and add to %check. OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=5
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
--- dd_rhelp-0.1.2/dd_rhelp.test.orig 2009-04-21 23:49:27.000000000 +0200
|
|
+++ dd_rhelp-0.1.2/dd_rhelp.test 2011-10-05 11:18:41.000000000 +0200
|
|
@@ -1188,9 +1188,9 @@ function test_gnu_standards() {
|
|
assert "$tprog --help sends errorlevel 0" $tprog --help
|
|
assert "$tprog --version sends errorlevel 0" $tprog --version
|
|
|
|
- assert "$tprog --version sends version info" matches \"$($tprog --version)\" \"$tprog ver\. [0-9]\+\.[0-9]\+\.[0-9]\+\"
|
|
+ assert "$tprog --version sends version info" matches \"$($tprog --version)\" \"$tprog ver\\. [0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\"
|
|
|
|
- assert "$tprog --help output contains info in first line" matches \"$($tprog --help | "$head" -n 1)\" \"$tprog ver\. [0-9]\+\.[0-9]\+\.[0-9]\+\"
|
|
+ assert "$tprog --help output contains info in first line" matches \"$($tprog --help | "$head" -n 1)\" \"$tprog ver\\. [0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\"
|
|
|
|
assert "$tprog --help info are the same than $tprog --help" [ \"$($tprog --help | "$head" -n 1)\" == \"$($tprog --version)\" ]
|
|
}
|
|
@@ -1305,6 +1305,7 @@ esac
|
|
|
|
#!-
|
|
|
|
+include parse
|
|
include pretty
|
|
include common
|
|
include shunit
|
|
@@ -1318,7 +1319,7 @@ tmp=/tmp
|
|
|
|
export PATH=".:$PATH"
|
|
|
|
-gnu_standards
|
|
+test_gnu_standards
|
|
|
|
#
|
|
# Checking bad arguments
|