Permalink
Browse files

added mongo automated JS tests

  • Loading branch information...
1 parent 3ebcc6c commit a5b516d377d999552f48a122be738289add481ca @pavlobaron committed Apr 28, 2012
Showing with 21 additions and 2 deletions.
  1. +1 −1 test/.gitignore
  2. +9 −0 test/init.sh
  3. +11 −1 test/test.sh
View
@@ -1,4 +1,4 @@
ebin/*
*.beam
deps/*
-
+mongo/*
View
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+mkdir mongo
+cd mongo
+git init
+git config core.sparsecheckout true
+echo jstests/ >> .git/info/sparse-checkout
+git remote add origin https://github.com/mongodb/mongo.git
+git pull origin master
View
@@ -1,3 +1,13 @@
#!/bin/sh
-mongo --verbose -port 32323 collection
+if test -z $1
+then
+ JS=""
+else
+ cd mongo
+ git update
+ JS=$1
+fi
+
+echo "running script? $JS"
+mongo --verbose -port 32323 collection $JS

0 comments on commit a5b516d

Please sign in to comment.