summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/003-rpminfo.phpt2
-rw-r--r--tests/005-rpminfo-full.phpt2
-rw-r--r--tests/014-stream.phpt10
-rw-r--r--tests/bidon.rpmbin6972 -> 7492 bytes
-rw-r--r--tests/bidon.spec37
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
index 6cbfa04..75ed242 100644
--- a/tests/bidon.rpm
+++ b/tests/bidon.rpm
Binary files differ
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