#!/bin/sh
# Corre example11 sobre todos los netlists de siru/corpus/spice.
# Sale con 1 si alguno tiene texto no tokenizable.
cd "$(dirname "$0")" || exit 2
[ -x ./example11 ] || make || exit 2
falla=0
for f in ../../../siru/corpus/spice/*.cir; do
  ./example11 "$f" 2>/dev/null | grep -a 'tokens OK' || { echo "FALLA: $f"; falla=1; }
done
exit $falla
