#!/bin/sh

for SAMPLE in *Test
do
	if [ -d $SAMPLE ] && [ -e $SAMPLE/$SAMPLE.js ]
	then
		cd $SAMPLE
		echo "$SAMPLE running"
		node $SAMPLE.js
		cd ..
		echo "$SAMPLE finished. Press enter to continue..."
		read -p "$*" a
	fi
done
echo "All tests finished."
