2010-07-12 17:03:45 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-08-05 14:22:28 -04:00
|
|
|
# How-To debug functional tests:
|
|
|
|
# SWIFT_TEST_IN_PROCESS=1 tox -e func -- --pdb test.functional.tests.TestFile.testCopy
|
|
|
|
|
2019-03-01 12:43:42 -08:00
|
|
|
SRC_DIR=$(python -c "import os; print(os.path.dirname(os.path.realpath('$0')))")
|
2012-11-26 09:58:09 -06:00
|
|
|
|
2018-02-13 17:00:22 -08:00
|
|
|
cd ${SRC_DIR} > /dev/null
|
2015-08-07 18:14:13 -05:00
|
|
|
export TESTS_DIR=${SRC_DIR}/test/functional
|
2019-04-09 08:34:18 -07:00
|
|
|
ARGS="--concurrency 1 ${@:-"--pretty"}"
|
2018-02-13 17:00:22 -08:00
|
|
|
ostestr $ARGS
|
2014-01-07 14:18:31 +08:00
|
|
|
rvalue=$?
|
2018-02-13 17:00:22 -08:00
|
|
|
cd - > /dev/null
|
2012-03-12 21:54:31 +00:00
|
|
|
|
2014-01-07 14:18:31 +08:00
|
|
|
exit $rvalue
|