File: integration

package info (click to toggle)
keyd 2.5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,524 kB
  • sloc: ansic: 5,206; python: 1,121; makefile: 114; javascript: 105; perl: 95; sh: 80
file content (18 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# keyd's integration test suite requires:
#   * access to /dev/uinput
#   * a running keyd daemon (which should be started by the testbed's init system)
#   * a temporary test configuration file in /etc/keyd
set -e
conf=/etc/keyd/integration-test.conf
cd "${0%/*}"/../../t
! [ -e "${conf}" ] || { printf %s\\n "ERROR: config file ${conf} already exists" >&2; exit 1; }
cleanup() {
    rm -f "${conf}"
    keyd.rvaiya reload
}
trap cleanup EXIT
trap 'exit 1' ALRM HUP INT PIPE TERM USR1 USR2
cp test.conf "${conf}"
keyd.rvaiya reload
./runner.py -v --flaky-attempts 5 *.t