/Demo/rpc/test

http://unladen-swallow.googlecode.com/ · #! · 24 lines · 17 code · 7 blank · 0 comment · 0 complexity · d81199ce08a4b541e5ebe793834dcbb8 MD5 · raw file

  1. : ${PYTHON=python}
  2. : ${SERVER=charon.cwi.nl}
  3. set -xe
  4. $PYTHON -c 'from rpc import test; test()'
  5. $PYTHON -c 'from rpc import test; test()' ${SERVER}
  6. $PYTHON -c 'from rpc import testsvr; testsvr()' &
  7. PID=$!
  8. sleep 2
  9. $PYTHON -c 'from rpc import testclt; testclt()'
  10. kill -2 $PID
  11. $PYTHON -c 'from mountclient import test; test()'
  12. $PYTHON -c 'from mountclient import test; test()' gatekeeper.dec.com
  13. $PYTHON -c 'from nfsclient import test; test()'
  14. $PYTHON -c 'from nfsclient import test; test()' gatekeeper.dec.com
  15. $PYTHON -c 'from nfsclient import test; test()' gatekeeper.dec.com /archive
  16. $PYTHON -c 'from rnusersclient import test; test()' ''
  17. $PYTHON -c 'from rpc import testbcast; testbcast()'