[packages/phantomjs/dev-2.1] run tests
glen
glen at pld-linux.org
Fri Mar 25 09:52:48 CET 2016
commit 41490a739b08ce28e9281546a88db892a742344f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Mar 25 10:52:43 2016 +0200
run tests
phantomjs.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/phantomjs.spec b/phantomjs.spec
index 54128aa..7fc6708 100644
--- a/phantomjs.spec
+++ b/phantomjs.spec
@@ -4,6 +4,7 @@
# Conditional build:
%bcond_with system_qcommandline
%bcond_with system_qt
+%bcond_without tests # build without tests
%define qtbase 5.5.1
Summary: Headless WebKit with a JavaScript API
@@ -138,6 +139,10 @@ rm -r src/linenoise
%patch6 -p1
%{?with_system_qcommandline:%patch7 -p1}
+# cookie tests fail
+mv module/cookiejar/to-map.js{,.skip}
+mv module/webpage/cookies.js{,.skip}
+
%build
qtconfig() {
for a in "$@"; do
@@ -182,6 +187,10 @@ qtconfig=" \
$(qtconfig $qtconfig) \
--confirm --release
+%if %{with tests}
+test/run-tests.py -v
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/phantomjs.git/commitdiff/41490a739b08ce28e9281546a88db892a742344f
More information about the pld-cvs-commit
mailing list