File: Makefile-insttest.am

package info (click to toggle)
gjs 1.58.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,140 kB
  • sloc: cpp: 24,189; sh: 4,931; ansic: 573; makefile: 206; xml: 75
file content (61 lines) | stat: -rw-r--r-- 1,892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
EXTRA_DIST += \
	installed-tests/debugger.test.in		\
	installed-tests/minijasmine.test.in		\
	installed-tests/script.test.in			\
	installed-tests/js/jsunit.gresources.xml	\
	$(NULL)

gjsinsttestdir = $(pkglibexecdir)/installed-tests
installedtestmetadir = $(datadir)/installed-tests/gjs
jstestsdir = $(gjsinsttestdir)/js
jsscripttestsdir = $(gjsinsttestdir)/scripts
debuggertestsdir = $(gjsinsttestdir)/debugger

gjsinsttest_PROGRAMS = 
gjsinsttest_DATA =
gjsinsttest_SCRIPTS =
installedtestmeta_DATA = 
jstests_DATA =
jsscripttests_DATA =
debuggertests_DATA =
pkglib_LTLIBRARIES =

if BUILDOPT_INSTALL_TESTS

gjsinsttest_PROGRAMS += minijasmine
gjsinsttest_SCRIPTS += installed-tests/debugger-test.sh
gjsinsttest_DATA += $(TEST_INTROSPECTION_TYPELIBS)
installedtestmeta_DATA += 			\
	$(jasmine_tests:.js=.test)		\
	$(simple_tests:%=%.test)		\
	$(debugger_tests:.debugger=.test)	\
	$(NULL)
jstests_DATA += $(jasmine_tests)
jsscripttests_DATA += $(simple_tests)
debuggertests_DATA += $(debugger_tests)
pkglib_LTLIBRARIES += libregress.la libwarnlib.la libgimarshallingtests.la

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

%.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 $@

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

CLEANFILES += $(installedtestmeta_DATA)

endif BUILDOPT_INSTALL_TESTS