test_ncbi_namedpipe_connector.sh
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:1k
源码类别:
生物技术
开发平台:
C/C++
- #! /bin/sh
- # $Id: test_ncbi_namedpipe_connector.sh,v 1000.1 2004/02/12 21:56:40 gouriano Exp $
- exit_code=0
- client_log=test_namedpipe_con_client.log
- server_log=test_namedpipe_con_server.log
- rm -f $client_log $server_log
- CONN_DEBUG_PRINTOUT=ALL; export CONN_DEBUG_PRINTOUT
- test_ncbi_namedpipe_connector server >>$server_log 2>&1 &
- server_pid=$!
- trap 'kill -9 $server_pid' 1 2 15
- sleep 2
- $CHECK_EXEC test_ncbi_namedpipe_connector client >>$client_log 2>&1 || exit_code=1
- kill $server_pid || exit_code=2
- ( kill -9 $server_pid ) >/dev/null 2>&1
- if [ $exit_code != 0 ]; then
- if [ -s $client_log ]; then
- echo "=== $client_log ==="
- cat $client_log
- fi
- if [ -s $server_log ]; then
- echo "=== $server_log ==="
- cat $server_log
- fi
- fi
- rm ./.ncbi_test_con_pipename >/dev/null 2>&1
- exit $exit_code
- #
- # ===========================================================================
- # PRODUCTION $Log: test_ncbi_namedpipe_connector.sh,v $
- # PRODUCTION Revision 1000.1 2004/02/12 21:56:40 gouriano
- # PRODUCTION PRODUCTION: UPGRADED [CORE_001] Dev-tree R1.5
- # PRODUCTION
- # ===========================================================================
- #