Makefile-insttest.am 1.85 KB
Newer Older
1
EXTRA_DIST += \
2
	installed-tests/debugger.test.in		\
3
	installed-tests/minijasmine.test.in		\
4 5
	installed-tests/script.test.in			\
	installed-tests/js/jsunit.gresources.xml	\
6
	$(NULL)
7

8
gjsinsttestdir = $(pkglibexecdir)/installed-tests
9 10 11
installedtestmetadir = $(datadir)/installed-tests/gjs
jstestsdir = $(gjsinsttestdir)/js
jsscripttestsdir = $(gjsinsttestdir)/scripts
Philip Chimento's avatar
Philip Chimento committed
12
debuggertestsdir = $(gjsinsttestdir)/debugger
13

14
gjsinsttest_PROGRAMS = 
15
gjsinsttest_DATA =
Philip Chimento's avatar
Philip Chimento committed
16
gjsinsttest_SCRIPTS =
17 18 19
installedtestmeta_DATA = 
jstests_DATA =
jsscripttests_DATA =
Philip Chimento's avatar
Philip Chimento committed
20
debuggertests_DATA =
21
pkglib_LTLIBRARIES =
22 23 24

if BUILDOPT_INSTALL_TESTS

25
gjsinsttest_PROGRAMS += minijasmine
Philip Chimento's avatar
Philip Chimento committed
26
gjsinsttest_SCRIPTS += installed-tests/debugger-test.sh
27
gjsinsttest_DATA += $(TEST_INTROSPECTION_TYPELIBS)
Philip Chimento's avatar
Philip Chimento committed
28 29 30 31
installedtestmeta_DATA += 			\
	$(jasmine_tests:.js=.test)		\
	$(simple_tests:%=%.test)		\
	$(debugger_tests:.debugger=.test)	\
32
	$(NULL)
33
jstests_DATA += $(jasmine_tests)
34
jsscripttests_DATA += $(simple_tests)
Philip Chimento's avatar
Philip Chimento committed
35
debuggertests_DATA += $(debugger_tests)
36
pkglib_LTLIBRARIES += libregress.la libwarnlib.la libgimarshallingtests.la
37

38
%.test: %.js installed-tests/minijasmine.test.in Makefile
39
	$(AM_V_GEN)$(MKDIR_P) $(@D) && \
40 41 42 43
	$(SED) -e s,@pkglibexecdir\@,$(pkglibexecdir),g \
		-e s,@name\@,$(notdir $<), \
		< $(srcdir)/installed-tests/minijasmine.test.in > $@.tmp && \
	mv $@.tmp $@
44

Philip Chimento's avatar
Philip Chimento committed
45 46 47 48 49 50 51
%.test: %.debugger installed-tests/debugger.test.in Makefile
	$(AM_V_GEN)$(MKDIR_P) $(@D) && \
	$(SED) -e s,@pkglibexecdir\@,$(pkglibexecdir),g \
		-e s,@name\@,$(notdir $<), \
		< $(srcdir)/installed-tests/debugger.test.in > $@.tmp && \
	mv $@.tmp $@

52
%.test: % installed-tests/script.test.in Makefile
53
	$(AM_V_GEN)$(MKDIR_P) $(@D) && \
54
	$(SED) -e s,@pkglibexecdir\@,$(pkglibexecdir), \
55 56 57
		-e s,@name\@,$(notdir $<), \
		< $(srcdir)/installed-tests/script.test.in > $@.tmp && \
	mv $@.tmp $@
58

59 60
CLEANFILES += $(installedtestmeta_DATA)

61
endif BUILDOPT_INSTALL_TESTS