From 930fdff7afb6723046414830b95eeedf79d4202e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Mon, 20 Aug 2007 16:07:02 +0200 Subject: [PATCH] Add rpmdb.at --- tests/rpmdb.at | 32 ++++++++++++++++++++++++++++++++ tests/rpmtests.at | 1 + 2 files changed, 33 insertions(+) create mode 100644 tests/rpmdb.at diff --git a/tests/rpmdb.at b/tests/rpmdb.at new file mode 100644 index 0000000..ea74eae --- /dev/null +++ b/tests/rpmdb.at @@ -0,0 +1,32 @@ +# rpmdb.at: test rpmdb access +# +# Copyright (C) 2007 Ralf Corsépius +# +# 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_SETUP([rpm --initdb]) +AT_CHECK([ +rpm --initdb -r "${abs_builddir}"/testing +status=$? +AS_IF([test $status -ne 0],[ + AS_IF([test `id -u` -ne 0], + [exit 77]) +]) +exit $status; +], +[0], +[ignore], +[ignore]) +AT_CLEANUP diff --git a/tests/rpmtests.at b/tests/rpmtests.at index c1a9f2d..eded72e 100644 --- a/tests/rpmtests.at +++ b/tests/rpmtests.at @@ -4,3 +4,4 @@ AT_TESTED(rpm rpmbuild rpmquery) m4_include([rpmgeneral.at]) m4_include([rpmquery.at]) +m4_include([rpmdb.at]) -- 2.7.4