.PHONY: test
-test: run-unit-tests run-px-tests
+test: @top_srcdir@/src/wget run-unit-tests run-px-tests
+
+@top_srcdir@/src/wget:
+ cd @top_srcdir@ && $(MAKE)
run-unit-tests: unit-tests$(exeext)
./unit-tests$(exeext)
./Test--spider-fail.px && echo && echo
./Test--spider.px && echo && echo
./Test--spider-r.px && echo && echo
+ ./Test-auth-basic.px && echo && echo
WgetTest.pm: WgetTest.pm.in @top_srcdir@/config.status
cd @top_srcdir@ && ./config.status