File: .functests

package info (click to toggle)
swift 2.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,768 kB
  • sloc: python: 197,574; sh: 636; pascal: 253; makefile: 69; xml: 32
file content (15 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

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

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

cd ${SRC_DIR} > /dev/null
export TESTS_DIR=${SRC_DIR}/test/functional
ARGS="--serial ${@:-"--pretty"}"
ostestr $ARGS
rvalue=$?
cd -  > /dev/null

exit $rvalue