20 lines
277 B
Bash
20 lines
277 B
Bash
#! /bin/bash
|
|
#
|
|
# Usage:
|
|
# script/test
|
|
# script/test <test_file>
|
|
|
|
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
|