* Makefile (SUBDIRS): Just list Test.
(mb-parser.cs): Depend on jay/skeleton.cs.
In Test:
* Makefile: New.
* test-mbas.make (thisdir): Remove.
(COMPILER): Use $(BASCOMPILE).
(run-test-local): Quote arguments.
* test-mbas.pl ($Runtime): Don't try to auto-detect.
* errors/Makefile, misc/Makefile, tests/Makefile, dlls/Makefile: Update.
svn path=/trunk/mcs/; revision=36539
+2004-11-25 Raja R Harinath <rharinath@novell.com>
+
+ * Makefile (SUBDIRS): Just list Test.
+ (mb-parser.cs): Depend on jay/skeleton.cs.
+
2004-11-25 Raja R Harinath <rharinath@novell.com>
Update to changes in jay/skeleton.cs.
thisdir = mbas
-SUBDIRS = Test/misc Test/tests Test/errors
+SUBDIRS = Test
include ../build/rules.make
PROGRAM = mbas.exe
include ../build/executable.make
-mb-parser.cs: mb-parser.jay
+mb-parser.cs: mb-parser.jay $(topdir)/jay/skeleton.cs
$(topdir)/jay/jay -ctv <$(topdir)/jay/skeleton.cs $< >$@
consolidate-test-results:
+2004-11-25 Raja R Harinath <rharinath@novell.com>
+
+ * Makefile: New.
+ * test-mbas.make (thisdir): Remove.
+ (COMPILER): Use $(BASCOMPILE).
+ (run-test-local): Quote arguments.
+ * test-mbas.pl ($Runtime): Don't try to auto-detect.
+ * errors/Makefile, misc/Makefile, tests/Makefile, dlls/Makefile: Update.
+
2004-11-22 Jambunathan K <kjambunathan@novell.com>
* EnumD.vb: New positive test case.
--- /dev/null
+thisdir = mbas/Test
+SUBDIRS = misc dlls tests errors
+
+DISTFILES = test-mbas.make test-mbas.pl
+
+include ../../build/rules.make
+
+all-local $(STD_TARGETS:=-local):
+ @:
+
+dist-local: dist-default
-thisdir = dlls
-SUBDIRS =
+thisdir = mbas/Test/dlls
+
+include ../../../build/rules.make
include ../test-mbas.make
-thisdir = dlls
-SUBDIRS =
+thisdir = mbas/Test/errors
+
+include ../../../build/rules.make
include ../test-mbas.make
-CLEAN_FILES = y.output WriteOK.exe x.exe
+thisdir = mbas/Test/misc
-run-test: WriteOK.exe
- mono --debug WriteOK.exe --sayho /about -say:this,that,those /say:what?
+include ../../../build/rules.make
+
+LOCAL_MBAS_FLAGS = --verbosegetoptions --stacktrace
+
+test-local: WriteOK.exe
+
+run-test-local: WriteOK.exe
+ $(RUNTIME) --debug WriteOK.exe --sayho /about -say:this,that,those /say:what?
+
+run-test-ondotnet-local: WriteOK.exe
+ ./WriteOK.exe --sayho /about -say:this,that,those /say:what?
WriteOK.exe: Makefile *.vb *.mbs
- mbas --verbosegetoptions --stacktrace --reference=Mono.GetOptions -r:System.Data,System.Messaging --main WriteOK WriteOK.vb WriteOK2.mbs AssemblyInfo.vb
+ $(BASCOMPILE) --reference=Mono.GetOptions -r:System.Data,System.Messaging --main WriteOK WriteOK.vb WriteOK2.mbs AssemblyInfo.vb
-verbose:
- mbas --verbosegetoptions --verbose --stacktrace /r:Mono.GetOptions /r:System.Data,System.Windows.Forms --main WriteOK WriteOK.vb WriteOK2.mbs AssemblyInfo.vb
+verbose:
+ $(MAKE) LOCAL_MBAS_FLAGS='--verbosegetoptions --verbose --stacktrace' WriteOK.exe
-test-aspx: aspx_temp.vb
- mbas --stacktrace --verbosegetoptions /target:library /r:"System.dll" /r:"System.Xml.dll" /r:"System.Data.dll" /r:"System.Web.dll" /r:"System.Web.Services.dll" /r:"System.Drawing.dll" -- aspx_temp.vb
+test-aspx: aspx_temp.dll
+
+aspx_temp.dll: aspx_temp.vb
+ $(BASCOMPILE) --stacktrace --verbosegetoptions /target:library /r:"System.dll" /r:"System.Xml.dll" /r:"System.Data.dll" /r:"System.Web.dll" /r:"System.Web.Services.dll" /r:"System.Drawing.dll" -- aspx_temp.vb
profile: *.vb *.mbs Makefile
- mono --profile ../../mbas.exe /libpath:../../../class/lib/default /out:x.exe /target:exe -r:System.Windows.Forms -r:System.Web /r:Mono.GetOptions /m:WriteOK *.vb *.mbs > profile
+ rm -f WriteOK.exe
+ $(MAKE) RUNTIME='$(RUNTIME) --profile' WriteOK.exe > profile
-clean:
- @rm -f WriteOK.exe aspx_temp.dll x.exe
+clean-local:
+ -rm -f WriteOK.exe aspx_temp.dll x.exe
-all test install run-test-ondotnet uninstall:
+all-local install-local uninstall-local:
@:
- @:
\ No newline at end of file
+
+DISTFILES = $(wildcard *.vb) $(wildcard *.mbs)
+
+dist-local: dist-default
-thisdir = tests
-SUBDIRS =
-
ifndef COMPILER
-COMPILER = mbas
+COMPILER = $(BASCOMPILE)
endif
ifndef PATTERN
COMPILER_FLAGS = /libpath:../../../class/lib/default /imports:System
LIBRARY_OPT = /target:library
-DISTFILES = README.tests $(wildcard *.vb)
-
-run-test:
- @ rm -f *.exe *.log *.results;
- @ ../test-mbas.pl --compiler=$(COMPILER) --compilerflags=$(COMPILER_FLAGS) --pattern=$(PATTERN) --runtime=mono
-
-run-test-ondotnet:
- @ rm -f *.exe *.log *.results;
- @ ../test-mbas.pl --compiler=$(COMPILER) --compilerflags=$(COMPILER_FLAGS) --pattern=$(PATTERN) --runtime=dotnet
-
-all test clean install uninstall:
- @:
+DISTFILES = $(wildcard README.tests) $(wildcard *.vb)
+run-test-local:
+ $(MAKE) clean-local
+ ../test-mbas.pl --compiler='$(COMPILER)' --compilerflags='$(COMPILER_FLAGS)' --pattern='$(PATTERN)' --runtime='$(TEST_RUNTIME)'
+run-test-ondotnet-local:
+ $(MAKE) clean-local
+ ../test-mbas.pl --compiler='$(COMPILER)' --compilerflags='$(COMPILER_FLAGS)' --pattern='$(PATTERN)' --runtime=
+clean-local:
+ rm -f *.exe *.log *.results
+all-local test-local install-local uninstall-local:
+ @:
+dist-local: dist-default
exit 1;
}
-
-if(!$Runtime) {
- if($Compiler =~ /mbas/) {
- $Runtime = "mono";
- }
- elsif($Compiler =~ /vbc/) {
- $Runtime = "";
- }
-}
-elsif($Runtime =~ /dotnet/) {
- $Runtime = "";
-}
-elsif($Runtime =~ /mono/) {
- $Runtime = "mono";
-}
-else {
- $Runtime = "mono";
-}
# Build the list of tests to run
open(TEST_RESULTS_FILE, ">$TestResultsFile");
if($Execute == 1) {
$VBExeFile = $VBFile;
$VBExeFile =~ s/\.vb$/\.exe/;
- $RunCmd = $Runtime . " " . $VBExeFile;
+ $RunCmd = "$Runtime ./$VBExeFile";
$RetVal = Command($RunCmd);
LogResults($RetVal, "EXECUTION");
}
-thisdir = dlls
-SUBDIRS =
+thisdir = mbas/Test/tests
+include ../../../build/rules.make
include ../test-mbas.make
-
-
-
-