summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/data/SPECS/specstep.spec1
-rw-r--r--tests/rpmbuild.at8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/data/SPECS/specstep.spec b/tests/data/SPECS/specstep.spec
index 2a4b5d0eb..52afb0291 100644
--- a/tests/data/SPECS/specstep.spec
+++ b/tests/data/SPECS/specstep.spec
@@ -3,6 +3,7 @@ Version: 1.0
Release: 1
Summary: Testing spec steps
License: GPL
+%{?preamble}
%description
%{summary}
diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at
index bb3bdc168..e810c8478 100644
--- a/tests/rpmbuild.at
+++ b/tests/rpmbuild.at
@@ -56,6 +56,14 @@ runroot rpmbuild -bp /data/SPECS/specstep.spec 2>&1|grep ^Executing|cut -d: -f1
[])
AT_CHECK([
+runroot rpmbuild -bp -D "preamble BuildRequires:foo" /data/SPECS/specstep.spec 2>&1|grep ^error:
+],
+[0],
+[error: Failed build dependencies:
+],
+[])
+
+AT_CHECK([
runroot rpmbuild -br /data/SPECS/specstep.spec 2>&1|grep ^Executing|cut -d: -f1
],
[0],