forked from chandlerkent/CKKit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing tests and adding a jake test task.
- Loading branch information
Chandler Kent
committed
Feb 8, 2010
1 parent
e80f90b
commit 9712dfa
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Jakefile | ||
* test | ||
* | ||
* Created by You on November 12, 2009. | ||
* Copyright 2009, Your Company All rights reserved. | ||
*/ | ||
|
||
var ENV = require("system").env, | ||
FILE = require("file"), | ||
task = require("jake").task, | ||
SYSTEM = require("system"), | ||
OS = require("os"), | ||
FileList = require("jake").FileList, | ||
app = require("cappuccino/jake").app, | ||
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; | ||
|
||
task("test", function() | ||
{ | ||
var tests = new FileList('Tests/*Test.j'); | ||
var cmd = ["ojtest"].concat(tests.items()); | ||
var cmdString = cmd.map(OS.enquote).join(" "); | ||
|
||
var code = OS.system(cmdString); | ||
if (code !== 0) | ||
OS.exit(code); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters