File: test

package info (click to toggle)
vip-manager2 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: sh: 169; makefile: 33
file content (17 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -eux

# ensure no etcd server is running (ignore errors to support running without systemd)
service etcd stop || :

# convince the etcd go library to run on all architectures
DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
case $DEB_HOST_ARCH in
    arm64|s390x) export ETCD_UNSUPPORTED_ARCH=$DEB_HOST_ARCH ;;
    armel|armhf) export ETCD_UNSUPPORTED_ARCH=arm ;;
    i386) export ETCD_UNSUPPORTED_ARCH=386 ;;
esac

# run the actual test script
test/$1.sh