#! /bin/bash # # Usage: # script/test # script/test if [ ! -d tmp ]; then mkdir tmp fi if [ -z "$1" ]; then TEST_FILES=$(ruby -e "puts Dir.glob('test/test_*.rb')") else TEST_FILES="$@" fi set -x time bundle exec ruby -I"lib:test" -rloader $TEST_FILES