Permalink
Browse files

Fix running of mjsunit tests in new release

  • Loading branch information...
1 parent 7b8bd77 commit 8ec51647626596bf58cf0458d4e893c44574aba6 @ept committed Sep 16, 2011
Showing with 9 additions and 4 deletions.
  1. +2 −1 debian/changelog
  2. +7 −3 debian/rules
View
@@ -1,11 +1,12 @@
-libv8 (3.6.4-1) unstable; urgency=low
+libv8 (3.6.4-2) unstable; urgency=low
New upstream release.
[ Martin Kleppmann ]
* Remove version number from the package name.
* Remove support for ARM architectures (we don't need them).
* Remove i18n extension (not needed for server-side JS).
+ * Fix running of regression tests during build to use d8.
-- Martin Kleppmann <martin@rapportive.com> Fri, 16 Sep 2011 05:37:51 +0000
View
@@ -40,8 +40,8 @@ DEB_SCONS_BUILD_TARGET = library
# Scons does not always add -soname param, force it. This prevents gold linker from erroring.
DEB_SCONS_ENVVARS = SONAME=libv8.so.$(SONAME)
-# regression tests need to build shell for mjsunit
-DEB_SCONS_CHECK_TARGET = sample sample=shell
+# regression tests need the V8 developer shell for mjsunit
+DEB_SCONS_CHECK_TARGET = d8
DEB_SCONS_INSTALL_OPTIONS += DESTDIR="$(cdbs_curdestdir)"
@@ -53,12 +53,16 @@ clean::
rm -f test/*/*.pyc
rm -f shell
+# before running regression tests, symlink the shared library so that the d8 build can find it
+common-build-arch::
+ ln -sfT libv8-$(SONAME).so $(CURDIR)/libv8.so
+
# actually run regression tests
# * relax regression tests when targeted experimental suite
# * run only javascript tests, cctests are for development purposes
exp-relax-check := $(if $(shell dpkg-parsechangelog | grep -Fx 'Distribution: experimental'),-)
common-post-build-impl::
- $(exp-relax-check)$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,LD_PRELOAD=$(CURDIR)/libv8-$(SONAME).so $(CURDIR)/tools/test.py --progress=verbose --snapshot --no-build mjsunit message arch=$(v8arch))
+ $(exp-relax-check)$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,LD_PRELOAD=$(CURDIR)/libv8-$(SONAME).so $(CURDIR)/tools/test.py --progress=verbose --snapshot --no-build mjsunit arch=$(v8arch))
common-install-impl::
cd debian/tmp/usr/lib/ ; \

0 comments on commit 8ec5164

Please sign in to comment.