Makefile revision 4726
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# CDDL HEADER START
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# The contents of this file are subject to the terms of the
b355dcb54194f498921743ca33304eac35d89718Stephen Gallagher# Common Development and Distribution License (the "License").
2cb6f28b3a12bb714bf14494d31eb6b6fff64b8bJakub Hrozek# You may not use this file except in compliance with the License.
2cb6f28b3a12bb714bf14494d31eb6b6fff64b8bJakub Hrozek# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# See the License for the specific language governing permissions
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# and limitations under the License.
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# When distributing Covered Code, include this CDDL HEADER in each
36b56482ca1e53d832accef0354124fd79711172Jakub Hrozek# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
531661c7bb54eb71853977a64cb30f80c20b963eJakub Hrozek# If applicable, add the following below this CDDL HEADER, with the
e59e09b5010f262228bbdeb92a79b733bf5854b3Stephen Gallagher# fields enclosed by brackets "[]" replaced with your own identifying
a7797068c4deb6ce2bdbcda27c45ff1bbb4a8e78Jakub Hrozek# information: Portions Copyright [yyyy] [name of copyright owner]
c938f4ba417328fe62eded0806b2d9ca053f34a5Stephen Gallagher# CDDL HEADER END
b355dcb54194f498921743ca33304eac35d89718Stephen Gallagher# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub HrozekCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub HrozekCOMPONENT_ARCHIVE_HASH= sha256:4b66ea61546142aef95c6cb135fc66d646f2d6527b5c190d8596f15424c05041
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub HrozekCOMPONENT_ARCHIVE_URL= https://github.com/jquery/qunit/archive/$(COMPONENT_ARCHIVE)
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# common targets
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# To run the test, you'll need to get pre-built installer of node.js for
cbe7c54c2caf718bdea7ca6660ba8193d759d2d5Stephen Gallagher# Solaris at nodejs.org since node.js is not delivered as part of Solaris
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek# Then go to qunit's source code root, 'qunit-1.18.0',
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek# run `npm install -g grunt-cli` to have a global grunt binary,
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek# and run `npm install` to get required node modules for additional grunt tasks.
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek# Finally run `grunt` to start running all the test tasks.
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# However, phantomjs is not supported well in Solaris and there is not an intutive
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# patch for fixing it, therefore `npm install` fails when it tries to install
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# phantomjs, and the test taks can't be run.
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# The phantomjs issue is discussed at:
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# https://github.com/ariya/phantomjs/issues/10521
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# These test tasks are passed sucessfully in a Mac OSX laptop. It'd be fine
bde69429374859acff41273c0771d2b5f5c199b1Yuri Chornoivan# to use QUnit in the browser.