include $(top_srcdir)/buildutil/glib-tap.mk AM_TESTS_ENVIRONMENT = UNINSTALLEDTESTS=1 builddir=$(abs_builddir) CLEANFILES += \ tests/compose/yum/empty \ tests/compose/yum/repodata/repomd.xml \ tests/compose/test-repo.repo \ tests/compose/yum/repodata/*.bz2 \ tests/compose/yum/repodata/*.gz \ $(NULL) # Needed by the compose test tests/compose/yum/empty: tests/compose/yum/empty.c $(CC) -nostdlib $< -o $@ tests/compose/yum/repodata/repomd.xml: tests/compose/yum/empty tests/compose/yum/empty.spec (cd tests/compose/yum && \ rpmbuild \ --define "_sourcedir $(abs_top_srcdir)/tests/compose/yum" \ --define "_specdir $(abs_top_srcdir)/tests/compose/yum" \ --define "_builddir $(abs_top_srcdir)/tests/compose/yum" \ --define "_srcrpmdir $(abs_top_srcdir)/tests/compose/yum" \ --define "_rpmdir $(abs_top_srcdir)/tests/compose/yum" \ --define "_buildrootdir $(abs_top_srcdir)/tests/compose/yum/.build" \ -ba empty.spec && \ rm *.src.rpm && \ createrepo_c --no-database $(abs_top_srcdir)/tests/compose/yum/) tests/compose/test-repo.repo: tests/compose/test-repo.repo.in tests/compose/yum/repodata/repomd.xml cat $< | sed -e "s|%WHERE%|$(abs_top_srcdir)|" > $@ CLEANFILES += tests/compose/test-repo-local.repo \ tests/compose/yum/empty-1.0-1.src.rpm \ $(NULL) tests_jsonutil_CPPFLAGS = -I $(srcdir)/src/libpriv tests_jsonutil_CFLAGS = $(PKGDEP_RPMOSTREE_CFLAGS) tests_jsonutil_LDADD = $(PKGDEP_RPMOSTREE_LIBS) librpmostreepriv.la tests/test-compose.sh: tests/compose/test-repo.repo tests/test-ucontainer.sh: tests/compose/test-repo.repo uninstalled_test_programs = \ tests/jsonutil \ $(NULL) uninstalled_test_scripts = \ tests/test-basic.sh \ tests/test-compose.sh \ tests/test-ucontainer.sh \ $(NULL) uninstalled_test_extra_programs = dbus-run-session dbus_run_session_SOURCES = tests/dbus-run-session.c check-local: @echo " *** NOTE ***" @echo " *** NOTE ***" @echo " \"make check\" only runs a subset of rpm-ostree's tests." @echo " Use \"make vmcheck\" to run remaining tests in a VM." @echo " *** NOTE ***" @echo " *** NOTE ***" testenv: @echo "===== ENTERING TESTENV =====" test_tmpdir=$$(mktemp -d test.XXXXXX) && \ cd $$test_tmpdir && \ TESTENV=1 sh ../tests/setup-session.sh bash && \ cd .. && \ rm -rf $$test_tmpdir @echo "===== LEAVING TESTENV ====="