mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
12 lines
298 B
Bash
12 lines
298 B
Bash
|
TESTS_ENVIRONMENT=("TEST_NAME=${test%.*}" 'NIX_REMOTE=')
|
||
|
|
||
|
: ${BASH:=/usr/bin/env bash}
|
||
|
|
||
|
init_test () {
|
||
|
cd tests && env "${TESTS_ENVIRONMENT[@]}" $BASH -e init.sh 2>/dev/null > /dev/null
|
||
|
}
|
||
|
|
||
|
run_test_proper () {
|
||
|
cd $(dirname $test) && env "${TESTS_ENVIRONMENT[@]}" $BASH -e $(basename $test)
|
||
|
}
|