Index: ossp-pkg/xds/Makefile RCS File: /v/ossp/cvs/ossp-pkg/xds/Attic/Makefile,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/xds/Attic/Makefile,v' 2>/dev/null --- Makefile 2001/07/03 11:15:39 1.5 +++ Makefile 2001/07/04 15:09:55 1.6 @@ -29,6 +29,9 @@ rm -f test.o test rm -f xds.3 +check: + (cd regression-tests && $(MAKE) check) + # Dependencies test.o: test.c xds.h Index: ossp-pkg/xds/regression-tests/.cvsignore RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.cvsignore,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.cvsignore,v' | diff -u /dev/null - -L'ossp-pkg/xds/regression-tests/.cvsignore' 2>/dev/null --- ossp-pkg/xds/regression-tests/.cvsignore +++ - 2024-05-19 06:35:59.851798959 +0200 @@ -0,0 +1 @@ +*.log Index: ossp-pkg/xds/regression-tests/.run-tests RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests,v' | diff -u /dev/null - -L'ossp-pkg/xds/regression-tests/.run-tests' 2>/dev/null --- ossp-pkg/xds/regression-tests/.run-tests +++ - 2024-05-19 06:35:59.854416823 +0200 @@ -0,0 +1,37 @@ +#! /bin/sh + +if [ $# -lt 1 ]; then + echo "Usage: $0 test1.exe [...]" + exit 1; +fi + +RESCOLUMN=30 +numTests=0 +numFails=0 + +for suite in $*; do + tmp="${suite%%.exe}: " + echo -n "$tmp" + currpos=$(($RESCOLUMN-${#tmp})) + while [ $currpos -gt 0 ]; do + echo -n " " + currpos=$(($currpos-1)) + done + numTests=$(($numTests+1)) + eval ./$suite >${suite%%.exe}.log 2>&1 + if [ $? -eq 0 ]; then + echo OK + else + numFails=$(($numFails+1)) + echo FAILED + fi +done + +echo +echo "Summary: $numFails of $numTests tests failed ($(($numFails*100/$numTests))%)." + +if [ $numFails -eq 0 ]; then + exit 0 +else + exit 1 +fi Index: ossp-pkg/xds/regression-tests/Makefile RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/Makefile,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/Makefile,v' | diff -u /dev/null - -L'ossp-pkg/xds/regression-tests/Makefile' 2>/dev/null --- ossp-pkg/xds/regression-tests/Makefile +++ - 2024-05-19 06:35:59.857050299 +0200 @@ -0,0 +1,30 @@ +# Build and run the regression tests. + +CC = gcc + +WARNFLAGS = -Wall -ansi -pedantic +OPTFLAGS = -O3 -pipe +CPPFLAGS = +CFLAGS = +LDFLAGS = + +TESTS = test1.exe + +.SUFFIXES: +.SUFFIXES: .c .exe + +.c.exe: + $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< + +.cpp.exe: + $(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $< + +all: $(TESTS) + +check: all + ./.run-tests *.exe + +clean:: + rm -f $(TESTS) *.log + +# Dependencies