aboutsummaryrefslogtreecommitdiff
path: root/test/run-tests.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-13 15:04:44 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-13 15:04:44 +0300
commitfcc0229087c4efd212a1050f38d3049d52344b3a (patch)
tree02032c14fdb06c118ae18ab41b81f69fd6d6206b /test/run-tests.js
parentb071c9d079e3acbfb521a6634364c5816d3be280 (diff)
downloadtracifyjs-fcc0229087c4efd212a1050f38d3049d52344b3a.tar.gz
tracifyjs-fcc0229087c4efd212a1050f38d3049d52344b3a.zip
drop unused function arguments
also add test for "drop_unused" (the last one fails for now)
Diffstat (limited to 'test/run-tests.js')
-rwxr-xr-xtest/run-tests.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/run-tests.js b/test/run-tests.js
index abace39c..87301412 100755
--- a/test/run-tests.js
+++ b/test/run-tests.js
@@ -37,6 +37,12 @@ function find_test_files(dir) {
var files = fs.readdirSync(dir).filter(function(name){
return /\.js$/i.test(name);
});
+ if (process.argv.length > 2) {
+ var x = process.argv.slice(2);
+ files = files.filter(function(f){
+ return x.indexOf(f) >= 0;
+ });
+ }
return files;
}