aboutsummaryrefslogtreecommitdiffstats
path: root/run_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_test.sh')
-rwxr-xr-xrun_test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/run_test.sh b/run_test.sh
new file mode 100755
index 0000000..9ddba76
--- /dev/null
+++ b/run_test.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+exercises=( \
+ /#divide/ \
+ /#hello5/ \
+ /#hello_x_times/ \
+ /#string_plus/ \
+ /#join_reverse_array/ \
+ /#array_tack_join/ \
+ /Table/ \
+ /Table2#height_times2/ \
+)
+
+if [ $# -lt 1 ]; then
+ echo "Usage: $0 [number]"
+ echo "[number] is the exercise number you want to run tests for."
+ exit 1
+fi
+
+ruby exercises_spec.rb --name ${exercises[$1 - 1]}