-TESTS = ganeti.hooks_unittest.py ganeti.utils_unittest.py
-TESTS_ENVIRONMENT = PYTHONPATH=.:$(srcdir)
+TESTS = \
+ ganeti.config_unittest.py \
+ ganeti.hooks_unittest.py \
+ ganeti.utils_unittest.py \
+ ganeti.bdev_unittest.py \
+ ganeti.rapi.resources_unittest.py
-check_DATA = ganeti
-ganeti:
- rm -f ganeti
- ln -s $(top_srcdir)/lib ganeti
+TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir)
-EXTRA_DIST = $(TESTS) mocks.py
+check-am: do-pre-check
+
+do-pre-check:
+ $(MAKE) -C $(top_builddir) pre-check
+
+EXTRA_DIST = $(TESTS) mocks.py $(wildcard data/*.txt)
CLEANFILES = *.py[co]
-MAINTAINERCLEANFILES = ganeti