#!/bin/bash

ATS=../../ATS

svn up $ATS

echo -n "Total number of conformance tests: "
find $ATS -name "*.ttcn" | wc -l | sed -e 's/ //g'

echo -n "Number of positive syntactic conformance tests: "
find $ATS -name "Syn*.ttcn" | wc -l | sed -e 's/ //g'

echo -n "Number of negative syntactic conformance tests: "
find $ATS -name "NegSyn*.ttcn" | wc -l | sed -e 's/ //g'

echo -n "Number of positive semantic conformance tests: "
find $ATS -name "Sem*.ttcn" | wc -l | sed -e 's/ //g'

echo -n "Number of negative semantic conformance tests: "
find $ATS -name "NegSem*.ttcn" | wc -l | sed -e 's/ //g'

echo -n "Total number of clauses (incl. subsection and subsubsections) in the TTCN-3 standard: "
CLAUSES=`cat ../config/references.properties | wc -l | sed -e 's/ //g'`
echo `expr $CLAUSES - 1`

echo -n "Total number of clauses (at least partially) covered: "
for i in `find $ATS -name "*.ttcn"`; do echo $(dirname $i); done | uniq | wc -l | sed -e 's/ //g'

