File: smoke

package info (click to toggle)
sockstat 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: ansic: 640; makefile: 14; sh: 13
file content (20 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

exec 2>&1

set -e

test_sockstat_4() {
  ofile=output.ipv4
  sockstat -4 > $ofile
  assertEquals "$ofile: ASCII text" "$(file $ofile)"
}

test_sockstat_6() {
  ofile=output.ipv6
  sockstat -6 > $ofile
  assertEquals "$ofile: ASCII text" "$(file $ofile)"
}

. shunit2