mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Merge pull request #3574 from jekyll/remove-legacy-loader
Merge pull request 3574
This commit is contained in:
22
script/test
22
script/test
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user