1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
TESTDIRS = cdc admin delta get prs prt unget large sccsdiff binary rmdel \
bsd-sccs year-2000 initial what val
TESTFILE_SUFFIXES = .sh
MKDIR = mkdir
links: $(TESTDIRS)
../testutils/lndir $(srcdir)
common:
ln -s $(srcdir)/common .
test-initial: links
@echo "Valgrind is: $(VALGRIND)"
$(SHELL) -ec 'cd initial && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-admin: links
$(SHELL) -ec 'cd admin && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-delta: links
$(SHELL) -ec 'cd delta && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-get: links
$(SHELL) -ec 'cd get && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) ./$$i || exit 1; \
done'
test-prs: links
$(SHELL) -ec 'cd prs && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-prt: links
$(SHELL) -ec 'cd prt && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-unget: links
$(SHELL) -ec 'cd unget && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-sact: links
$(SHELL) -ec 'cd sact && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-large: links
$(SHELL) -ec 'cd large && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-sccsdiff: links
$(SHELL) -ec 'cd sccsdiff && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-cdc: links
$(SHELL) -ec 'cd cdc && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-binary: links
$(SHELL) -ec 'cd binary && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-rmdel: links
$(SHELL) -ec 'cd rmdel && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-what: links
$(SHELL) -ec 'cd what && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-val: links
$(SHELL) -ec 'cd val && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-year-2000: links
$(SHELL) -ec 'cd year-2000 && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
test-bsd-sccs: links
$(SHELL) -ec 'cd bsd-sccs && for i in *.sh ; \
do \
echo Running test `pwd`/$$i; \
$(SHELL) $$i || exit 1; \
done'
# Always do test-initial FIRST.
all-tests: test-initial \
test-rmdel \
test-admin test-delta test-get test-prs test-prt test-unget \
test-cdc test-sact test-val \
test-large test-sccsdiff test-binary test-bsd-sccs test-what \
test-year-2000
echo Tests passed.
check: all-tests
# When a distribution is being made and all the files that automake
# knows about have been copied into $(distdir), dist-hook is called.
# This old code copied the CVS directories too, which is awkward
# for anybody wanting to import the distribution into a local CVS
# repository.
#
# dist-hook:
# ( cd $(srcdir) && find common $(TESTDIRS) -type l -print | \
# xargs $(RM) )
# ( cd $(srcdir) && tar cf - common $(TESTDIRS) ) | \
# ( cd $(distdir) && tar xf - )
#
dist-hook:
( cd $(srcdir) && find common $(TESTDIRS) -type l -print | \
xargs $(RM) )
( cd $(srcdir) && tar cf - \
$$( find . \( -type d -name CVS -prune \) -o \
-type f -print ) ) | \
( cd $(distdir) && tar xfv - ) ; true
$(srcdir)/../auxfiles/check-testfiles.sh \
"$$(cd $(distdir) && pwd)" \
"$$(cd $(srcdir) && pwd)" \
$(TESTFILE_SUFFIXES)
|