File: test-pseudotcp-random.sh

package info (click to toggle)
libnice 0.1.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,572 kB
  • sloc: ansic: 35,444; sh: 4,728; makefile: 523; xml: 113; python: 28
file content (19 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

if test -n "${BUILT_WITH_MESON}"; then
  TEST_PSEUDOTCP=$1
else
  TEST_PSEUDOTCP=./test-pseudotcp
fi

cleanup() {
  rm -rf rand rand-copy
}

trap cleanup EXIT

dd if=/dev/urandom of=rand count=1024 ibs=1024
"${TEST_PSEUDOTCP}" rand rand-copy
diff rand rand-copy