develooper Front page | perl.perl5.porters | Postings from July 2003

[PATCH] "[nd]make test" on Win32

Thread Next
From:
Abe Timmerman
Date:
July 20, 2003 16:45
Subject:
[PATCH] "[nd]make test" on Win32
Message ID:
200307210148.07853.abe@ztreet.demon.nl
Whilst preparing for a new Test::Smoke release I found that "[nd]make _?test" 
on MSWin32 uses harness, while on unixy systems it uses TEST.

Is there any good reason for that or can we synchronize the two and make Win32 
also use TEST?

(only makefile.mk for dmake tested, I don't have MSVC)

--- win32/Makefile.orig	2003-07-20 18:28:50.000000000 +0200
+++ win32/Makefile	2003-07-20 18:41:06.000000000 +0200
@@ -1119,11 +1119,16 @@
 	$(XCOPY) $(PERLDLL) ..\t\$(NULL)
 	$(XCOPY) $(GLOBEXE) ..\t\$(NULL)
 
-test : test-prep
+test_harness : test-prep
 	cd ..\t
 	$(PERLEXE) -I..\lib harness
 	cd ..\win32
 
+test : test-prep
+	cd ..\t
+	$(PERLEXE) TEST
+	cd ..\win32
+
 test-notty : test-prep
 	set PERL_SKIP_TTY_TEST=1
 	cd ..\t
@@ -1148,7 +1153,7 @@
        $(XCOPY) $(PERLDLL) ..\t\$(NULL)
        $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
        cd ..\t
-       $(PERLEXE) -I..\lib harness
+       $(PERLEXE) TEST
        cd ..\win32
 
 clean : Extensions_clean

--- win32/makefile.mk.orig	2003-05-13 15:54:07.000000000 +0200
+++ win32/makefile.mk	2003-07-20 18:39:44.000000000 +0200
@@ -1242,9 +1242,12 @@
 	$(XCOPY) $(GLOBEXE) ..\t\$(NULL)
 .ENDIF
 
-test : $(RIGHTMAKE) test-prep
+test_harness : $(RIGHTMAKE) test-prep
 	cd ..\t && $(PERLEXE) -I..\lib harness
 
+test : $(RIGHTMAKE) test-prep
+	cd ..\t && $(PERLEXE) TEST
+
 test-notty : test-prep
 	set PERL_SKIP_TTY_TEST=1 && \
 	    cd ..\t && $(PERLEXE) -I.\lib harness
@@ -1266,7 +1269,7 @@
 .ELSE
 	$(XCOPY) $(GLOBEXE) ..\t\$(NULL)
 .ENDIF
-	cd ..\t && $(PERLEXE) -I..\lib harness
+	cd ..\t && $(PERLEXE) TEST
 
 clean : Extensions_clean
 	-@erase miniperlmain$(o)

Good luck,

Abe
-- 
Schwern> Anything else you'd like?  Side order of fries?  Clean your stables?
Schwern> Get you an apple?  Part the Red Sea?

I guess I otherwise would sense some sarcasm in your voice but
unfortunately my sarcasm-o-meter burned out years ago from prolonged
exposure to myself.
                                   -- Jarkko Hietaniemi on p5p @ 2002-02-03


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About