1263646Sbapt#!/bin/sh 2263646Sbapt 3263646SbaptPROG=${TEST_BINARY_DIR}/test_schema 4263646Sbaptrm /tmp/_ucl_test_schema.out ||true 5298166Sbapt_succeed=0 6298166Sbapt_tests=0 7263646Sbaptfor i in ${TEST_DIR}/schema/*.json ; do 8263646Sbapt _name=`basename $i` 9263646Sbapt printf "running schema test suite $_name... " 10298166Sbapt $PROG >> /tmp/_ucl_test_schema.out < $i 11298166Sbapt if [ $? -eq 0 ] ; then 12298166Sbapt echo "OK" 13298166Sbapt _succeed=$(($_succeed + 1)) 14298166Sbapt else 15298166Sbapt echo "Fail" 16298166Sbapt fi 17298166Sbapt _tests=$(($_tests + 1)) 18263646Sbaptdone 19298166Sbapt 20298166Sbaptif [ $_tests -ne $_succeed ] ; then 21298166Sbapt exit 1 22298166Sbaptfi 23