Permalink
Browse files

adding tests for java-1.8 and mono-3.6

  • Loading branch information...
1 parent 324e10e commit 6abc4c6e6b179715cc22a861c3aba6a87a31bd8b @freeman1988 freeman1988 committed Jul 17, 2014
@@ -0,0 +1,10 @@
+correct_version="1.8"
+current_version=`java -version 2>&1 | head -n 1 | awk -F '"' '{print $2}' | head -c3`
+
+if [ "$current_version" = "$correct_version" ]; then
+echo "correct version $correct_version"
+exit 0
+else
+echo "incorrect version $current_version"
+exit 1
+fi
@@ -0,0 +1,4 @@
+runtime 'binary'
+stack 'java-1.8'
+file 'java-1.8.sh'
+exec 'java-1.8.sh'
@@ -0,0 +1,3 @@
+runtime 'binary'
+stack 'mono-3.6'
+exec 'mono3.sh'
@@ -0,0 +1,11 @@
+correct_version="3.6"
+current_version=`mono --version 2>&1 | head -n 1 | awk -F 'version ' '{print $2}' | head -c3`
+
+if [ "$current_version" = "$correct_version" ]; then
+echo "correct version $correct_version"
+exit 0
+else
+echo "incorrect version $current_version"
+exit 1
+fi
+

0 comments on commit 6abc4c6

Please sign in to comment.