test-all-simultaneous
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. #! /bin/sh
  2. NS=../../ns
  3. ALLSCHEDULERS="List Calendar Heap Splay Map"
  4. tlist=""
  5. quiet=""
  6. while test $# -ge 1
  7. do
  8. case $1 in
  9. quiet|QUIET) quiet=QUIET;;
  10. *) tlist="$tlist $1";;
  11. esac
  12. shift
  13. done
  14. if test "$tlist" = ""; then
  15.     tlist=$ALLSCHEDULERS
  16. fi
  17. echo Tests: $tlist
  18. some_failed=false
  19. for sched in $tlist; do
  20.     echo Running test $sched:
  21.     echo $NS test-suite-simultaneous.tcl $sched $quiet
  22.     if $NS test-suite-simultaneous.tcl $sched $quiet; then
  23. echo Test output agrees with reference output
  24.     else
  25. some_failed=true
  26. echo Test output differs from reference output
  27. echo "See URL "http://www.isi.edu/nsnam/ns/ns-problems.html"."
  28.     fi
  29. done
  30. if test "$some_failed" = true ; then
  31. echo Some test failed.
  32. exit 1
  33. else
  34. echo All test output agrees with reference output.
  35. exit 0
  36. fi
  37.