summaryrefslogtreecommitdiffstats
path: root/src/mpfr.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-07-30 08:01:44 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-07-30 08:01:44 (GMT)
commite49defeb2a58faf087a333e6ce8bfd7fbbd82d42 (patch)
tree6726e3c8fa9b4eb802cbfbf1ae09a85036e82a87 /src/mpfr.mk
parent365adf39535bd9ad020e731d6f759c6c0c236de5 (diff)
downloadmxe-e49defeb2a58faf087a333e6ce8bfd7fbbd82d42.zip
mxe-e49defeb2a58faf087a333e6ce8bfd7fbbd82d42.tar.gz
mxe-e49defeb2a58faf087a333e6ce8bfd7fbbd82d42.tar.bz2
packages gmp mpc mpfr: build runtime tests to verify toolchain components
Diffstat (limited to 'src/mpfr.mk')
-rw-r--r--src/mpfr.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk
index d39cea7..89c945d 100644
--- a/src/mpfr.mk
+++ b/src/mpfr.mk
@@ -29,4 +29,13 @@ define $(PKG)_BUILD
--with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
+
+ # build runtime tests to verify toolchain components
+ -$(MAKE) -C '$(1)' -j '$(JOBS)' check -k
+ rm -rf '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
+ cp -R '$(1)/tests' '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
+ (printf 'date /t > all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \
+ printf 'time /t >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \
+ printf 'for /R %%%%f in (*.exe) do %%%%f || echo %%%%f fail >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n';) \
+ > '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests/all-tests-$(PKG)-$($(PKG)_VERSION).bat'
endef