# 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 at sources dot redhat dot 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