Matt McCutchen's Web Site
/
bigint
/
bigint.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work on the testsuite.
[bigint/bigint.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
68e7a00
..
450681e
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-34,16
+34,11
@@
testsuite: testsuite.o $(library-objects)
g++ $^ -o $@
# Extract the expected output from the testsuite source.
testsuite.expected: testsuite.cc
g++ $^ -o $@
# Extract the expected output from the testsuite source.
testsuite.expected: testsuite.cc
- sed -nre 's,^.*//
,
,p' $< >$@
+ sed -nre 's,^.*//
([^ ]),\1
,p' $< >$@
# Run the testsuite.
.PHONY: test
test: testsuite testsuite.expected
# Run the testsuite.
.PHONY: test
test: testsuite testsuite.expected
- ./testsuite >testsuite.out
- @if diff -u testsuite.expected testsuite.out; then\
- echo 'All tests passed.';\
- else\
- echo >&2 'At least one test failed!'; exit 1;\
- fi
+ ./run-testsuite
# The rules below build a program that uses the library. They are preset to
# build ``sample'' from ``sample.cc''. You can change the name(s) of the
# The rules below build a program that uses the library. They are preset to
# build ``sample'' from ``sample.cc''. You can change the name(s) of the