Add 'tests' definition.
Defining this option will iimit the tests performed with the "--with testsuite" option: $ rpmbuild -bb --with testsuite --define 'tests "gdb.base/break.exp gdb.dwarf2/*.exp"' \ gdb.spec The above will build the RPM with testing, but it will only test the listed tests (just as if they were passed to TESTS="gdb.base/break.exp gdb.dwarf2/*.exp").
This commit is contained in:
parent
0803f3fa54
commit
45e744e200
9
gdb.spec
9
gdb.spec
@ -6,6 +6,7 @@
|
|||||||
# --with profile: gcc -fprofile-generate / -fprofile-use: Before better
|
# --with profile: gcc -fprofile-generate / -fprofile-use: Before better
|
||||||
# workload gets run it decreases the general performance now.
|
# workload gets run it decreases the general performance now.
|
||||||
# --define 'scl somepkgname': Independent packages by scl-utils-build.
|
# --define 'scl somepkgname': Independent packages by scl-utils-build.
|
||||||
|
# --define 'tests "TEST1 ... TESTN": Limit testing to specified tests.
|
||||||
|
|
||||||
# Turn off the brp-python-bytecompile automagic
|
# Turn off the brp-python-bytecompile automagic
|
||||||
%global _python_bytecompile_extra 0
|
%global _python_bytecompile_extra 0
|
||||||
@ -887,7 +888,13 @@ gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2
|
|||||||
# See also: gdb-runtest-pie-override.exp
|
# See also: gdb-runtest-pie-override.exp
|
||||||
###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
|
###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
|
||||||
|
|
||||||
./orphanripper %make_build -k $CHECK || :
|
TESTS=""
|
||||||
|
%if 0%{?tests:1}
|
||||||
|
for test in %{tests}; do
|
||||||
|
TESTS="${TESTS:+$TESTS }$test"
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
./orphanripper make %{?_smp_mflags} -k $CHECK TESTS="$TESTS" || :
|
||||||
)
|
)
|
||||||
for t in sum log
|
for t in sum log
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user