17 lines
384 B
Bash
Executable File
17 lines
384 B
Bash
Executable File
#!/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
|