From fd4060dcfbe4127fb0d19f1878d0d8b9f34c7b9a Mon Sep 17 00:00:00 2001 From: chantra Date: Fri, 28 Jan 2022 08:33:16 -0800 Subject: [PATCH 05/30] [tests][rpm2extents] Add basic tests for rpm2extents --- tests/Makefile.am | 1 + tests/rpm2extents.at | 31 +++++++++++++++++++++++++++++++ tests/rpmtests.at | 1 + 3 files changed, 33 insertions(+) create mode 100644 tests/rpm2extents.at diff --git a/tests/Makefile.am b/tests/Makefile.am index f78e17c3e..fc8a24a5e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -36,6 +36,7 @@ TESTSUITE_AT += rpmio.at TESTSUITE_AT += rpmio.at TESTSUITE_AT += rpmorder.at TESTSUITE_AT += rpmvfylevel.at +TESTSUITE_AT += rpm2extents.at EXTRA_DIST += $(TESTSUITE_AT) ## testsuite data diff --git a/tests/rpm2extents.at b/tests/rpm2extents.at new file mode 100644 index 000000000..f943b9af4 --- /dev/null +++ b/tests/rpm2extents.at @@ -0,0 +1,31 @@ +# rpm2extents.at: Some very basic checks +# +# Copyright (C) 2022 Manu Bretelle +# +# 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +AT_BANNER([rpm2extents tests]) + +# ------------------------------ + +# check that transcoder write magic at the end +AT_SETUP([rpm2extents magic]) +AT_KEYWORDS([rpm2extents]) +AT_CHECK([runroot_other cat /data/RPMS/hello-2.0-1.x86_64.rpm | runroot_other rpm2extents SHA256 | tail -c8], +[0], +[KWTSH100], +[ignore]) +AT_CLEANUP + diff --git a/tests/rpmtests.at b/tests/rpmtests.at index a1adab8e0..205fed6a3 100644 --- a/tests/rpmtests.at +++ b/tests/rpmtests.at @@ -22,3 +22,4 @@ m4_include([rpmreplace.at]) m4_include([rpmconfig.at]) m4_include([rpmconfig2.at]) m4_include([rpmconfig3.at]) +m4_include([rpm2extents.at]) -- 2.35.1