1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
thisdir = vbruntime/Test
SUBDIRS =
include ../../build/rules.make
DISTFILES = \
2008VB_test_CS.csproj \
2008VB_test_CS.dll.rsp \
2008VB_test_CS.dll.sources \
2008VB_test_CS.dll.sources.win \
2008VB_test_VB.dll.rsp \
2008VB_test_VB.dll.sources \
2008VB_test_VB.dll.sources.win \
2008VB_test_VB.vbproj \
ChangeLog
DISTFILES += $(wildcard *.vb) $(wildcard *.cs) $(wildcard */*.vb) $(wildcard */*.cs)
DISTFILES += $(wildcard bin/*config)
MONO_VB_PATH="../../class/lib/bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
ifeq ("$(FXVERSION)", "")
NUNIT_VERSION=2
else
NUNIT_VERSION=$(FXVERSION)
endif
ifeq ("$(NUNIT_VERSION)", "1")
CSCOMPILER=mcs
CSDEFINES=-define:NET_1_0,NET_1_1
else
CSCOMPILER=gmcs
CSDEFINES=-define:NET_1_0,NET_1_1,NET_2_0
endif
ifeq ($(PLATFORM), win32)
WINTEST=-cmd /C Make.cmd 1_1; cmd /C Make.cmd 2_0
else
WINTEST=-echo Linux environment.
endif
bin/nunit-console.exe:
wget --no-check-certificate -O bin/nunit-console.exe "http://github.com/mono/mono-basic/raw/70f26b5b6f3c16999cb3e0b5864df88752fe683a/vbruntime/Test/bin/nunit-console.exe"
bin/nunit.framework.dll:
wget --no-check-certificate -O bin/nunit.framework.dll "http://github.com/mono/mono-basic/raw/70f26b5b6f3c16999cb3e0b5864df88752fe683a/vbruntime/Test/bin/nunit.framework.dll"
bin/nunit.core.dll:
wget --no-check-certificate -O bin/nunit.core.dll "http://github.com/mono/mono-basic/raw/70f26b5b6f3c16999cb3e0b5864df88752fe683a/vbruntime/Test/bin/nunit.core.dll"
bin/nunit.util.dll:
wget --no-check-certificate -O bin/nunit.util.dll "http://github.com/mono/mono-basic/raw/70f26b5b6f3c16999cb3e0b5864df88752fe683a/vbruntime/Test/bin//nunit.util.dll"
init: bin/nunit-console.exe bin/nunit.framework.dll bin/nunit.core.dll bin/nunit.util.dll
cp bin/nunit-console$(NUNIT_VERSION).exe.config bin/nunit-console.exe.config
$(WINTEST)
2008VB_test_VB.dll.sources: 2008VB_test_VB.vbproj
MONO_PATH=$(MONO_VB_PATH) mono ../../tools/extract-source/extract-source.exe -s:2008VB_test_VB.vbproj -d:2008VB_test_VB.dll.sources -m:l
MONO_PATH=$(MONO_VB_PATH) mono ../../tools/extract-source/extract-source.exe -s:2008VB_test_VB.vbproj -d:2008VB_test_VB.dll.sources.win -m:w
2008VB_test_CS.dll.sources: 2008VB_test_CS.csproj
MONO_PATH=$(MONO_VB_PATH) mono ../../tools/extract-source/extract-source.exe -s:2008VB_test_CS.csproj -d:2008VB_test_CS.dll.sources -m:l
MONO_PATH=$(MONO_VB_PATH) mono ../../tools/extract-source/extract-source.exe -s:2008VB_test_CS.csproj -d:2008VB_test_CS.dll.sources.win -m:w
test-first:
cd ../Microsoft.VisualBasic && make && cp ../../class/lib/$(PROFILE)/Microsoft.VisualBasic.dll* ../Test/bin
test-cs: test-first 2008VB_test_CS.dll.sources
$(CSCOMPILER) "-out:bin/2008VB_test_CS.dll" @2008VB_test_CS.dll.rsp @2008VB_test_CS.dll.sources -lib:bin $(CSDEFINES)
test-vb: test-first 2008VB_test_VB.dll.sources
$(VBNC) -out:bin/2008VB_test_VB.dll @2008VB_test_VB.dll.rsp /d:NET_VER=2.0 @2008VB_test_VB.dll.sources /libpath:bin
test-local: init run-test-cs run-test-vb
clean-local:
-rm -f bin/2008VB_test_VB.*
-rm -f bin/2008VB_test_CS.*
-rm -fR bin/data
-rm -f bin/nunit-console.exe bin/nunit.framework.dll bin/nunit.core.dll bin/nunit.util.dll bin/Microsoft.VisualBasic.dll*
-rm -fR bin/%temp%
-rm -f bin/TestResult.xml
run-test-cs: test-cs
-cd bin && mono --debug nunit-console.exe 2008VB_test_CS.dll /exclude:NotWorking /labels
run-test-vb: test-vb
-cd bin && mono --debug nunit-console.exe 2008VB_test_VB.dll /exclude:NotWorking /labels
run-test-local: run-test-cs run-test-vb
run-test-ondotnet-local all-local install-local uninstall-local:
@:
dist-local: dist-default
|