Merge pull request #2819 from BrzVlad/fix-major-log
[mono.git] / mcs / tools / monop / Makefile
index 5ab160617db4a09651f98d5b6472b6859978d6db..4e84d9916fa15b756445b5148fe51d1faa292c17 100644 (file)
@@ -2,8 +2,16 @@ thisdir = tools/monop
 SUBDIRS = 
 include ../../build/rules.make
 
-PROGRAM = $(topdir)/class/lib/$(PROFILE)/monop.exe
+PROGRAM = monop.exe
+LOCAL_MCS_FLAGS += -d:NO_AUTHENTICODE,STATIC,NO_SYMBOL_WRITER
+LIB_REFS = System
 
 CLEAN_FILES = monop.exe monop2.exe *.mdb
 
 include ../../build/executable.make
+
+run-test-local : basic-tests
+
+basic-tests:
+       for type in System.Array System.String 'System.Collections.Generic.List`1'; do \
+       echo $$type; MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(build_lib) $$type >/dev/null || exit 1; done