4726N/A#
4726N/A# CDDL HEADER START
4726N/A#
4726N/A# The contents of this file are subject to the terms of the
4726N/A# Common Development and Distribution License (the "License").
4726N/A# You may not use this file except in compliance with the License.
4726N/A#
4726N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4726N/A# or http://www.opensolaris.org/os/licensing.
4726N/A# See the License for the specific language governing permissions
4726N/A# and limitations under the License.
4726N/A#
4726N/A# When distributing Covered Code, include this CDDL HEADER in each
4726N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4726N/A# If applicable, add the following below this CDDL HEADER, with the
4726N/A# fields enclosed by brackets "[]" replaced with your own identifying
4726N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4726N/A#
4726N/A# CDDL HEADER END
4726N/A#
4726N/A
4726N/A#
6027N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4726N/A#
4726N/A
4726N/Ainclude ../../../make-rules/shared-macros.mk
4726N/A
4726N/ACOMPONENT_NAME= qunit
6027N/ACOMPONENT_VERSION= 1.23.1
4726N/ACOMPONENT_PROJECT_URL= http://qunitjs.com/
4726N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4726N/ACOMPONENT_ARCHIVE= $(COMPONENT_VERSION).tar.gz
6027N/ACOMPONENT_ARCHIVE_HASH= \
6027N/A sha256:38f0f23e8441e1e2da6d4e90a10b85304eb52002d570e7016015d05718d4a3d5
4726N/ACOMPONENT_ARCHIVE_URL= https://github.com/jquery/qunit/archive/$(COMPONENT_ARCHIVE)
4726N/ACOMPONENT_BUGDB= javascript/qunit
4726N/A
6027N/ATPNO= 27977
4726N/A
4726N/Ainclude ../../../make-rules/prep.mk
4726N/Ainclude ../../../make-rules/ips.mk
4726N/A
4726N/A# common targets
4726N/Apublish: download prep
4726N/A
4726N/A# To run the test, you'll need to get pre-built installer of node.js for
4726N/A# Solaris at nodejs.org since node.js is not delivered as part of Solaris
4726N/A# yet.
6027N/A# Then go to qunit's source code root, such as 'qunit-1.23.1',
4726N/A# run `npm install -g grunt-cli` to have a global grunt binary,
4726N/A# and run `npm install` to get required node modules for additional grunt tasks.
4726N/A# Finally run `grunt` to start running all the test tasks.
6027N/A# However, phantomjs is not supported well in Solaris and there is not an intuitive
4726N/A# patch for fixing it, therefore `npm install` fails when it tries to install
4726N/A# phantomjs, and the test taks can't be run.
4726N/A# The phantomjs issue is discussed at:
4726N/A#
4726N/A# https://github.com/ariya/phantomjs/issues/10521
4726N/A#
6027N/A# These test tasks are passed successfully in a Mac OSX laptop. It'd be fine
4726N/A# to use QUnit in the browser.
4726N/Atest: $(NO_TESTS)
4726N/A
4726N/Asystem-test: $(NO_TESTS)