diff options
author | Remi Collet <remi@remirepo.net> | 2023-10-13 14:05:18 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-10-13 14:05:18 +0200 |
commit | 2b84fa512895a69d9a7f85f3b9fc1297bfb53556 (patch) | |
tree | 2e62a1d0f94bf14504cd688b7312e7715abd12e6 /tests | |
parent | 393b64580b99cbca00d7ea752b56708b3f9f6979 (diff) |
add spec file for test rpm
Diffstat (limited to 'tests')
-rw-r--r-- | tests/003-rpminfo.phpt | 2 | ||||
-rw-r--r-- | tests/005-rpminfo-full.phpt | 2 | ||||
-rw-r--r-- | tests/014-stream.phpt | 10 | ||||
-rw-r--r-- | tests/bidon.rpm | bin | 6972 -> 7492 bytes | |||
-rw-r--r-- | tests/bidon.spec | 37 |
5 files changed, 44 insertions, 7 deletions
diff --git a/tests/003-rpminfo.phpt b/tests/003-rpminfo.phpt index beb7b47..c1c5d2a 100644 --- a/tests/003-rpminfo.phpt +++ b/tests/003-rpminfo.phpt @@ -14,7 +14,7 @@ array(5) { ["Version"]=> string(1) "1" ["Release"]=> - string(11) "1.fc27.remi" + string(11) "2.fc37.remi" ["Summary"]=> string(5) "Bidon" ["Arch"]=> diff --git a/tests/005-rpminfo-full.phpt b/tests/005-rpminfo-full.phpt index 38f5bab..90080da 100644 --- a/tests/005-rpminfo-full.phpt +++ b/tests/005-rpminfo-full.phpt @@ -26,7 +26,7 @@ string(5) "bidon" string(15) "A dummy package" array(1) { [0]=> - string(8) "- create" + string(20) "- add some hardlinks" } bool(false) array(1) { diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt index d10b421..46d6b66 100644 --- a/tests/014-stream.phpt +++ b/tests/014-stream.phpt @@ -47,7 +47,7 @@ string(2) "OK" bool(true) bool(true) bool(false) -int(29) +int(30) int(33188) string(2) "OK" bool(true) @@ -55,14 +55,14 @@ bool(false) bool(true) + file resource(%d) of type (stream) -int(29) +int(30) int(33188) -string(10) "Mon Feb 12" +string(10) "Fri Oct 13" bool(false) -string(17) "13:27:47 CET 2018" +string(18) "12:24:27 CEST 2023" bool(true) + stream -string(28) "Mon Feb 12 13:27:47 CET 2018" +string(29) "Fri Oct 13 12:24:27 CEST 2023" Warning: file_get_contents(%s/bidon.rpm#/usr/share/doc/bidon/TODO): Failed to open stream: operation failed in %s on line %d bool(false) diff --git a/tests/bidon.rpm b/tests/bidon.rpm Binary files differindex 6cbfa04..75ed242 100644 --- a/tests/bidon.rpm +++ b/tests/bidon.rpm diff --git a/tests/bidon.spec b/tests/bidon.spec new file mode 100644 index 0000000..3f76b64 --- /dev/null +++ b/tests/bidon.spec @@ -0,0 +1,37 @@ +%{!?ver: %global ver 1} + +Name: bidon +Version: %{ver} +Release: 2%{?dist} +Summary: Bidon +License: Public Domain +URL: http://blog.famillecollet.com/ + +Obsoletes: fooobs < 2 + + +%description +A dummy package + +%prep +date >README +echo "content" >conf + +%build +: nothing to build + +%install +install -Dpm644 conf %{buildroot}%{_sysconfdir}/foo.conf +ln %{buildroot}%{_sysconfdir}/foo.conf %{buildroot}%{_sysconfdir}/bar.conf + +%files +%doc README +%config(noreplace) %{_sysconfdir}/*.conf + + +%changelog +* Fri Oct 13 2023 Remi Collet <remi@fedoraproject.org> - 1-2 +- add some hardlinks + +* Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1-1 +- create |