Permalink
Browse files

This was never very useful. Might as well remove it.

  • Loading branch information...
brentlintner committed Mar 30, 2012
1 parent c9f3948 commit 467221fc8d79a210289e93407222009111dc9f12
Showing with 0 additions and 92 deletions.
  1. +0 −3 Jakefile
  2. +0 −35 build/ptest.js
  3. +0 −20 test/system/genfiles
  4. +0 −34 test/system/perf.js
View
@@ -1,8 +1,5 @@
desc('run tests');
task('test', [], require('./build/test'));
-desc('run performance/system tests');
-task('ptest', [], require('./build/ptest'));
-
desc('lint code');
task('lint', [], require('./build/lint'));
View
@@ -1,35 +0,0 @@
-module.exports = function () {
- var jasmine = require('jasmine-node'),
- childProcess = require('child_process'),
- path = require('path'),
- verbose = false,
- colored = true,
- key;
-
- for (key in jasmine) {
- if (Object.prototype.hasOwnProperty.call(jasmine, key)) {
- global[key] = jasmine[key];
- }
- }
-
- process.argv.forEach(function (arg) {
- switch (arg) {
- case '--no-color':
- colored = false;
- break;
- case '--silent':
- verbose = false;
- break;
- }
- });
-
- function _test() {
- jasmine.executeSpecsInFolder(__dirname + "/../test/system/", null, verbose, colored);
- }
-
- if (path.existsSync(__dirname + "/../test/system/.files")) {
- _test();
- } else {
- childProcess.exec(__dirname + "/../test/system/genfiles test/system/.files", _test);
- }
-};
View
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-mkdir "$1"
-
-for i in {1..5}
-do
- mkdir "$1/$i"
- for q in {1..10}
- do
- mkdir "$1/$i/$q"
- for d in {1..20}
- do
- touch "$1/$i/$q/$d.js"
- for b in {1..50}
- do
- echo "var v$b = 'abcd';" >> "$1/$i/$q.js"
- done
- done
- done
-done
View
@@ -1,34 +0,0 @@
-describe("file/directory walking performance", function () {
- var path = require('path');
-
- beforeEach(function checkGeneratedFS() {
- if (!path.existsSync(__dirname + "/.files")) {
- throw "no .files folder!";
- }
- });
-
- describe("by default", function () {
- it("performs reasonably", function () {
- var finished = false,
- time = new Date().getTime();
-
- require('child_process').exec(__dirname + "/../../bin/hint " + __dirname + "/.files", function (b) {
- if (b) {
- process.stdout.write(b.message + "\n");
- throw b;
- }
-
- var stamp = new Date().getTime() - time;
-
- process.stdout.write("Took ~" + stamp + "ms\n");
- expect(stamp <= 6000).toBe(true); // usually ~5s
-
- finished = true;
- });
-
- waitsFor(function () {
- return finished;
- }, "time out", 10000);
- });
- });
-});

0 comments on commit 467221f

Please sign in to comment.