mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Build test programs only when needed
Add test programs to 'check_PROGRAMS' instead of 'noinst_PROGRAMS'. Fixes bug 760457.
This commit is contained in:
parent
b9b4b6b513
commit
988a5a3b6b
11
Makefile.am
11
Makefile.am
@ -10,10 +10,10 @@ AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include
|
||||
|
||||
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) $(LZMA_CFLAGS)
|
||||
|
||||
noinst_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \
|
||||
testThreads testC14N testAutomata testRegexp \
|
||||
testReader testapi testModule runtest runsuite testchar \
|
||||
testdict runxmlconf testrecurse testlimits
|
||||
check_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \
|
||||
testThreads testC14N testAutomata testRegexp \
|
||||
testReader testapi testModule runtest runsuite testchar \
|
||||
testdict runxmlconf testrecurse testlimits
|
||||
|
||||
bin_PROGRAMS = xmllint xmlcatalog
|
||||
|
||||
@ -202,7 +202,8 @@ runxmlconf_LDADD= $(LDADDS)
|
||||
#testOOM_DEPENDENCIES = $(DEPS)
|
||||
#testOOM_LDADD= $(LDADDS)
|
||||
|
||||
runtests:
|
||||
runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \
|
||||
testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT)
|
||||
[ -d test ] || $(LN_S) $(srcdir)/test .
|
||||
[ -d result ] || $(LN_S) $(srcdir)/result .
|
||||
$(CHECKER) ./runtest$(EXEEXT) && \
|
||||
|
@ -13,7 +13,7 @@ if REBUILD_DOCS
|
||||
rebuild: examples.xml index.html
|
||||
.PHONY: rebuild
|
||||
|
||||
examples.xml: index.py $(noinst_PROGRAMS:=.c)
|
||||
examples.xml: index.py $(check_PROGRAMS:=.c)
|
||||
cd $(srcdir) && $(PYTHON) index.py
|
||||
$(MAKE) Makefile
|
||||
|
||||
@ -49,7 +49,7 @@ EXTRA_DIST = \
|
||||
xpath1.res \
|
||||
xpath2.res
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
check_PROGRAMS = \
|
||||
io1 \
|
||||
io2 \
|
||||
parse1 \
|
||||
@ -99,7 +99,7 @@ xpath2_SOURCES = xpath2.c
|
||||
valgrind:
|
||||
$(MAKE) CHECKER='valgrind' tests
|
||||
|
||||
tests: $(noinst_PROGRAMS)
|
||||
tests: $(check_PROGRAMS)
|
||||
@test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .
|
||||
@(echo '## examples regression tests')
|
||||
@(echo > .memdump)
|
||||
|
@ -235,7 +235,7 @@ if REBUILD_DOCS
|
||||
rebuild: examples.xml index.html
|
||||
.PHONY: rebuild
|
||||
|
||||
examples.xml: index.py $(noinst_PROGRAMS:=.c)
|
||||
examples.xml: index.py $(check_PROGRAMS:=.c)
|
||||
cd $(srcdir) && $(PYTHON) index.py
|
||||
$(MAKE) Makefile
|
||||
|
||||
@ -259,14 +259,14 @@ clean-local:
|
||||
for extra in extras:
|
||||
EXTRA_DIST = EXTRA_DIST + " \\\n\t" + extra
|
||||
Makefile = Makefile + "EXTRA_DIST =%s\n\n" % (EXTRA_DIST)
|
||||
noinst_PROGRAMS=""
|
||||
check_PROGRAMS=""
|
||||
for example in examples:
|
||||
noinst_PROGRAMS = noinst_PROGRAMS + " \\\n\t" + example
|
||||
Makefile = Makefile + "noinst_PROGRAMS =%s\n\n" % (noinst_PROGRAMS)
|
||||
check_PROGRAMS = check_PROGRAMS + " \\\n\t" + example
|
||||
Makefile = Makefile + "check_PROGRAMS =%s\n\n" % (check_PROGRAMS)
|
||||
for example in examples:
|
||||
Makefile = Makefile + "%s_SOURCES = %s.c\n\n" % (example, example)
|
||||
Makefile = Makefile + "valgrind: \n\t$(MAKE) CHECKER='valgrind' tests\n\n"
|
||||
Makefile = Makefile + "tests: $(noinst_PROGRAMS)\n"
|
||||
Makefile = Makefile + "tests: $(check_PROGRAMS)\n"
|
||||
Makefile = Makefile + "\t@test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .\n"
|
||||
Makefile = Makefile + "\t@(echo '## examples regression tests')\n"
|
||||
Makefile = Makefile + "\t@(echo > .memdump)\n"
|
||||
|
@ -1,4 +1,4 @@
|
||||
noinst_PROGRAMS = gjobread
|
||||
check_PROGRAMS = gjobread
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include
|
||||
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS)
|
||||
|
@ -62,9 +62,9 @@ $!
|
||||
$ bin_progs = "xmllint xmlcatalog"
|
||||
$!
|
||||
$!- list of test modules to compile and link. Compare this list to the
|
||||
$! definition of noinst_PROGRAMS in MAKEFILE.
|
||||
$! definition of check_PROGRAMS in MAKEFILE.
|
||||
$!
|
||||
$ noinst_PROGRAMS = "testSchemas testRelax testSAX testHTML testXPath testURI " -
|
||||
$ check_PROGRAMS = "testSchemas testRelax testSAX testHTML testXPath testURI " -
|
||||
+ "testThreads testC14N testAutomata testRegexp testReader"
|
||||
$!
|
||||
$!- set up build logicals -----------------------------------------------------\
|
||||
@ -196,7 +196,7 @@ $ write sys$output "Building main programs and test programs"
|
||||
$ write sys$output ""
|
||||
$!
|
||||
$ p_no = 0
|
||||
$ all_progs = bin_progs + " " + noinst_PROGRAMS
|
||||
$ all_progs = bin_progs + " " + check_PROGRAMS
|
||||
$ all_progs = f$edit(all_progs,"COMPRESS")
|
||||
$!
|
||||
$ prog_loop:
|
||||
|
Loading…
x
Reference in New Issue
Block a user