|
|
629b27 |
From fd4060dcfbe4127fb0d19f1878d0d8b9f34c7b9a Mon Sep 17 00:00:00 2001
|
|
|
629b27 |
From: chantra <chantr4@gmail.com>
|
|
|
629b27 |
Date: Fri, 28 Jan 2022 08:33:16 -0800
|
|
|
629b27 |
Subject: [PATCH 05/30] [tests][rpm2extents] Add basic tests for rpm2extents
|
|
|
629b27 |
|
|
|
629b27 |
---
|
|
|
629b27 |
tests/Makefile.am | 1 +
|
|
|
629b27 |
tests/rpm2extents.at | 31 +++++++++++++++++++++++++++++++
|
|
|
629b27 |
tests/rpmtests.at | 1 +
|
|
|
629b27 |
3 files changed, 33 insertions(+)
|
|
|
629b27 |
create mode 100644 tests/rpm2extents.at
|
|
|
629b27 |
|
|
|
629b27 |
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
|
629b27 |
index f78e17c3e..fc8a24a5e 100644
|
|
|
629b27 |
--- a/tests/Makefile.am
|
|
|
629b27 |
+++ b/tests/Makefile.am
|
|
|
629b27 |
@@ -36,6 +36,7 @@ TESTSUITE_AT += rpmio.at
|
|
|
629b27 |
TESTSUITE_AT += rpmio.at
|
|
|
629b27 |
TESTSUITE_AT += rpmorder.at
|
|
|
629b27 |
TESTSUITE_AT += rpmvfylevel.at
|
|
|
629b27 |
+TESTSUITE_AT += rpm2extents.at
|
|
|
629b27 |
EXTRA_DIST += $(TESTSUITE_AT)
|
|
|
629b27 |
|
|
|
629b27 |
## testsuite data
|
|
|
629b27 |
diff --git a/tests/rpm2extents.at b/tests/rpm2extents.at
|
|
|
629b27 |
new file mode 100644
|
|
|
629b27 |
index 000000000..f943b9af4
|
|
|
629b27 |
--- /dev/null
|
|
|
629b27 |
+++ b/tests/rpm2extents.at
|
|
|
629b27 |
@@ -0,0 +1,31 @@
|
|
|
629b27 |
+# rpm2extents.at: Some very basic checks
|
|
|
629b27 |
+#
|
|
|
629b27 |
+# Copyright (C) 2022 Manu Bretelle <chantr4@gmail.com>
|
|
|
629b27 |
+#
|
|
|
629b27 |
+# This program is free software; you can redistribute it and/or modify
|
|
|
629b27 |
+# it under the terms of the GNU General Public License as published by
|
|
|
629b27 |
+# the Free Software Foundation; either version 2 of the License, or
|
|
|
629b27 |
+# (at your option) any later version.
|
|
|
629b27 |
+#
|
|
|
629b27 |
+# This program is distributed in the hope that it will be useful,
|
|
|
629b27 |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
629b27 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
629b27 |
+# GNU General Public License for more details.
|
|
|
629b27 |
+#
|
|
|
629b27 |
+# You should have received a copy of the GNU General Public License
|
|
|
629b27 |
+# along with this program; if not, write to the Free Software
|
|
|
629b27 |
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
629b27 |
+
|
|
|
629b27 |
+AT_BANNER([rpm2extents tests])
|
|
|
629b27 |
+
|
|
|
629b27 |
+# ------------------------------
|
|
|
629b27 |
+
|
|
|
629b27 |
+# check that transcoder write magic at the end
|
|
|
629b27 |
+AT_SETUP([rpm2extents magic])
|
|
|
629b27 |
+AT_KEYWORDS([rpm2extents])
|
|
|
629b27 |
+AT_CHECK([runroot_other cat /data/RPMS/hello-2.0-1.x86_64.rpm | runroot_other rpm2extents SHA256 | tail -c8],
|
|
|
629b27 |
+[0],
|
|
|
629b27 |
+[KWTSH100],
|
|
|
629b27 |
+[ignore])
|
|
|
629b27 |
+AT_CLEANUP
|
|
|
629b27 |
+
|
|
|
629b27 |
diff --git a/tests/rpmtests.at b/tests/rpmtests.at
|
|
|
629b27 |
index a1adab8e0..205fed6a3 100644
|
|
|
629b27 |
--- a/tests/rpmtests.at
|
|
|
629b27 |
+++ b/tests/rpmtests.at
|
|
|
629b27 |
@@ -21,3 +21,4 @@ m4_include([rpmreplace.at])
|
|
|
629b27 |
m4_include([rpmmacro.at])
|
|
|
629b27 |
m4_include([rpmpython.at])
|
|
|
629b27 |
m4_include([rpmdepmatch.at])
|
|
|
629b27 |
+m4_include([rpm2extents.at])
|
|
|
629b27 |
--
|
|
|
629b27 |
2.35.1
|
|
|
629b27 |
|