#!/bin/sh
#########
# run_test
#

./setup.sh 1>/dev/null 2>&1

# a_run type
a_run()
{
    echo "---running $1 " > $1.out
    ./$1.sh 1 >> $1.out 2>& 1
    `./$1.ck`
    if [ $? -eq 0 ]; then
       echo "   creddy_tests, $1 PASSED"
    else
       echo "   creddy-tests, $1 FAILED"
    fi
}

a_run verify
a_run roles
a_run attribute
a_run keyid
a_run generate
a_run display
a_run attribute_rule
