f98d12eea196ed4ae3625893b330e0c9ca6cfca9
[platform/upstream/libnice.git] / tests / test-pseudotcp-random.sh
1 #!/bin/sh
2
3 set -e
4
5 if test -n "${BUILT_WITH_MESON}"; then
6   TEST_PSEUDOTCP=$1
7 else
8   TEST_PSEUDOTCP=./test-pseudotcp
9 fi
10
11 cleanup() {
12   rm -rf rand rand-copy
13 }
14
15 trap cleanup EXIT
16
17 dd if=/dev/urandom of=rand count=1024 ibs=1024
18 "${TEST_PSEUDOTCP}" rand rand-copy
19 diff rand rand-copy