File: runloop.sh

package info (click to toggle)
fpga-icestorm 0~20250207git7fbf8c0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,440 kB
  • sloc: python: 28,401; cpp: 4,970; sh: 2,594; ansic: 1,206; makefile: 697; xml: 16
file content (19 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

i=0
while true; do
	echo; git diff cached_*.txt | diffstat
	echo; echo -n "[$(date '+%H:%M:%S')] Iteration $(( ++i )) "
	{ echo; echo; echo; echo; echo; echo; echo "Iteration $i"; date; } >> runloop.log
	if make clean > >( gawk '{ print >> "runloop.log"; printf("x"); fflush(""); }'; ) 2>&1 &&
		make -j6 > >( gawk '{ print >> "runloop.log"; printf("m"); fflush(""); }'; ) 2>&1 &&
		make -j6 check > >( gawk '{ print >> "runloop.log"; if (NR % 100 == 0) printf("c"); fflush(""); }'; ) 2>&1
	then
		echo -n " OK"
	else
		echo " ERROR"; echo
		tail runloop.log
		exit 1
	fi
done