File: okapi_test_common.sh

package info (click to toggle)
cde 0.1%2Bgit9-g551e54d-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,340 kB
  • ctags: 10,812
  • sloc: ansic: 75,881; sh: 4,282; python: 1,006; perl: 438; makefile: 297; lisp: 44; java: 5
file content (17 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# DO NOT execute directly, only import from other scripts

OKAPI_BIN="/home/pgbovine/CDE/okapi"
OKAPI_TESTDIR="/tmp/okapi-testdir"

# initialize these based on the name of the script that imports this file.
# e.g., if the script name is ./test-java.sh, then TESTNAME=test-java
TESTNAME=`basename ${0/%.sh/}`
TESTDIR="$OKAPI_TESTDIR/$TESTNAME"


function okapi_test_init {
  rm -rf $OKAPI_TESTDIR;
  mkdir $OKAPI_TESTDIR;
  mkdir $TESTDIR;
}