main
 1#!/bin/sh
 2
 3# script/test: Run test suite for application. Optionally pass in a path to an
 4#              individual test file to run a single test.
 5
 6
 7set -e
 8
 9cd "$(dirname "$0")/.."
10
11[ -z "$DEBUG" ] || set -x
12
13# GC customizations
14export RUBY_GC_MALLOC_LIMIT=79000000
15export RUBY_GC_HEAP_INIT_SLOTS=800000
16export RUBY_HEAP_FREE_MIN=100000
17export RUBY_HEAP_SLOTS_INCREMENT=400000
18export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
19
20echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
21bin/setup
22
23echo ["$(date "+%H:%M:%S")"] "==> Running tests…"
24if [[ $# -eq 0 ]]; then
25  bundle exec rake spec
26else
27  bundle exec rspec "$1"
28fi