chiark / gitweb /
test: run-*: allow overriding the command
[hippotat.git] / test / run-server
1 #!/bin/sh
2 # Copyright 2021 Ian Jackson and contributors to Hippotat
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # There is NO WARRANTY.
5
6 set -e
7 slug=$1; if [ $# -gt 0 ]; then shift; fi
8
9 if [ "x$1" = x--- ]; then
10         shift
11 else
12         set target/debug/hippotatd --config src/test/test.cfg --debug "$@"
13 fi
14
15 ip netns exec hippotat-t-$slug-server "$@"
16