File: smoke-test

package info (click to toggle)
when 1.1.45-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 244 kB
  • sloc: perl: 2,147; makefile: 153; sh: 11
file content (23 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

TEMP=${AUTOPKGTEST_TMP:-${TMPDIR:-/tmp}}
TDIR=$(mktemp -d $TEMP/smokeXXXXXX)
export HOME=$AUTOPKGTEST_TMP

# create some configuration needed in home
mkdir -p ${HOME}/.when
touch ${HOME}/.when/calendar
echo 'editor = sensible-editor' > ${HOME}/.when/preferences

# create temporary directory
mkdir -p ${TDIR}

# copy Makefile
cp -a Makefile ${TDIR}

# change directory to temporary test directory
cd ${TDIR}

# run testsuite with installed when
make test