print-fingerprints 525 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. #
  3. # Run the ethernet test simulations, and grep the scenario line, errors and fingerprints
  4. #
  5. INET_ROOT=../../..
  6. #opp_run -l $INET_ROOT/src/inet -n $INET_ROOT/src:. -u Cmdenv -r 1 -x General -g
  7. simulate() {
  8. name=$1
  9. numruns=$2
  10. for (( i=0; i<$numruns; i++ )); do
  11. echo
  12. echo "Running $name/$i: "
  13. opp_run -l $INET_ROOT/src/inet -n $INET_ROOT/src:. -u Cmdenv -f omnetpp-$name.ini -r $i | grep -E '<!>|Scenario:'
  14. done
  15. }
  16. simulate twohosts 48
  17. simulate switch 12
  18. simulate hub 12