#!/bin/bash

#copy somewhere and adjust the paths!

ATSPATH=../../ATS
T3Q_CONFIG=../config/t3q_stf409.xml

svn up $ATSPATH

## start script
cd $ATSPATH


#run on positive syntactic tests
for i in `find . -name "Syn*.ttcn"`; do
    t3q --config $T3Q_CONFIG --profile stf409 $i | grep WARNING;
done;

#run on positive semantic tests
for i in `find . -name "Sem*.ttcn"`; do
    t3q --config $T3Q_CONFIG --profile stf409 $i | grep WARNING;
done;

#run on negative semantic tests
for i in `find . -name "NegSem*.ttcn"`; do
    t3q --config $T3Q_CONFIG --profile stf409 $i | grep WARNING;
done;
