Merge pull request #3574 from jekyll/remove-legacy-loader

Merge pull request 3574
This commit is contained in:
Parker Moore
2015-03-16 14:55:12 -07:00
2 changed files with 9 additions and 57 deletions

View File

@@ -1,23 +1,19 @@
#! /bin/bash
#
set -xe
# Usage:
# script/test
# script/test <test_file>
if [ ! -d tmp ]; then
mkdir tmp
if [ ! -d tmp ]
then mkdir tmp
fi
if [ -d test/dest ]; then
rm -r test/dest
if [ -d test/dest ]
then rm -r test/dest
fi
if [ -z "$1" ]; then
TEST_FILES=$(ruby -e "puts Dir.glob('test/test_*.rb')")
else
TEST_FILES="$@"
if [[ $# -lt 1 ]]
then time bundle exec rake test
else time bundle exec ruby -Itest "$@"
fi
set -x
time bundle exec ruby -Ilib -Itest -rloader $TEST_FILES --profile