blob: ebb3ae702fe8015baba1448f66894b5acd5573bd [file] [log] [blame]
#!/bin/bash
#
# Copyright 2016 Google Inc. All Rights Reserved.
. ./wvtest/wvtest.sh
SSDP=./host-ssdptax
FIFO="/tmp/ssdptax.test.$$"
WVSTART "ssdptax test"
python ./ssdptax-test-server.py "$FIFO" 1 &
sleep 0.5
WVPASSEQ "$($SSDP -t $FIFO)" "ssdp 00:00:00:00:00:00 Test Device;Google Fiber ssdptax"
rm "$FIFO"
python ./ssdptax-test-server.py "$FIFO" 2 &
sleep 0.5
WVPASSEQ "$($SSDP -t $FIFO)" "ssdp 00:00:00:00:00:00 REDACTED;server type"
rm "$FIFO"
python ./ssdptax-test-server.py "$FIFO" 3 &
sleep 0.5
WVPASSEQ "$($SSDP -t $FIFO)" "ssdp 00:00:00:00:00:00 Unknown;server type"
rm "$FIFO"