use a cell that actually exists
[arla.git] / Makefile.am.common
blobc93cc11b99ad232a797133632fb7500eee8f893e
1 # $Id$
3 include $(top_srcdir)/cf/Makefile.am.common
5 CHECK_LOCAL = $(PROGRAMS)
7 check-local::
8         @foo='$(CHECK_LOCAL)'; \
9           if test "$$foo"; then \
10           failed=0; all=0; \
11           for i in $$foo; do \
12             all=`expr $$all + 1`; \
13             if ./$$i --version > /dev/null 2>&1; then \
14               echo "PASS: $$i"; \
15             else \
16               echo "FAIL: $$i"; \
17               failed=`expr $$failed + 1`; \
18             fi; \
19           done; \
20           if test "$$failed" -eq 0; then \
21             banner="All $$all tests passed"; \
22           else \
23             banner="$$failed of $$all tests failed"; \
24           fi; \
25           dashes=`echo "$$banner" | sed s/./=/g`; \
26           echo "$$dashes"; \
27           echo "$$banner"; \
28           echo "$$dashes"; \
29           test "$$failed" -eq 0; \
30         fi