diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-18 17:41:24 +0000 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-19 09:33:09 +0000 |
commit | 646dcf88fb2a79a9567f3fadf9711e2e6bc58176 (patch) | |
tree | 8d23b425ff558ab9f94a678d9b440f5bf2d06a91 /tests/12_socket_remove.sh | |
parent | 1d7bbf4e3a75a6be688090c9b06e11fca849cdce (diff) | |
download | tbdiff-646dcf88fb2a79a9567f3fadf9711e2e6bc58176.tar.gz |
Remove old tests and any code specific to those tests
Diffstat (limited to 'tests/12_socket_remove.sh')
-rwxr-xr-x | tests/12_socket_remove.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/12_socket_remove.sh b/tests/12_socket_remove.sh deleted file mode 100755 index d594b2a..0000000 --- a/tests/12_socket_remove.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -TEST_ID="12" -TEST_NAME="Socket device removal" - -CREATE=`pwd`/$1 -DEPLOY=`pwd`/$2 -TEST_TOOLS=$3 - -. ./test_lib.sh - -############# Test specific code ############ -# sockets can only be moved, linked or removed by the file system -# creation is only performed by the program that acts as the server -# tbdiff won't be doing that so the only sensible operation is removal -SOCKBIND=`mktemp` -setup_origin () { - # sockbind creates a socket then writes any data written to it to stdout - # have to fork it because it will never stop, have to wait for it to - # make the socket - gcc sockbind.c -o $SOCKBIND 2>/dev/null >/dev/null - $SOCKBIND "$ORIGIN/toremove" & - SOCKBINDPID=$! - until test -S "$ORIGIN/toremove"; do :; done - kill $SOCKBINDPID && wait $SOCKBINDPID 2>/dev/null - rm -f $SOCKBIND -} - -setup_target () { - true -} - -create_test_return () { - test $1 = 0 -} - -check_results () { - test ! -S "$ORIGIN/toremove" -} - -############################################# -main $@ |