# only runs under SC.

0 m2jr -sc timer.m
0 jrc *.jr
0 javac jrGen/*.java
0 jrrun test > sc.out 2>&1
# output hard to predict so just some sanity checks
# also program won't finish before it shuts itself down
# (so don't check for "simulated ended at")
0 grep "simulation started at" sc.out >/dev/null
0 grep "sleeping" sc.out >/dev/null
0 grep "awake" sc.out >/dev/null

0 rm -rf jrGen core *.out timer.jr m_condvar.jr
