#!/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

