.functests 382 Bytes
Newer Older
1 2
#!/bin/bash

3 4 5
# How-To debug functional tests:
# SWIFT_TEST_IN_PROCESS=1 tox -e func -- --pdb test.functional.tests.TestFile.testCopy

6
SRC_DIR=$(python -c "import os; print(os.path.dirname(os.path.realpath('$0')))")
7

8
cd ${SRC_DIR} > /dev/null
9
export TESTS_DIR=${SRC_DIR}/test/functional
Tim Burke's avatar
Tim Burke committed
10
ARGS="--concurrency 1 ${@:-"--pretty"}"
11
ostestr $ARGS
12
rvalue=$?
13
cd -  > /dev/null
14

15
exit $rvalue