SHA256
1
0
forked from pool/grep

Accepting request 85060 from home:dirkmueller:branches:Base:System

- fix testsuite to build properly against locally built grep

OBS-URL: https://build.opensuse.org/request/show/85060
OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=13
This commit is contained in:
Dirk Mueller 2011-09-27 10:43:28 +00:00 committed by Git OBS Bridge
parent 62cf53a846
commit cae5da8ad4
3 changed files with 37 additions and 0 deletions

30
fix-testsuite.diff Normal file
View File

@ -0,0 +1,30 @@
--- tests/reversed-range-endpoints
+++ tests/reversed-range-endpoints
@@ -11,7 +11,7 @@
test $? = 2 || fail=1
# Remove "program_name: " prefix from actual output.
- sed 's/^[a-z]*: //' out > k && mv k out
+ sed 's/^[^ ]*: //' out > k && mv k out
compare out exp || fail=1
done
--- tests/warn-char-classes
+++ tests/warn-char-classes
@@ -5,13 +5,15 @@
echo f > x || framework_failure_
echo b >> x || framework_failure_
echo h >> x || framework_failure_
-printf 'grep: character class syntax is [[:space:]], not [:space:]\n' \
+printf 'character class syntax is [[:space:]], not [:space:]\n' \
> exp-err || framework_failure_
# basic cases
grep '[:space:]' x 2> err
test $? = 2 || fail=1
+# Remove "program_name: " prefix from actual output.
+sed 's/^[^ ]*: //' err > k && mv k err
compare err exp-err || fail=1
grep '[[:space:]]' x 2> err

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 27 12:42:54 CEST 2011 - dmueller@suse.de
- fix testsuite to build properly against locally built grep
-------------------------------------------------------------------
Wed Aug 10 03:17:41 UTC 2011 - crrodriguez@opensuse.org

View File

@ -32,6 +32,7 @@ Version: 2.9
Release: 1
Summary: Print lines matching a pattern
Source: grep-%{version}.tar.bz2
Patch0: fix-testsuite.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -44,6 +45,7 @@ By default, grep prints the matching lines.
%if 0%{?suse_version} < 1120
echo "ac_cv_search_pcre_compile=\${ac_cv_search_pcre_compile=%{_libdir}/libpcre.a}" >config.cache
%endif
%patch0
%build
%if 0%{?suse_version} < 1120