X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fbuild%2FREADME.makefiles;h=1e1ace7d7b136e1ffce23cc783a72f27476f499d;hb=e7951e6ee0786855af92d677d5fb20fe14f5ecdf;hp=610468d5cdf6e66573dc352ce48244676ffd7796;hpb=f33941ae443d3b8116e7e2438c89aeef8e0aef31;p=mono.git diff --git a/mcs/build/README.makefiles b/mcs/build/README.makefiles index 610468d5cdf..1e1ace7d7b1 100644 --- a/mcs/build/README.makefiles +++ b/mcs/build/README.makefiles @@ -266,6 +266,23 @@ mytester.exe: mytester.cs $(CSCOMPILE) /target:exe /out:$@ mytester.cs ======================================== +If your program has NUnit tests, set the variable HAS_NUNIT_TEST: + +======================================== +PROGRAM = myprogram.exe +LOCAL_MCS_FLAGS = /r:System.Xml.dll +HAS_NUNIT_TEST = yes +include ../build/executable.make +======================================== + +HAS_NUNIT_TEST tests follow library.make NUnit test conventions: +the files should be in a subdirectory called Test/, and if +your program is called myprogram.exe, they should be listed in +myprogram_test.dll.sources. The names in that files should *not* have +the Test/ prefix. 'make test' will build myprogram_test_$(PROFILE).dll +in the current directory, automatically supplying the flags to +reference the original program and NUnit.Framework.dll. + If your program has 'built sources', that is, source files generated from other files (say, generated by jay), define a variable called BUILT_SOURCES and do *not* list the sources in $(PROGRAM).sources: