diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8f412d86c7..4d42b9db0d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,35 +25,39 @@ endif() set(HAVE_UNSHARE ${HAVE_UNSHARE}) set(TESTSUITE_AT - rpmtests.at + rpmpgp.at rpmgeneral.at + rpmvercmp.at + rpmmacro.at + rpmdevel.at + rpmpython.at + rpmdepmatch.at rpmquery.at + rpmspec.at + rpmvfylevel.at + rpmsigdig.at + rpmio.at rpmverify.at rpmdb.at - rpmbuild.at - rpmbuildid.at rpmi.at rpme.at - rpmvercmp.at + rpmorder.at + rpmbuild.at + rpmbuildid.at + rpmscript.at rpmdeps.at rpmconflict.at + rpmreplace.at rpmconfig.at rpmconfig2.at rpmconfig3.at - rpmreplace.at - rpmmacro.at - rpmpython.at - rpmdepmatch.at - rpmscript.at - rpmsigdig.at - rpmspec.at - rpmio.at - rpmorder.at - rpmvfylevel.at - rpmpgp.at - rpmdevel.at ) +FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/rpmtests.at) +foreach(at ${TESTSUITE_AT}) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/rpmtests.at "m4_include([${at}])\n") +endforeach() + set(TESTPROGS rpmpgpcheck rpmpgppubkeyfingerprint) foreach(prg ${TESTPROGS}) add_executable(${prg} EXCLUDE_FROM_ALL ${prg}.c) @@ -110,7 +114,7 @@ if (MKTREE_NATIVE) add_custom_command(OUTPUT rpmtests COMMAND ${AUTOTEST} -I ${CMAKE_CURRENT_SOURCE_DIR} -o rpmtests rpmtests.at - DEPENDS ${TESTSUITE_AT} + DEPENDS ${TESTSUITE_AT} rpmtests.at DEPENDS local.at ) diff --git a/tests/rpmtests.at b/tests/rpmtests.at deleted file mode 100644 index d675452e44..0000000000 --- a/tests/rpmtests.at +++ /dev/null @@ -1,26 +0,0 @@ -m4_include([rpmpgp.at]) -m4_include([rpmgeneral.at]) -m4_include([rpmvercmp.at]) -m4_include([rpmmacro.at]) -m4_include([rpmdevel.at]) -m4_include([rpmpython.at]) -m4_include([rpmdepmatch.at]) -m4_include([rpmquery.at]) -m4_include([rpmspec.at]) -m4_include([rpmvfylevel.at]) -m4_include([rpmsigdig.at]) -m4_include([rpmio.at]) -m4_include([rpmverify.at]) -m4_include([rpmdb.at]) -m4_include([rpmi.at]) -m4_include([rpme.at]) -m4_include([rpmorder.at]) -m4_include([rpmbuild.at]) -m4_include([rpmbuildid.at]) -m4_include([rpmscript.at]) -m4_include([rpmdeps.at]) -m4_include([rpmconflict.at]) -m4_include([rpmreplace.at]) -m4_include([rpmconfig.at]) -m4_include([rpmconfig2.at]) -m4_include([rpmconfig3.at])