When we include recipes in our recipe we must be shure in some cases
that the recipe are generated out of a .in file.
All files in the include dir will be generated before every test so we
can be shure that these files are present.
This is useful for recipes like the make-install recipe in this test,
which needs to be generated and will be included in nearly every test.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL = \
https://people.ipfire.org/~jschlag/nitsi-ipfire/virtual-environment/basic/
+NITSI_INCLUDE_RECIPES = \
+ test/nitsi/include/make-install
+
+EXTRA_DIST += \
+ test/nitsi/include/make-install.in
+
+CLEANFILES += \
+ test/nitsi/include/make-install
+
NITSI_TESTS = \
test/nitsi/test/hello-world \
test/nitsi/test/make-check
NITSI_ENVIRONMENT =
.PHONY: $(NITSI_TESTS)
-$(NITSI_TESTS): % : %/recipe %/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES)
+$(NITSI_TESTS): % : %/recipe %/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES) $(NITSI_INCLUDE_RECIPES)
$(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error run-test -d $@
.PHONY: nitsi
--- /dev/null
+all: tar xvfa @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz && cd @PACKAGE_NAME@-@PACKAGE_VERSION@
+all: ./configure --prefix=/usr && make -j2
+all: make
+all: make install