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