Testsuite
Ronald Landheer-Cieslak
ronald@landheer.com
Fri Mar 7 15:51:00 GMT 2003
Hello all,
As I suggested in http://cygwin.com/ml/cygwin/2003-03/msg00111.html that
it would be a good idea to run the testsuite against snapshots, and as I
said in http://cygwin.com/ml/cygwin/2003-03/msg00195.html that I would do
it anyway, I have made a Makefile (attached) that downloads the sources of
a given Cygwin version, gets the Cygwin DLL from where it is installed (as
suggested by cgf in http://cygwin.com/ml/cygwin/2003-03/msg00118.html) and
runs the testsuite from the source distri against the DLL.
Usage of the makefile:
$ make -f testsuite.mak
will download, unpack, configure, etc. everything, but not run the test
suite
$ make -f testsuite.mak run
will run the testsuite
This also allows to make everything you need, put the snapshot in place as
new-cygwin1.dll (if you don't want it to replace your installed
cygwin1.dll) and *then* run the testsuite on it.
The results with cygwin-1.3.20-1 and with the latest snapshot are
attached.
# of expected passes 240
# of unexpected failures 1
# of unexpected successes 3
# of expected failures 18
HTH
rlc
-------------- next part --------------
# This makefile is intended to retrieve, build and run the Cygwin
# testsuite against the currently installed Cygwin kernel
# It is based on my suggestion in
# http://cygwin.com/ml/cygwin/2003-03/msg00111.html
# and cgf's suggestion on how to build the testsuite and run it against
# the installed Cygwin in
# http://cygwin.com/ml/cygwin/2003-03/msg00118.html
# The Cygwin CVS reporisoty - anonymous access
CVSROOT=":pserver:anoncvs@sources.redhat.com:/cvs/src"
CYGWIN_SRC_VERSION="1.3.20-1"
CYGWIN_SRC_TAR="release/cygwin/cygwin-$(CYGWIN_SRC_VERSION)-src.tar.bz2"
MIRROR_FTP="ftp://ftp.mirror.ac.uk/sites/sources.redhat.com/pub/cygwin"
WGET="`which wget`"
ROOT_DIR="`pwd`"
all : testsuite-src.stamp testsuite-build.stamp testsuite-dll.stamp
testsuite-src.stamp : testsuite.mak
if [ ! -e cygwin-$(CYGWIN_SRC_VERSION)-src.tar.bz2 ]; then $(WGET) $(MIRROR_FTP)/$(CYGWIN_SRC_TAR); fi
tar xjvf cygwin-$(CYGWIN_SRC_VERSION)-src.tar.bz2
chmod a+x $(ROOT_DIR)/cygwin-$(CYGWIN_SRC_VERSION)/winsup/testsuite/configure
touch testsuite-src.stamp
testsuite-build.stamp : testsuite-src.stamp
if [ -d build ]; then rm -fr build; fi
mkdir build
cd build && $(ROOT_DIR)/../cygwin-$(CYGWIN_SRC_VERSION)/winsup/testsuite/configure
cd build && make site.exp
touch testsuite-build.stamp
testsuite-dll.stamp : testsuite-build.stamp
if [ ! -d cygwin ]; then mkdir cygwin; fi
touch cygwin/Makefile
cp /bin/cygwin1.dll cygwin/new-cygwin1.dll
cp -p /lib/libcygwin.a cygwin/new-libcygwin.a
cp -p /lib/libcygwin.a cygwin/libcygwin.a
cp -p /lib/binmode.o cygwin/binmode.o
touch testsuite-dll.stamp
run : all
cd build && make check CFLAGS="-I/usr/include -I/usr/include/w32API"
clean :
rm -fr src build
-------------- next part --------------
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/RLandheer/tt/cygwin-1.3.20-1/winsup/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /home/RLandheer/tt/cygwin-1.3.20-1/winsup/testsuite/winsup.api/winsup.exp ...
XPASS: ltp/fsync01.c
NOTE: error deleting ltp-kill02.exe: error deleting "ltp-kill02.exe": permission denied
NOTE: error deleting ltp-kill09.exe: error deleting "ltp-kill09.exe": permission denied
XPASS: ltp/setregid01.c
XPASS: ltp/setreuid01.c
FAIL: ltp/symlink01.c (execute)
=== winsup Summary ===
# of expected passes 240
# of unexpected failures 1
# of unexpected successes 3
# of expected failures 18
Binary file /home/RLandheer/tt/build/../cygwin/new-cygwin1.dll matches
CYGWIN=tty
-------------- next part --------------
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/RLandheer/tt/cygwin-1.3.20-1/winsup/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /home/RLandheer/tt/cygwin-1.3.20-1/winsup/testsuite/winsup.api/winsup.exp ...
XPASS: ltp/fsync01.c
NOTE: error deleting ltp-kill02.exe: error deleting "ltp-kill02.exe": permission denied
NOTE: error deleting ltp-kill09.exe: error deleting "ltp-kill09.exe": permission denied
XPASS: ltp/setregid01.c
XPASS: ltp/setreuid01.c
FAIL: ltp/symlink01.c (execute)
=== winsup Summary ===
# of expected passes 240
# of unexpected failures 1
# of unexpected successes 3
# of expected failures 18
Binary file /home/RLandheer/tt/build/../cygwin/new-cygwin1.dll matches
CYGWIN=tty
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list