#!/bin/sh
#########
# run_test
#
rm -rf *.out *.xml
 
# a_run type #attr
a_run()
{
    cp $1_attr.xml_save $1_attr.xml
    ./show.sh $1_attr.xml 1> $1.out 2>& 1
    result=`grep "<-" $1.out 2>/dev/null | wc -l`
    if [ $result -eq $2 ]; then
       echo "   attr_tests, $1 PASSED"
    else
       echo "   attr-tests, $1 FAILED"
    fi
}

a_run privilege 6
a_run abac 1
