Index: tools/cc-frame-viewer/third_party/gl-matrix/tasks/test/node.rake |
diff --git a/tools/cc-frame-viewer/third_party/gl-matrix/tasks/test/node.rake b/tools/cc-frame-viewer/third_party/gl-matrix/tasks/test/node.rake |
new file mode 100644 |
index 0000000000000000000000000000000000000000..85bc3cb812ac79fd07d8b03f1508228685f50e0d |
--- /dev/null |
+++ b/tools/cc-frame-viewer/third_party/gl-matrix/tasks/test/node.rake |
@@ -0,0 +1,20 @@ |
+namespace :test do |
+ desc "run test suite with node.js" |
+ task :node => :build do |
+ # make sure jasmine-node exists, and barf if it doesn't |
+ if %x['jasmine-node'] =~ /USAGE/ |
+ unless system 'jasmine-node', base_path.join('spec').to_s |
+ raise "node.js tests failed" |
+ end |
+ else |
+ puts "jasmine-node is not available" |
+ puts |
+ puts "Please run:" |
+ puts " npm install -g jasmine-node" |
+ puts |
+ puts "...and then try again." |
+ puts |
+ exit |
+ end |
+ end |
+end |