test_uboone_mains.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 testdir=$(dirname $(readlink -f $BASH_SOURCE))
4 topdir=$(dirname $testdir)
5 
6 failed=""
7 for try in $topdir/pgrapher/experiment/uboone/{wct,wcls}-*.jsonnet
8 do
9  echo $try
10  time jsonnet -J $topdir $try >/dev/null
11  if [ "$?" != "0" ] ; then
12  echo "failed: $try"
13  failed="$failed $try"
14  fi
15 done
16 if [ -n "$failed" ] ; then
17  exit 1
18 fi