[Rpm-maint] [PATCH 2/2] Skip tests that use lua (indirectly) when configured --without-lua.

Mark Wielaard mark at klomp.org
Mon Jun 3 21:28:51 UTC 2019


The rpmbuild.at autosetup test uses lua indirectly and the rpmscript.at
basic script failures 1 testcase uses lua directly. Skip both when
lua isn't available.

With this patch and configure --without-lua the test results will be:

383 tests behaved as expected.
113 tests were skipped.
---
 tests/rpmbuild.at  | 1 +
 tests/rpmscript.at | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at
index 8120cab..bcde532 100644
--- a/tests/rpmbuild.at
+++ b/tests/rpmbuild.at
@@ -38,6 +38,7 @@ AT_CLEANUP
 
 AT_SETUP([rpmbuild -ba autosetup])
 AT_KEYWORDS([build])
+AT_SKIP_IF([$LUA_DISABLED])
 AT_CHECK([
 rm -rf ${TOPDIR}
 AS_MKDIR_P(${TOPDIR}/SOURCES)
diff --git a/tests/rpmscript.at b/tests/rpmscript.at
index ac6c76d..aacc448 100644
--- a/tests/rpmscript.at
+++ b/tests/rpmscript.at
@@ -4,6 +4,7 @@ AT_BANNER([RPM scriptlets])
 
 AT_SETUP([basic script failures 1])
 AT_KEYWORDS([script])
+AT_SKIP_IF([$LUA_DISABLED])
 AT_CHECK([
 RPMDB_CLEAR
 RPMDB_INIT
-- 
1.8.3.1



More information about the Rpm-maint mailing list