chiark / gitweb /
test scripts: arg handling
[hippotat.git] / test / run-client
index 9396c4eb6b8b9508ceb4da4cb6334b7fe13c5fa1..8844200c19ffdd3dd4fa6b8da5f74092da5e80ee 100755 (executable)
@@ -1,3 +1,10 @@
 #!/bin/sh
+# Copyright 2021 Ian Jackson and contributors to Hippotat
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
+
 set -e
-target/debug/hippotat --config src/test/test.cfg --debug
+slug=$1; if [ $# -gt 0 ]; then shift; fi
+
+ip netns exec hippotat-t-$slug-client \
+target/debug/hippotat --config src/test/test.cfg --debug "$@"