From: Ben Maurer Date: Tue, 14 Jun 2005 15:55:43 +0000 (-0000) Subject: In mono/tests: X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=dc2f86844b0be2cd99e375a664b2d694eea323ac In mono/tests: 2005-06-14 Ben Maurer * Makefile.am (testbundle): Test case that bundling works with a hello world. In .: 2005-06-14 Ben Maurer * mono-uninstalled.pc.in: pc file that handles mono when it is not installed. This lets us have mkbundle work inside the tree. * configure.in: Create the .pc file above. svn path=/trunk/mono/; revision=45977 --- diff --git a/ChangeLog b/ChangeLog index f7caeed80be..04bf6ce3d36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-14 Ben Maurer + + * mono-uninstalled.pc.in: pc file that handles mono when it is not + installed. This lets us have mkbundle work inside the tree. + + * configure.in: Create the .pc file above. + 2005-06-13 Jonathan Pryor * man/mono-shlib-cop.1: Add man page for mono-shlib-cop program. diff --git a/configure.in b/configure.in index 9c71c2a20ff..abb2a667677 100644 --- a/configure.in +++ b/configure.in @@ -1715,6 +1715,7 @@ AC_OUTPUT([ Makefile mint.pc mono.pc +mono-uninstalled.pc scripts/mono-nunit.pc scripts/mono-find-provides scripts/mono-find-requires diff --git a/mono-uninstalled.pc.in b/mono-uninstalled.pc.in new file mode 100644 index 00000000000..ec708398a9f --- /dev/null +++ b/mono-uninstalled.pc.in @@ -0,0 +1,6 @@ +Name: Mono +Description: Mono Runtime +Version: @VERSION@ +Requires: glib-2.0 gmodule-2.0 gthread-2.0 +Libs: -L${pc_top_builddir}/mono/mini/.libs -lmono @libmono_ldflags@ -lm +Cflags: -I${pc_top_builddir}/@srcdir@ -I${pc_top_builddir}/@srcdir@/mono @libmono_cflags@ diff --git a/mono/tests/ChangeLog b/mono/tests/ChangeLog index f2d41a37371..52a85c3be00 100644 --- a/mono/tests/ChangeLog +++ b/mono/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-06-14 Ben Maurer + + * Makefile.am (testbundle): Test case that bundling works with a + hello world. + 2005-05-26 Zoltan Varga * Makefile.am (TestDriver.dll): Fix a warning. diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am index 7b3f5b4e54c..49bf1c745ef 100644 --- a/mono/tests/Makefile.am +++ b/mono/tests/Makefile.am @@ -10,6 +10,11 @@ RUNTIME_ARGS=--config tests-config --optimize=all RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/default $(top_builddir)/runtime/mono-wrapper +MKBUNDLE = \ + PKG_CONFIG_TOP_BUILD_DIR=$(top_builddir) \ + PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \ + $(RUNTIME) $(mcs_topdir)/tools/mkbundle/mkbundle.exe + CSC = $(RUNTIME) $(mcs_topdir)/class/lib/default/mcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 ILASM = $(RUNTIME) $(mcs_topdir)/ilasm/ilasm.exe @@ -251,7 +256,7 @@ EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_IL_SRC) $(BENCHSRC) $(STRESS_TESTS_ %.exe: %.cs TestDriver.dll $(CSC) -r:TestDriver.dll -out:$@ $< -test: testjit +test: testjit testbundle TestDriver.dll: $(CSC) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs @@ -377,6 +382,11 @@ stresstest: $(STRESS_TESTS) if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \ for i in $${failed_tests}; do echo $${i}; done; exit 1; fi +testbundle: console.exe + $(MKBUNDLE) --static console.exe + ./a.out + - rm -rf a.out + noinst_LTLIBRARIES = libtest.la INCLUDES = $(GLIB_CFLAGS)