public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Detlef Riekenberg <wine.dev@web.de>
To: pthreads-win32@sourceware.org
Subject: [PATCH] Run the testssuite also on unix
Date: Sun, 31 Jul 2011 22:38:00 -0000	[thread overview]
Message-ID: <1312151846.5275.16.camel@amd64> (raw)

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]


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


[-- Attachment #2: _diff_GNUmakefile.txt --]
[-- Type: text/plain, Size: 741 bytes --]

--- 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) $@
 

[-- Attachment #3: _diff_Makefile.txt --]
[-- Type: text/plain, Size: 1092 bytes --]

--- 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
 

                 reply	other threads:[~2011-07-31 22:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1312151846.5275.16.camel@amd64 \
    --to=wine.dev@web.de \
    --cc=pthreads-win32@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).