File: t-basic

package info (click to toggle)
hippotat 1.2.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: sh: 423; makefile: 130; perl: 84; python: 79; ansic: 34
file content (14 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Copyright 2021-2022 Ian Jackson and contributors to Hippotat
# SPDX-License-Identifier: GPL-3.0-or-later WITH LicenseRef-Hippotat-OpenSSL-Exception
# There is NO WARRANTY.

set -e
. "${0%/*}"/tcommon
test-prep

start-server
start-client

in-ns client ping -i 0.1 -c 10 192.0.2.1 >$tmp/ping
grep ' 0% packet loss' $tmp/ping