time for crab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
384 B

  1. #!/bin/bash
  2. cd build
  3. echo Running tests with $(nproc) threads...
  4. ls tests | parallel "mkdir {}.d; cd {}.d; ../sim --router ../../router ../tests/{} &> test.log" &>/dev/null
  5. echo Complete
  6. for x in $(ls tests); do
  7. if cat $x.d/*.log | grep PASS &>/dev/null; then
  8. tput setaf 2
  9. echo $x pass
  10. else
  11. tput setaf 1
  12. echo $x fail
  13. fi
  14. tput sgr0
  15. done