SHA256
1
0
forked from pool/gdb

- Enable running the testsuite and store results in a gdb-testresults

package.
- Add gdb-rpmlintrc to filter errors about the buildroot mentioned
  in testresult logs.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=104
This commit is contained in:
Richard Biener 2014-08-13 11:27:24 +00:00 committed by Git OBS Bridge
parent a1ffb367a0
commit 8c1a3112a4
3 changed files with 32 additions and 2 deletions

6
gdb-rpmlintrc Normal file
View File

@ -0,0 +1,6 @@
# This line is mandatory to access the configuration functions
from Config import *
# The testresult logs contain part of the build log and thus
# necessarily mention the buildroot
addFilter ("gdb-testresults.*file-contains-buildroot")

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Aug 13 07:54:35 UTC 2014 - rguenther@suse.com
- Enable running the testsuite and store results in a gdb-testresults
package.
- Add gdb-rpmlintrc to filter errors about the buildroot mentioned
in testresult logs.
-------------------------------------------------------------------
Fri Aug 8 12:22:24 UTC 2014 - rguenther@suse.com

View File

@ -17,6 +17,8 @@
#
%define _with_testsuite 1
Summary: A GNU source-level debugger for C, C++, Fortran and other languages
License: GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and LGPL-3.0+
Group: Development/Tools/Debuggers
@ -86,6 +88,7 @@ Source6: gdbtui
Source10: patchlist.pl
Source11: patchname_get.sh
Source12: baselibs.conf
Source13: gdb-rpmlintrc
#Fedora Packages begin
Patch1: gdb-6.3-rh-testversion-20041202.patch
@ -318,6 +321,13 @@ and printing their data.
This package provides INFO, HTML and PDF user manual for GDB.
%package testresults
Summary: GDB testsuite results
License: SUSE-Public-Domain
Group: Development/Languages/C and C++
%description testresults
Results from running the GDB testsuite.
%prep
%setup -q -n %{gdb_src}
@ -721,8 +731,8 @@ do
done
done
# `tar | bzip2 | uuencode' may have some piping problems in Brew.
tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log}
uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
#tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log}
#uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
cd ../..
echo ====================TESTING END=====================
%endif
@ -900,6 +910,12 @@ fi
%endif
%endif
%if 0%{?_with_testsuite:1}
%files testresults
%doc %{gdb_build}/gdb/gdb-*.sum
%doc %{gdb_build}/gdb/gdb-*.log
%endif
# don't include the files in include, they are part of binutils
%if %{suse_version} > 1010