File: slapd-regtest

package info (click to toggle)
nsscache 0.49-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,664 kB
  • sloc: python: 8,661; xml: 584; sh: 304; makefile: 19
file content (27 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

set -x

if [[ -z ${AUTOPKGTEST_TMP-} ]]; then
    WORKDIR=$(mktemp -d -t nsscache.regtest.XXXXXX)
    ARTIFACTS=${WORKDIR}
else
    WORKDIR=${AUTOPKGTEST_TMP}
    ARTIFACTS=${AUTOPKGTEST_ARTIFACTS}
fi


export WORKDIR ARTIFACTS



cleanup() {
  if [[ -z ${AUTOPKGTEST_TMP-}  ]]; then
	rm -rf $WORKDIR
  fi
}

trap cleanup 0 INT QUIT ABRT PIPE TERM

# CWD of each test is the root of the source package.
./tests/slapd-regtest