From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6784 invoked by alias); 31 Jul 2011 22:38:06 -0000 Received: (qmail 6772 invoked by uid 22791); 31 Jul 2011 22:38:06 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from fmmailgate03.web.de (HELO fmmailgate03.web.de) (217.72.192.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 31 Jul 2011 22:37:52 +0000 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate03.web.de (Postfix) with ESMTP id 60D5D19643685 for ; Mon, 1 Aug 2011 00:37:27 +0200 (CEST) Received: from [91.54.17.172] (helo=[192.168.2.22]) by smtp02.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1QnedT-0001vk-00 for pthreads-win32@sourceware.org; Mon, 01 Aug 2011 00:37:27 +0200 Subject: [PATCH] Run the testssuite also on unix From: Detlef Riekenberg To: pthreads-win32@sourceware.org Content-Type: multipart/mixed; boundary="=-h3ycJRUwj7pWPIgPyunX" Date: Sun, 31 Jul 2011 22:38:00 -0000 Message-ID: <1312151846.5275.16.camel@amd64> Mime-Version: 1.0 X-Sender: wine.dev@web.de X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2011/txt/msg00025.txt.bz2 --=-h3ycJRUwj7pWPIgPyunX Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 259 Hi. While building pthreads-win32 on my system (linux), i missed the option to run the tests with wine. Patches for tests/GNUmakefile and tests/Makefile are attached. Example useage: make RUN=wine CROSS=i386-mingw32msvc- clean GC -- By by ... Detlef --=-h3ycJRUwj7pWPIgPyunX Content-Disposition: attachment; filename="_diff_GNUmakefile.txt" Content-Type: text/plain; name="_diff_GNUmakefile.txt"; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 741 --- pthreads.org/tests/GNUmakefile 2011-07-03 05:54:34.000000000 +0200 +++ pthreads/tests/GNUmakefile 2011-07-30 00:59:18.264551042 +0200 @@ -52,6 +52,10 @@ CXX = $(CROSS)g++ RANLIB = $(CROSS)ranlib +# For cross testing use e.g. +# # make RUN=wine CROSS=i386-mingw32msvc- clean GC +RUN = + # # Mingw32 # @@ -380,20 +384,20 @@ sizes.pass: sizes.exe @ $(ECHO) Running $* - ./$< > SIZES.$(TEST) + @ $(RUN) ./$< > SIZES.$(TEST) @ $(CAT) SIZES.$(TEST) @ $(ECHO) Passed @ $(TOUCH) $@ %.pass: %.exe @ $(ECHO) Running $* - ./$* + @ $(RUN) ./$* @ $(ECHO) Passed @ $(TOUCH) $@ %.bench: $(LIB) $(DLL) $(HDR) $(QAPC) $(XXLIBS) %.exe @ $(ECHO) Running $* - ./$* + @ $(RUN) ./$* @ $(ECHO) Done @ $(TOUCH) $@ --=-h3ycJRUwj7pWPIgPyunX Content-Disposition: attachment; filename="_diff_Makefile.txt" Content-Type: text/plain; name="_diff_Makefile.txt"; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 1092 --- pthreads.org/tests/Makefile 2011-07-03 16:15:59.000000000 +0200 +++ pthreads/tests/Makefile 2011-07-30 01:03:55.214548402 +0200 @@ -39,6 +39,9 @@ MKDIR = mkdir TOUCH = echo Passed > ECHO = echo +# For cross testing use e.g. +# # make RUN=wine CROSS=i386-mingw32msvc- clean GC +RUN = # The next path is relative to $BUILD_DIR QAPC = # ..\QueueUserAPCEx\User\quserex.dll @@ -210,26 +213,26 @@ sizes.pass: sizes.exe @ $(ECHO) ... Running $(TEST)$(DLL_VER) test: $*.exe - @ .\$*.exe > SIZES.$(TEST) + @ $(RUN) .\$*.exe > SIZES.$(TEST) @ $(CAT) SIZES.$(TEST) @ $(ECHO) ...... Passed @ $(TOUCH) $*.pass $(REGULAR_PASSES): $*.exe @ $(ECHO) ... Running $(TEST) test: $*.exe - @ .\$*.exe + @ $(RUN) .\$*.exe @ $(ECHO) ...... Passed @ $(TOUCH) $*.pass $(BENCHRESULTS): $*.exe @ $(ECHO) ... Running $(TEST) benchtest: $*.exe - @ .\$*.exe + @ $(RUN) .\$*.exe @ $(ECHO) ...... Done @ $(TOUCH) $*.bench $(STRESSRESULTS): $*.exe @ $(ECHO) ... Running $(TEST) stresstest: $*.exe - @ .\$*.exe + @ $(RUN) .\$*.exe @ $(ECHO) ...... Done @ $(TOUCH) $*.pass --=-h3ycJRUwj7pWPIgPyunX--