1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Make run-unit-tests _always_ make libunittest.a.

This commit is contained in:
Micah Cowan 2009-09-01 10:58:32 -07:00
parent 4198c7239f
commit 306e622a61
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-09-01 Micah Cowan <micah@cowan.name>
* Makefile.am (../src/libunittest.a): Make it a phony target,
so we always make sure to get up-to-date unit-test runs.
2009-08-27 Micah Cowan <micah@cowan.name>
* WgetTest.pm.in (run): Shift the errcode right by 8 binary places.

View File

@ -42,6 +42,8 @@ test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests
../src/wget$(EXEEXT):
cd ../src && $(MAKE) $(AM_MAKEFLAGS)
# Make libunittest "PHONY" so we're always sure we're up-to-date.
.PHONY: ../src/libunittest.a
../src/libunittest.a:
cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a
@ -51,7 +53,7 @@ test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests
../md5/libmd5.a:
cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
run-unit-tests: unit-tests$(EXEEXT)
run-unit-tests: unit-tests$(EXEEXT) ../src/libunittest.a
./unit-tests$(EXEEXT)
run-px-tests: WgetTest.pm ../src/wget$(EXEEXT)
@ -117,9 +119,9 @@ EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
run-px certs
check_PROGRAMS = unit-tests
unit_tests_SOURCES =
#unit-tests: ../src/libunittest.a ../lib/libgnu.a
unit_tests_SOURCES =
unit-tests: ../src/libunittest.a
LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
@MD5_LDADD@
@MD5_LDADD@
CLEANFILES = *~ *.bak core core.[0-9]*