Merge pull request #1563 from directhex/emit-nunit-xml-in-unmanaged-tests
authorMiguel de Icaza <miguel@gnome.org>
Wed, 18 Feb 2015 04:27:58 +0000 (23:27 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 18 Feb 2015 04:27:58 +0000 (23:27 -0500)
Generate NUnit interpretation of whether "mono --regressions" passed

1  2 
mono/mini/Makefile.am.in

diff --combined mono/mini/Makefile.am.in
index ad1a4b3239da02b72e3a6c255ec97cc9a23e6fca,38c6c3ec53076dd2700e04f3358ec6660bd65fc5..48162213bd2eda2c8dfd9c2e080c9865f483558b
@@@ -51,7 -51,7 +51,7 @@@ AM_CFLAGS = 
        -I$(top_srcdir)         \
        $(GLIB_CFLAGS)          \
        $(LLVM_CFLAGS)          \
 -      $(PLATFORM_CFLAGS) $(ARCH_CFLAGS)
 +      $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) $(SHARED_CFLAGS)
  
  AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS)
  
@@@ -660,7 -660,8 +660,8 @@@ rcheck: mono $(regtests
  if NACL_CODEGEN
        for i in $(regtests); do echo "running test $$i"; $(RUNTIME) $$i --exclude 'NaClDisable' || exit 1; done
  else
-       $(RUNTIME) --regression $(regtests)
+       -($(RUNTIME) --regression $(regtests); echo $$? > regressionexitcode.out) | ./emitnunit.pl
+       exit $$(cat regressionexitcode.out)
  endif
  
  check-seq-points: mono $(regtests)
@@@ -727,7 -728,7 +728,7 @@@ docu: mini.sg
  check-local: rcheck check-seq-points
  
  clean-local:
-       rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe
+       rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe regressionexitcode.out
  
  pkgconfigdir = $(libdir)/pkgconfig