2014-12-18 02:11:47 +03:00
include $(top_srcdir)/buildutil/glib-tap.mk
2014-07-16 17:02:45 +04:00
2015-04-22 12:10:53 +03:00
CLEANFILES += \
2015-09-01 21:46:32 +03:00
tests/setup-session.sh \
2015-04-22 12:10:53 +03:00
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)
2015-03-23 14:23:29 +03:00
# 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 $(shell pwd)/tests/compose/yum" --define "_specdir $(shell pwd)/tests/compose/yum" --define "_builddir $(shell pwd)/tests/compose/yum" \
--define "_srcrpmdir $(shell pwd)/tests/compose/yum" --define "_rpmdir $(shell pwd)/tests/compose/yum" --define "_buildrootdir $(shell pwd)/tests/compose/yum/.build" \
-ba empty.spec && createrepo --database $(shell pwd)/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%|$(installed_testdir)|" > $@
2015-04-07 03:18:50 +03:00
tests_jsonutil_CPPFLAGS = -I $(srcdir)/src/libpriv
2014-12-18 04:26:31 +03:00
tests_jsonutil_CFLAGS = $(PKGDEP_RPMOSTREE_CFLAGS)
2015-04-17 21:03:24 +03:00
tests_jsonutil_LDADD = $(PKGDEP_RPMOSTREE_LIBS) librpmostreepriv.la
2014-07-16 17:02:45 +04:00
2015-03-23 14:23:29 +03:00
tests/test-compose.sh: tests/compose/test-repo.repo
installed_test_data = tests/libtest.sh \
tests/compose/test-repo.repo \
tests/compose/test-repo.json \
2015-03-30 17:54:33 +03:00
tests/compose/test-repo-no-selinux-tag.json \
2015-03-23 14:23:29 +03:00
tests/compose/test-repo.repo.in \
$(NULL)
2015-09-01 21:46:32 +03:00
tests/setup-session.sh: tests/setup-session.sh.in
2015-09-08 18:06:25 +03:00
sed \
-e "s|[@]installed_testdir[@]|$(installed_testdir)|" \
-e "s|[@]LIBEXECDIR[@]|$(libexecdir)|" \
< $< > $@.tmp && mv $@.tmp $@
2015-09-01 21:46:32 +03:00
test_installed_extra_scripts = \
tests/setup-session.sh \
$(NULL)
2015-03-23 14:23:29 +03:00
nobase_installed_test_DATA += $(shell find tests/compose/yum/ -type f) \
$(NULL)
2014-07-16 17:02:45 +04:00
2015-03-28 15:38:33 +03:00
installed_test_scripts = \
2015-03-23 14:23:29 +03:00
tests/test-compose.sh \
2015-03-30 17:54:33 +03:00
tests/test-compose-no-selinux-tag.sh \
2014-12-18 02:11:47 +03:00
tests/test-basic.sh \
2014-07-16 17:02:45 +04:00
$(NULL)
2014-12-18 04:26:31 +03:00
test_programs = \
tests/jsonutil \
$(NULL)
2015-03-28 15:47:25 +03:00
2015-09-08 18:06:25 +03:00
installed_test_PROGRAMS += dbus-run-session
dbus_run_session_SOURCES = tests/dbus-run-session.c
2015-03-28 15:47:25 +03:00
check-local:
@echo " *** NOTE ***"
@echo " *** NOTE ***"
@echo " \"make check\" only runs a subset of rpm-ostree's tests."
@echo " The other tests use: use https://live.gnome.org/GnomeGoals/InstalledTests"
@echo " To run them, ostree must be configured with --enable-installed-tests and installed"
@echo " *** NOTE ***"
@echo " *** NOTE ***"