Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
export LANG=C
if [ $# -ge 1 ] ; then
CONCURRENCY=$1
else
CONCURRENCY=16
fi
for ((i=0;1;i++)) ; do
if make -j$CONCURRENCY >/dev/null 2>>log.txt ; then
echo "$i: $(date): OK" >>log.txt
else
echo "$i: $(date): NG" >>log.txt
fi
dmesg >dmesg.txt
make clean >/dev/null 2>>log.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment