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