You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2012/11/09 23:24:35 UTC

git commit: updated tests

Updated Branches:
  refs/heads/master 75dc7812a -> 68979ceaa


updated tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/commit/68979cea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/tree/68979cea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/diff/68979cea

Branch: refs/heads/master
Commit: 68979ceaaf4ff1a347697d4d8743a341b3ea2f9b
Parents: 75dc781
Author: steven gill <st...@apache.org>
Authored: Fri Nov 9 14:24:17 2012 -0800
Committer: steven gill <st...@apache.org>
Committed: Fri Nov 9 14:24:17 2012 -0800

----------------------------------------------------------------------
 test/tests.coffee |  187 ++++++++++++-----------------------------------
 1 files changed, 48 insertions(+), 139 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/68979cea/test/tests.coffee
----------------------------------------------------------------------
diff --git a/test/tests.coffee b/test/tests.coffee
index bdc303e..0658d70 100644
--- a/test/tests.coffee
+++ b/test/tests.coffee
@@ -32,55 +32,6 @@ exports['creating release directory']=(test)->
 	test.ok fs.existsSync("./temp/release")
 	test.done()
 
-# commented out because coho does not generate binary content
-# exports['creating bin directory']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/bin")
-# 	test.done()
-	
-# commented out because coho does not generate binary content
-# exports['confirm bin zip file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['confirm bin asc file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip.asc")
-# 	test.done()
-	
-# commented out because coho does not generate binary content
-# exports['confirm bin md5 file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip.md5")
-# 	test.done()	
-	
-# commented out because coho does not generate binary content
-# exports['test if bin zip is empty'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.statSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip").size != 0, 'bin zip created too soon'
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['test if bin asc is empty'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.statSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip.asc").size != 0, 'bin asc created too soon'
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['test if bin md5 is empty'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.statSync("./temp/release/bin/cordova-"+VERSION+"-incubating-bin.zip.md5").size != 0, 'bin md5 created too soon'
-# 	test.done()	
-
 exports['confirm ios clone worked'] = (test)->
 	test.expect 1
 	fs = require('fs')
@@ -135,6 +86,48 @@ exports['confirm docs clone worked'] = (test)->
 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-docs/VERSION")
 	test.done()
 
+exports['confirm docs clone worked'] = (test)->
+    test.expect 1
+    fs = require('fs')
+    test.ok fs.existsSync("./temp/repositories/incubator-cordova-docs/VERSION")
+    test.done()
+
+exports['confirm cordova-js clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-js/VERSION")
+	test.done()
+  	
+exports['confirm hello world app clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-app-hello-world/VERSION")
+	test.done()
+        	
+exports['confirm qt clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-qt/VERSION")
+	test.done()
+            	
+exports['confirm tizen clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-tizen/VERSION")
+	test.done()
+                	
+exports['confirm mac clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-mac/VERSION")
+	test.done()
+                    	
+exports['confirm mobile-spec clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-mobile-spec/VERSION")
+	test.done()
+
 exports['check ios version number'] = (test)->
 	test.expect 1
 	fs = require('fs')	
@@ -228,7 +221,7 @@ exports['check docs version number'] = (test)->
 exports['check cordova-js version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-js/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-js/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -238,7 +231,7 @@ exports['check cordova-js version number'] = (test)->
 exports['check hello world app version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-app-hello-world/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-app-hello-world/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -248,7 +241,7 @@ exports['check hello world app version number'] = (test)->
 exports['check QT version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-qt/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-qt/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -258,7 +251,7 @@ exports['check QT version number'] = (test)->
 exports['check tizen version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-tizen/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-tizen/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -268,7 +261,7 @@ exports['check tizen version number'] = (test)->
 exports['check mac version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-mac/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-mac/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -278,103 +271,19 @@ exports['check mac version number'] = (test)->
 exports['check mobile spec version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-mobile-spec/VERSION', 'ascii') != VERSION
+	if fs.readFileSync('./temp/repositories/incubator-cordova-mobile-spec/VERSION', 'ascii') != VERSION+"\n"
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
 		test.ok true, "VERSION file matches release version"
 		test.done()
 
-# commented out because coho does not generate binary content
-# exports['docs script successful'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-docs/public")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['docs copied into release'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/doc")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['confirm doc zip file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['confirm doc asc file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip.asc")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['confirm doc md5 file']=(test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip.md5")
-# 	test.done()	
-
-# commented out because coho does not generate binary content
-# exports['test if doc zip is empty'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.statSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip").size != 0, 'doc zip created too soon'
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['test if doc asc is empty'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.statSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip.asc").size != 0, 'doc asc created too soon'
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['test if doc md5 is empty'] = (test)->
-#	test.expect 1
-#	fs = require('fs')
-#	test.ok fs.statSync("./temp/release/doc/cordova-"+VERSION+"-incubating-doc.zip.md5").size != 0, 'doc md5 created too soon'
-#	test.done()	
-		
-# commented out because coho does not generate binary content
-# exports['ios script successful'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-ios/dist/Cordova-"+VERSION+".dmg")
-# 	test.done()
-		
-# commented out because coho does not generate binary content
-# exports['android script successful'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-android/example/libs/cordova-"+VERSION+".jar")
-# 	test.done()
-
-# commented out because coho does not generate binary content
-# exports['blackberry script successful'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-blackberry-webworks/dist/www/cordova-"+VERSION+".js")
-# 	test.done()
-
 exports['license copied into release'] = (test)->
 	test.expect 1
 	fs = require('fs')
 	test.ok fs.existsSync("./temp/release/src/cordova-"+VERSION+"/LICENSE")
 	test.done()
 	
-# commented out because each component has a version, and the version number is in the dir name
-# exports['version file copied into release'] = (test)->
-# 	test.expect 1
-# 	fs = require('fs')
-# 	test.ok fs.existsSync("./temp/release/version")
-# 	test.done()
-	
 exports['readme copied into release'] = (test)->
 	test.expect 1
 	fs = require('fs')