From: Christopher De Cairos Date: Mon, 30 May 2011 17:43:54 +0000 (-0400) Subject: added separate lint targets for plugin, player and parser unit tests. lint-plugin... X-Git-Tag: v0.7^2~54^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d1946ef75cbe4c1382d30f96413a3bf7c8882b14;p=popcorn-js.git added separate lint targets for plugin, player and parser unit tests. lint-plugin-tests, lint-parser-tests, lint-player-tests, lint-unit-tests (runs previous three) --- diff --git a/Makefile b/Makefile index fb2c679..fcaa32d 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,21 @@ PLAYERS_MIN = ${DIST_DIR}/popcorn.players.min.js # Grab all popcorn..js files from plugins dir PLUGINS_SRC := $(filter-out %unit.js, $(shell find ${PLUGINS_DIR} -name 'popcorn.*.js' -print)) -# Grab all popcorn..js files from plugins dir +# Grab all popcorn..js files from parsers dir PARSERS_SRC := $(filter-out %unit.js, $(shell find ${PARSERS_DIR} -name 'popcorn.*.js' -print)) # Grab all popcorn..js files from players dir PLAYERS_SRC := $(filter-out %unit.js, $(shell find ${PLAYERS_DIR} -name 'popcorn.*.js' -print)) +# Grab all popcorn..unit.js files from plugins dir +PLUGINS_UNIT := $(shell find ${PLUGINS_DIR} -name 'popcorn.*.unit.js' -print) + +# Grab all popcorn..unit.js files from parsers dir +PARSERS_UNIT := $(shell find ${PARSERS_DIR} -name 'popcorn.*.unit.js' -print) + +# Grab all popcorn..unit.js files from players dir +PLAYERS_UNIT := $(shell find ${PLAYERS_DIR} -name 'popcorn.*.unit.js' -print) + # popcorn + plugins POPCORN_COMPLETE_LIST := --js ${POPCORN_SRC} \ $(shell for js in ${PLUGINS_SRC} ; do echo --js $$js ; done) \ @@ -137,6 +146,21 @@ lint-players: @@echo "Checking all players against JSLint..." @@${RHINO} build/jslint-check.js ${PLAYERS_SRC} +lint-plugin-tests: + @@echo "Checking plugin unit tests against JSLint..." + @@${RHINO} build/jslint-check.js ${PLUGINS_UNIT} + +lint-parser-tests: + @@echo "Checking parser unit tests against JSLint..." + @@${RHINO} build/jslint-check.js ${PARSERS_UNIT} + +lint-player-tests: + @@echo "Checking player unit tests against JSLint..." + @@${RHINO} build/jslint-check.js ${PLAYERS_UNIT} + +lint-unit-tests: lint-plugin-tests lint-parser-tests lint-player-tests + @@echo "completed" + # Create a mirror copy of the tree in dist/ using popcorn-complete.js # in place of popcorn.js. TESTING_MIRROR := ${DIST_DIR}/testing-mirror