Test for {} brace globbing in %files too

This commit is contained in:
Panu Matilainen 2022-05-03 12:10:04 +03:00
parent fd3ef9b09e
commit 9bdf33719a
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{testdir}
echo "foo" > $RPM_BUILD_ROOT/%{testdir}/weird%%name
for f in bif baf zab zeb zib; do
for f in bif baf zab zeb zib brace grace; do
echo "$f" > $RPM_BUILD_ROOT/%{testdir}/$f
done
for f in bing bang bong; do
@ -33,6 +33,7 @@ ln -s %{testdir}/zub $RPM_BUILD_ROOT/%{testdir}/linkbad
%files
%defattr(-,root,root,-)
%{testdir}/b??
%{testdir}/{brace,grace}
%{testdir}/weird?name
%{testdir}/z*
%{testdir}/l*

View File

@ -417,10 +417,12 @@ drwxr-xr-x /opt/globtest/bang
-rw-r--r-- /opt/globtest/bif
drwxr-xr-x /opt/globtest/bing
drwxr-xr-x /opt/globtest/bong
-rw-r--r-- /opt/globtest/brace
drwxr-xr-x /opt/globtest/foo
-rw-r--r-- /opt/globtest/foo/one
-rw-r--r-- /opt/globtest/foo/three
-rw-r--r-- /opt/globtest/foo/two
-rw-r--r-- /opt/globtest/grace
lrwxrwxrwx /opt/globtest/linkbad
lrwxrwxrwx /opt/globtest/linkgood
-rw-r--r-- /opt/globtest/weird%name