tests: port to hosts lacking fmt, make -C

* tests/Makefile.am (built_programs): Don't assume fmt works.
Don't rely on 'make -C', either.
This commit is contained in:
Paul Eggert 2013-01-06 08:30:39 -08:00
parent 118d732ab2
commit b2f1e4bc55

View File

@ -48,7 +48,7 @@ LOG_COMPILER= $(SHELL)
built_programs = \
echo 'spy:;@echo $$(PROGRAMS)' \
| MAKEFLAGS= $(MAKE) -s -C $(builddir)/../src -f Makefile -f - spy \
| fmt -1 | sed 's,$(EXEEXT)$$,,' | sort -u
| (cd ../src && MAKEFLAGS= $(MAKE) -s -f Makefile -f - spy) \
| tr ' ' '\n' | sed '/^$$/d; s,$(EXEEXT)$$,,' | sort -u
VERBOSE = yes