Skip to content

Commit

Permalink
Add test case for autosetup without any patches
Browse files Browse the repository at this point in the history
Ensure there isn't a warning created.

Related: #3230
  • Loading branch information
ffesti authored and pmatilai committed Aug 6, 2024
1 parent 8e1e935 commit 6f08a20
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/data/SPECS/hello-auto.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ Summary: Simple rpm demonstration.
%sourcelist
hello-1.0.tar.gz

%{!?nopatches:

%patchlist
hello-1.0-modernize.patch
hello-1.0-install.patch

}

%description
Simple rpm demonstration.

Expand Down
13 changes: 13 additions & 0 deletions tests/rpmbuild.at
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,19 @@ run rpmbuild \
[ignore])
RPMTEST_CLEANUP

AT_SETUP([rpmbuild -bp autosetup without patches])
AT_KEYWORDS([build])
RPMDB_INIT
RPMTEST_CHECK([

run rpmbuild -D="nopatches 1" \
-bp ${RPMDATA}/SPECS/hello-auto.spec 2> >(grep warning >&2)
],
[0],
[ignore],
[])
RPMTEST_CLEANUP

AT_SETUP([rpmbuild --build-in-place 1])
AT_KEYWORDS([build])
RPMDB_INIT
Expand Down

0 comments on commit 6f08a20

Please sign in to comment.