Compare commits
No commits in common. "rawhide" and "f28" have entirely different histories.
@ -1 +0,0 @@
|
|||||||
1
|
|
159
filesystem.spec
159
filesystem.spec
@ -1,18 +1,16 @@
|
|||||||
Summary: The basic directory layout for a Linux system
|
Summary: The basic directory layout for a Linux system
|
||||||
Name: filesystem
|
Name: filesystem
|
||||||
Version: 3.18
|
Version: 3.8
|
||||||
Release: 9%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LicenseRef-Fedora-Public-Domain
|
License: Public Domain
|
||||||
URL: https://pagure.io/filesystem
|
URL: https://pagure.io/filesystem
|
||||||
|
Group: System Environment/Base
|
||||||
Source1: https://pagure.io/filesystem/raw/master/f/lang-exceptions
|
Source1: https://pagure.io/filesystem/raw/master/f/lang-exceptions
|
||||||
Source2: iso_639.sed
|
Source2: iso_639.sed
|
||||||
Source3: iso_3166.sed
|
Source3: iso_3166.sed
|
||||||
BuildRequires: iso-codes
|
BuildRequires: iso-codes
|
||||||
Requires(pre): setup
|
Requires(pre): setup
|
||||||
|
|
||||||
Provides: filesystem-afs = %{version}-%{release}
|
|
||||||
Obsoletes: filesystem-afs <= 3.14-2
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The filesystem package is one of the basic packages that is installed
|
The filesystem package is one of the basic packages that is installed
|
||||||
on a Linux system. Filesystem contains the basic directory layout
|
on a Linux system. Filesystem contains the basic directory layout
|
||||||
@ -28,6 +26,7 @@ This subpackage of filesystem package contains just the file with
|
|||||||
the directories owned by the filesystem package. This can be used
|
the directories owned by the filesystem package. This can be used
|
||||||
during the build process instead of calling rpm -ql filesystem.
|
during the build process instead of calling rpm -ql filesystem.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
rm -f $RPM_BUILD_DIR/filelist
|
rm -f $RPM_BUILD_DIR/filelist
|
||||||
|
|
||||||
@ -41,17 +40,14 @@ install -p -c -m755 %SOURCE3 %{buildroot}/iso_3166.sed
|
|||||||
|
|
||||||
cd %{buildroot}
|
cd %{buildroot}
|
||||||
|
|
||||||
Paths=(
|
mkdir -p boot dev \
|
||||||
afs boot dev \
|
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki,bash_completion.d} \
|
||||||
etc/{X11/{applnk,fontpath.d,xinit/{xinitrc,xinput}.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},skel,sysconfig,keys/ima,pki,bash_completion.d,rwtab.d,statetab.d} \
|
home media mnt opt proc root run srv sys tmp \
|
||||||
home media mnt opt root run srv tmp \
|
usr/{bin,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{debug/{.dwz,usr},games,locale,modules,sysimage,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,appdata,applications,augeas/lenses,backgrounds,bash-completion{,/completions,/helpers},desktop-directories,dict,doc,empty,games,gnome,help,icons,idl,info,licenses,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},metainfo,mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11,wayland-sessions},src,src/kernels,src/debug} \
|
||||||
usr/{bin,games,include,%{_lib}/{bpf,games,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{debug/{.dwz,usr},games,locale,modules,sysimage,systemd/{system,user},sysusers.d,tmpfiles.d},libexec,local/{bin,etc,games,lib,%{_lib}/bpf,sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,appdata,applications,augeas/lenses,backgrounds,bash-completion{,/completions,/helpers},desktop-directories,dict,doc,empty,fish/vendor_completions.d,games,gnome,help,icons,idl,info,licenses,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},metainfo,mime-info,misc,modulefiles,omf,pixmaps,sounds,themes,xsessions,X11/fonts,wayland-sessions,zsh/site-functions},src,src/kernels,src/debug} \
|
var/{adm,empty,ftp,gopher,lib/{games,misc,rpm-state},local,log,nis,preserve,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
|
||||||
var/{adm,empty,ftp,lib/{games,misc,rpm-state},local,log,nis,preserve,spool/{mail,lpd},tmp,db,cache/bpf,opt,games,yp}
|
|
||||||
)
|
|
||||||
for i in "${Paths[@]}"; do
|
|
||||||
mkdir -p "$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
#do not create the symlink atm.
|
||||||
|
#ln -snf etc/sysconfig etc/default
|
||||||
ln -snf ../var/tmp usr/tmp
|
ln -snf ../var/tmp usr/tmp
|
||||||
ln -snf spool/mail var/mail
|
ln -snf spool/mail var/mail
|
||||||
ln -snf usr/bin bin
|
ln -snf usr/bin bin
|
||||||
@ -154,10 +150,6 @@ posix.symlink("../.dwz", "/usr/lib/debug/usr/.dwz")
|
|||||||
posix.symlink("usr/sbin", "/usr/lib/debug/sbin")
|
posix.symlink("usr/sbin", "/usr/lib/debug/sbin")
|
||||||
posix.symlink("usr/%{_lib}", "/%{_lib}")
|
posix.symlink("usr/%{_lib}", "/%{_lib}")
|
||||||
posix.mkdir("/run")
|
posix.mkdir("/run")
|
||||||
posix.mkdir("/proc")
|
|
||||||
posix.mkdir("/sys")
|
|
||||||
posix.chmod("/proc", 0555)
|
|
||||||
posix.chmod("/sys", 0555)
|
|
||||||
st = posix.stat("/media")
|
st = posix.stat("/media")
|
||||||
if st and st.type == "link" then
|
if st and st.type == "link" then
|
||||||
os.remove("/media")
|
os.remove("/media")
|
||||||
@ -167,38 +159,38 @@ posix.symlink("../run", "/var/run")
|
|||||||
posix.symlink("../run/lock", "/var/lock")
|
posix.symlink("../run/lock", "/var/lock")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
%posttrans -p <lua>
|
%posttrans
|
||||||
--# we need to restorecon on some dirs created in %pretrans or by other packages
|
#we need to restorecon on some dirs created in %pretrans or by other packages
|
||||||
if posix.access ("/usr/sbin/restorecon", "x") then
|
restorecon /var 2>/dev/null >/dev/null || :
|
||||||
rpm.execute("/usr/sbin/restorecon", "/var", "/var/run", "/var/lock", "/sys", "/boot", "/dev", "/media", "/afs")
|
restorecon /var/run 2>/dev/null >/dev/null || :
|
||||||
rpm.execute("/usr/sbin/restorecon", "-r", "/usr/lib/debug")
|
restorecon /var/lock 2>/dev/null >/dev/null || :
|
||||||
end
|
restorecon -r /usr/lib/debug/ 2>/dev/null >/dev/null || :
|
||||||
|
restorecon /sys 2>/dev/null >/dev/null || :
|
||||||
|
restorecon /boot 2>/dev/null >/dev/null || :
|
||||||
|
restorecon /proc 2>/dev/null >/dev/null || :
|
||||||
|
restorecon /dev 2>/dev/null >/dev/null || :
|
||||||
|
restorecon /media 2>/dev/null >/dev/null || :
|
||||||
|
|
||||||
%files content
|
%files content
|
||||||
%dir %{_datadir}/filesystem
|
%dir %{_datadir}/filesystem
|
||||||
%{_datadir}/filesystem/paths
|
%{_datadir}/filesystem/paths
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files -f filelist
|
%files -f filelist
|
||||||
%defattr(0755,root,root,0755)
|
%defattr(0755,root,root,0755)
|
||||||
%dir %attr(555,root,root) /
|
%dir %attr(555,root,root) /
|
||||||
/bin
|
/bin
|
||||||
%attr(555,root,root) /boot
|
%attr(555,root,root) /boot
|
||||||
%attr(555,root,root) /afs
|
|
||||||
/dev
|
/dev
|
||||||
%dir /etc
|
%dir /etc
|
||||||
/etc/X11
|
/etc/X11
|
||||||
/etc/xdg
|
/etc/xdg
|
||||||
/etc/opt
|
/etc/opt
|
||||||
/etc/pm
|
/etc/pm
|
||||||
|
/etc/xinetd.d
|
||||||
/etc/skel
|
/etc/skel
|
||||||
/etc/sysconfig
|
/etc/sysconfig
|
||||||
/etc/keys
|
|
||||||
/etc/pki
|
/etc/pki
|
||||||
/etc/bash_completion.d/
|
/etc/bash_completion.d/
|
||||||
%dir /etc/rwtab.d
|
|
||||||
%dir /etc/statetab.d
|
|
||||||
/home
|
/home
|
||||||
/lib
|
/lib
|
||||||
%ifarch x86_64 ppc64 sparc64 s390x aarch64 ppc64le mips64 mips64el riscv64
|
%ifarch x86_64 ppc64 sparc64 s390x aarch64 ppc64le mips64 mips64el riscv64
|
||||||
@ -207,12 +199,12 @@ end
|
|||||||
/media
|
/media
|
||||||
%dir /mnt
|
%dir /mnt
|
||||||
%dir /opt
|
%dir /opt
|
||||||
%ghost %attr(555,root,root) /proc
|
%attr(555,root,root) /proc
|
||||||
%attr(550,root,root) /root
|
%attr(550,root,root) /root
|
||||||
/run
|
/run
|
||||||
/sbin
|
/sbin
|
||||||
/srv
|
/srv
|
||||||
%ghost %attr(555,root,root) /sys
|
%attr(555,root,root) /sys
|
||||||
%attr(1777,root,root) /tmp
|
%attr(1777,root,root) /tmp
|
||||||
%dir /usr
|
%dir /usr
|
||||||
%attr(555,root,root) /usr/bin
|
%attr(555,root,root) /usr/bin
|
||||||
@ -220,11 +212,6 @@ end
|
|||||||
/usr/include
|
/usr/include
|
||||||
%dir %attr(555,root,root) /usr/lib
|
%dir %attr(555,root,root) /usr/lib
|
||||||
%dir /usr/lib/sysimage
|
%dir /usr/lib/sysimage
|
||||||
%dir /usr/lib/systemd
|
|
||||||
/usr/lib/systemd/system
|
|
||||||
/usr/lib/systemd/user
|
|
||||||
%dir /usr/lib/sysusers.d
|
|
||||||
%dir /usr/lib/tmpfiles.d
|
|
||||||
%dir /usr/lib/locale
|
%dir /usr/lib/locale
|
||||||
%dir /usr/lib/modules
|
%dir /usr/lib/modules
|
||||||
%dir /usr/lib/debug
|
%dir /usr/lib/debug
|
||||||
@ -232,7 +219,7 @@ end
|
|||||||
%ghost /usr/lib/debug/bin
|
%ghost /usr/lib/debug/bin
|
||||||
%ghost /usr/lib/debug/lib
|
%ghost /usr/lib/debug/lib
|
||||||
%ghost /usr/lib/debug/%{_lib}
|
%ghost /usr/lib/debug/%{_lib}
|
||||||
%ghost %dir /usr/lib/debug/usr
|
%ghost /usr/lib/debug/usr
|
||||||
%ghost /usr/lib/debug/usr/bin
|
%ghost /usr/lib/debug/usr/bin
|
||||||
%ghost /usr/lib/debug/usr/sbin
|
%ghost /usr/lib/debug/usr/sbin
|
||||||
%ghost /usr/lib/debug/usr/lib
|
%ghost /usr/lib/debug/usr/lib
|
||||||
@ -240,10 +227,11 @@ end
|
|||||||
%ghost /usr/lib/debug/usr/.dwz
|
%ghost /usr/lib/debug/usr/.dwz
|
||||||
%ghost /usr/lib/debug/sbin
|
%ghost /usr/lib/debug/sbin
|
||||||
%attr(555,root,root) /usr/lib/games
|
%attr(555,root,root) /usr/lib/games
|
||||||
|
%attr(555,root,root) /usr/lib/sse2
|
||||||
%ifarch x86_64 ppc64 sparc64 s390x aarch64 ppc64le mips64 mips64el riscv64
|
%ifarch x86_64 ppc64 sparc64 s390x aarch64 ppc64le mips64 mips64el riscv64
|
||||||
%attr(555,root,root) /usr/%{_lib}
|
%attr(555,root,root) /usr/%{_lib}
|
||||||
%else
|
%else
|
||||||
%attr(555,root,root) /usr/lib/bpf
|
%attr(555,root,root) /usr/lib/tls
|
||||||
%attr(555,root,root) /usr/lib/X11
|
%attr(555,root,root) /usr/lib/X11
|
||||||
%attr(555,root,root) /usr/lib/pm-utils
|
%attr(555,root,root) /usr/lib/pm-utils
|
||||||
%endif
|
%endif
|
||||||
@ -263,7 +251,6 @@ end
|
|||||||
/usr/share/dict
|
/usr/share/dict
|
||||||
/usr/share/doc
|
/usr/share/doc
|
||||||
%attr(555,root,root) %dir /usr/share/empty
|
%attr(555,root,root) %dir /usr/share/empty
|
||||||
/usr/share/fish
|
|
||||||
/usr/share/games
|
/usr/share/games
|
||||||
/usr/share/gnome
|
/usr/share/gnome
|
||||||
/usr/share/help
|
/usr/share/help
|
||||||
@ -276,26 +263,23 @@ end
|
|||||||
/usr/share/metainfo
|
/usr/share/metainfo
|
||||||
/usr/share/mime-info
|
/usr/share/mime-info
|
||||||
/usr/share/misc
|
/usr/share/misc
|
||||||
%dir /usr/share/modulefiles
|
|
||||||
/usr/share/omf
|
/usr/share/omf
|
||||||
/usr/share/pixmaps
|
/usr/share/pixmaps
|
||||||
/usr/share/sounds
|
/usr/share/sounds
|
||||||
/usr/share/themes
|
/usr/share/themes
|
||||||
/usr/share/xsessions
|
/usr/share/xsessions
|
||||||
%dir /usr/share/X11
|
/usr/share/X11
|
||||||
/usr/share/X11/fonts
|
|
||||||
/usr/share/wayland-sessions
|
/usr/share/wayland-sessions
|
||||||
/usr/share/zsh
|
|
||||||
/usr/src
|
/usr/src
|
||||||
/usr/tmp
|
/usr/tmp
|
||||||
%dir /var
|
%dir /var
|
||||||
/var/adm
|
/var/adm
|
||||||
%dir /var/cache
|
/var/cache
|
||||||
/var/cache/bpf
|
|
||||||
/var/db
|
/var/db
|
||||||
/var/empty
|
/var/empty
|
||||||
/var/ftp
|
/var/ftp
|
||||||
/var/games
|
/var/games
|
||||||
|
/var/gopher
|
||||||
/var/lib
|
/var/lib
|
||||||
/var/local
|
/var/local
|
||||||
%ghost /var/lock
|
%ghost /var/lock
|
||||||
@ -312,83 +296,6 @@ end
|
|||||||
/var/yp
|
/var/yp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Mar 13 2024 Orion Poplawski <orion@fedoraproject.org> - 3.18-9
|
|
||||||
- Add /usr/share/modulefiles for environment modules
|
|
||||||
|
|
||||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.18-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.18-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
* Fri Jul 21 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 3.18-6
|
|
||||||
- Add /etc/keys for initrd/kernel related keys
|
|
||||||
|
|
||||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.18-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Feb 21 2023 Than Ngo <than@redhat.com> - 3.18-4
|
|
||||||
- migrated to SPDX license
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.18-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Aug 09 2022 Martin Osvald <mosvald@redhat.com> - 3.18-2
|
|
||||||
- Filesystem has a dependency on /bin/sh (rhbz#1306489)
|
|
||||||
|
|
||||||
* Tue Jul 26 2022 Martin Osvald <mosvald@redhat.com> - 3.18-1
|
|
||||||
- Filesystem has a dependency on /bin/sh (#1306489)
|
|
||||||
- Add /usr/share/X11/fonts/ to default filesystem (#2107447)
|
|
||||||
- Remove obsolete and forbidden Group tag
|
|
||||||
- Own zsh and fish completions directories (rhbz#1312594)
|
|
||||||
- Improve directory creation to avoid 'Argument list too long' error
|
|
||||||
|
|
||||||
* Mon Jul 25 2022 Debarshi Ray <rishi@fedoraproject.org> - 3.17-1
|
|
||||||
- Assume ownership of /usr/lib/tmpfiles.d
|
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.16-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Petr Menšík <pemensik@redhat.com> - 3.16-3
|
|
||||||
- Include systemd directories for %unitdir and similar
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.16-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Aug 3 2021 Pavel Zhukov <pzhukov@redhat.com> - 3.15-1
|
|
||||||
- Move /afs into main package
|
|
||||||
|
|
||||||
* Fri Aug 07 2020 Pavel Raiskup <praiskup@redhat.com> - 3.14-4
|
|
||||||
- /proc and /sys made %%ghost to allow filesystem package updates in rootless
|
|
||||||
container environments (rhbz#1548403)
|
|
||||||
|
|
||||||
* Mon Jan 27 2020 Ondrej Vasik <ovasik@redhat.com> - 3.14-1
|
|
||||||
- do not restore context of /proc (#1722766)
|
|
||||||
|
|
||||||
* Wed Dec 18 2019 Ondrej Vasik <ovasik@redhat.com> - 3.13-1
|
|
||||||
- add ownership for eBPF bytecode files directories (#1781646)
|
|
||||||
|
|
||||||
* Thu Jun 20 2019 David Howells <dhowells@redhat.com> - 3.12-1
|
|
||||||
- add new -afs supbackage for /afs directory (#FPC888,#1720232)
|
|
||||||
|
|
||||||
* Mon Apr 29 2019 Ondrej Vasik <ovasik@redhat.com> - 3.11-1
|
|
||||||
- drop ownership for /etc/xinet.d (#1691146)
|
|
||||||
- drop ownership for %{_libdir}/tls, %{_libdir}/sse2 (#1702329)
|
|
||||||
|
|
||||||
* Mon Feb 11 2019 Ondrej Vasik <ovasik@redhat.com> - 3.10-1
|
|
||||||
- drop legacy /var/gopher (#1667231)
|
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jun 21 2018 Ondrej Vasik <ovasik@redhat.com> - 3.9-1
|
|
||||||
- add ownership of /etc/rwtab.d and /etc/statetab.d
|
|
||||||
|
|
||||||
* Tue Feb 20 2018 Adam Jackson <ajax@redhat.com> - 3.8-3
|
|
||||||
- own /etc/X11/xinit/{,{xinitrc,xinput}.d}
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8-2
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
@ -501,7 +408,7 @@ end
|
|||||||
* Sun Jun 30 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-17
|
* Sun Jun 30 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-17
|
||||||
- .dwz symlink is needed as well (#974130)
|
- .dwz symlink is needed as well (#974130)
|
||||||
|
|
||||||
* Thu Jun 20 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-16
|
* Wed Jun 20 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-16
|
||||||
- /var/run and /var/lock can't be in payload for some reason
|
- /var/run and /var/lock can't be in payload for some reason
|
||||||
|
|
||||||
* Wed Jun 19 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-15
|
* Wed Jun 19 2013 Ondrej Vasik <ovasik@redhat.com> - 3.2-15
|
||||||
|
16
gating.yaml
16
gating.yaml
@ -1,16 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_contexts: [bodhi_update_push_testing]
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
||||||
|
|
||||||
#gating rawhide
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_contexts: [bodhi_update_push_stable]
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
@ -1,6 +0,0 @@
|
|||||||
summary: Test plan with all Fedora tests
|
|
||||||
discover:
|
|
||||||
how: fmf
|
|
||||||
url: https://src.fedoraproject.org/tests/filesystem.git
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
0
tests/README.rst
Normal file
0
tests/README.rst
Normal file
63
tests/filesystem-should-own-usr-share-licenses/Makefile
Normal file
63
tests/filesystem-should-own-usr-share-licenses/Makefile
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /CoreOS/filesystem/filesystem-should-own-usr-share-licenses
|
||||||
|
# Description: Test if filesystem owns /usr/share/licenses
|
||||||
|
# Author: Robin Hack <rhack@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 2 of
|
||||||
|
# the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/CoreOS/filesystem/filesystem-should-own-usr-share-licenses
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
test -x runtest.sh || chmod a+x runtest.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Robin Hack <rhack@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: Test if filesystem owns /usr/share/licenses" >> $(METADATA)
|
||||||
|
@echo "Type: Regression" >> $(METADATA)
|
||||||
|
@echo "TestTime: 20m" >> $(METADATA)
|
||||||
|
@echo "RunFor: filesystem" >> $(METADATA)
|
||||||
|
@echo "Requires: filesystem lvm2" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
4
tests/filesystem-should-own-usr-share-licenses/PURPOSE
Normal file
4
tests/filesystem-should-own-usr-share-licenses/PURPOSE
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PURPOSE of /CoreOS/filesystem/filesystem-should-own-usr-share-licenses
|
||||||
|
Description: Test if filesystem should owns /usr/share/licenses
|
||||||
|
Author: Robin Hack <rhack@redhat.com>
|
||||||
|
Bug summary: filesystem should own /usr/share/licenses directory
|
53
tests/filesystem-should-own-usr-share-licenses/runtest.sh
Executable file
53
tests/filesystem-should-own-usr-share-licenses/runtest.sh
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /CoreOS/filesystem/filesystem-should-own-usr-share-licenses
|
||||||
|
# Description: Test if filesystem owns /usr/share/licenses
|
||||||
|
# Author: Robin Hack <rhack@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 2 of
|
||||||
|
# the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include Beaker environment
|
||||||
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="filesystem"
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlAssertRpm $PACKAGE
|
||||||
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
|
rlRun "pushd $TmpDir"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun -s "LC_ALL=en_US.UTF-8 rpm -qf /usr/share/licenses/"
|
||||||
|
|
||||||
|
rlAssertNotGrep "file /usr/share/licenses is not owned by any package" "${rlRun_LOG}"
|
||||||
|
rlAssertGrep "^filesystem" "${rlRun_LOG}"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "popd"
|
||||||
|
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
28
tests/tests.yml
Normal file
28
tests/tests.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tests:
|
||||||
|
- filesystem-should-own-usr-share-licenses
|
||||||
|
required_packages:
|
||||||
|
- filesystem
|
||||||
|
- lvm2
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- container
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tests:
|
||||||
|
- filesystem-should-own-usr-share-licenses
|
||||||
|
required_packages:
|
||||||
|
- filesystem
|
||||||
|
- lvm2
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- atomic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tests:
|
||||||
|
- filesystem-should-own-usr-share-licenses
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user