#!/bin/sh
#
#echo "*****************************************************"
#echo "Ez egy harmadik tok primitiv automatizalt teszter V0.0"
#echo "ami leellenorzi mi lesz a TTTCN kulcsszavakbol..."
#echo "*****************************************************"


function_check_prefix()
{
    if $GREP -q "extern const INTEGER& $1__;" ./Test283.hh
    then
	if $GREP -q "const INTEGER& $1__ " ./Test283.cc
        then
            if $GREP -q " const INTEGER& $1__() const" ./Test283T.hh
            then Verdict="pass"
            else Verdict="fail: in Test283T.hh file"
            fi
        else Verdict="fail: in Test283.cc file"
        fi
    else Verdict="fail: in Test283.hh file"
    fi
    if [ "$Verdict" != "pass" ]
    then
	echo "ASN1:Test283:Keyword:$1 = Verdict: $Verdict" >> keyword_verdict_file
    fi
}

rm -f keyword_verdict_file

function_check_prefix "action"
function_check_prefix "activate"
function_check_prefix "address"
function_check_prefix "alive"
function_check_prefix "all"
function_check_prefix "alt"
function_check_prefix "altstep"
function_check_prefix "and4b"
function_check_prefix "and"
function_check_prefix "any"
function_check_prefix "anytype"
function_check_prefix "apply"
function_check_prefix "bit2hex"
function_check_prefix "bit2int"
function_check_prefix "bit2oct"
function_check_prefix "bit2str"
function_check_prefix "bitstring"
function_check_prefix "boolean"
function_check_prefix "break"
function_check_prefix "call"
function_check_prefix "case"
function_check_prefix "catch"
function_check_prefix "char2int"
function_check_prefix "char2oct"
function_check_prefix "char"
function_check_prefix "charstring"
function_check_prefix "check"
function_check_prefix "clear"
function_check_prefix "complement"
function_check_prefix "component"
function_check_prefix "connect"
function_check_prefix "const"
function_check_prefix "continue"
function_check_prefix "control"
function_check_prefix "create"
function_check_prefix "deactivate"
function_check_prefix "decomp"
function_check_prefix "default"
function_check_prefix "derefers"
function_check_prefix "disconnect"
function_check_prefix "display"
function_check_prefix "do"
function_check_prefix "done"
function_check_prefix "else"
function_check_prefix "encode"
function_check_prefix "enumerated"
function_check_prefix "error"
function_check_prefix "except"
function_check_prefix "exception"
function_check_prefix "execute"
function_check_prefix "extends"
function_check_prefix "extension"
function_check_prefix "external"
function_check_prefix "fail"
function_check_prefix "false"
function_check_prefix "float2int"
function_check_prefix "float2str"
function_check_prefix "float"
function_check_prefix "for"
function_check_prefix "from"
function_check_prefix "function"
function_check_prefix "getcall"
function_check_prefix "getreply"
function_check_prefix "getverdict"
function_check_prefix "goto"
function_check_prefix "group"
function_check_prefix "halt"
function_check_prefix "hex2bit"
function_check_prefix "hex2int"
function_check_prefix "hex2oct"
function_check_prefix "hex2str"
function_check_prefix "hexstring"
function_check_prefix "if"
function_check_prefix "ifpresent"
function_check_prefix "import"
function_check_prefix "in"
function_check_prefix "inconc"
function_check_prefix "infinity"
function_check_prefix "inout"
function_check_prefix "int2bit"
function_check_prefix "int2char"
function_check_prefix "int2float"
function_check_prefix "int2hex"
function_check_prefix "int2oct"
function_check_prefix "int2str"
function_check_prefix "int2unichar"
function_check_prefix "integer"
function_check_prefix "interleave"
function_check_prefix "ischosen"
function_check_prefix "ispresent"
function_check_prefix "isvalue"
function_check_prefix "kill"
function_check_prefix "killed"
function_check_prefix "label"
function_check_prefix "language"
function_check_prefix "length"
function_check_prefix "lengthof"
function_check_prefix "log2str"
function_check_prefix "log"
function_check_prefix "map"
function_check_prefix "match"
function_check_prefix "message"
function_check_prefix "mixed"
function_check_prefix "mod"
function_check_prefix "modifies"
function_check_prefix "module"
function_check_prefix "modulepar"
function_check_prefix "mtc"
function_check_prefix "noblock"
function_check_prefix "none"
function_check_prefix "not4b"
function_check_prefix "not"
function_check_prefix "nowait"
function_check_prefix "null"
function_check_prefix "objid"
function_check_prefix "oct2bit"
function_check_prefix "oct2char"
function_check_prefix "oct2hex"
function_check_prefix "oct2int"
function_check_prefix "oct2str"
function_check_prefix "octetstring"
function_check_prefix "of"
function_check_prefix "omit"
function_check_prefix "on"
function_check_prefix "optional"
function_check_prefix "or4b"
function_check_prefix "or"
function_check_prefix "out"
function_check_prefix "override"
function_check_prefix "param"
function_check_prefix "pass"
function_check_prefix "pattern"
function_check_prefix "permutation"
function_check_prefix "port"
function_check_prefix "procedure"
function_check_prefix "raise"
function_check_prefix "read"
function_check_prefix "receive"
function_check_prefix "record"
function_check_prefix "recursive"
function_check_prefix "refers"
function_check_prefix "regexp"
function_check_prefix "rem"
function_check_prefix "repeat"
function_check_prefix "replace"
function_check_prefix "reply"
function_check_prefix "return"
function_check_prefix "rnd"
function_check_prefix "running"
function_check_prefix "runs"
function_check_prefix "select"
function_check_prefix "self"
function_check_prefix "send"
function_check_prefix "sender"
function_check_prefix "set"
function_check_prefix "setverdict"
function_check_prefix "signature"
function_check_prefix "sizeof"
function_check_prefix "start"
function_check_prefix "stop"
function_check_prefix "str2bit"
function_check_prefix "str2float"
function_check_prefix "str2hex"
function_check_prefix "str2int"
function_check_prefix "str2oct"
function_check_prefix "subset"
function_check_prefix "substr"
function_check_prefix "superset"
function_check_prefix "system"
function_check_prefix "template"
function_check_prefix "testcase"
function_check_prefix "timeout"
function_check_prefix "timer"
function_check_prefix "to"
function_check_prefix "trigger"
function_check_prefix "true"
function_check_prefix "type"
function_check_prefix "unichar2char"
function_check_prefix "unichar2int"
function_check_prefix "union"
function_check_prefix "universal"
function_check_prefix "unmap"
function_check_prefix "value"
function_check_prefix "valueof"
function_check_prefix "var"
function_check_prefix "variant"
function_check_prefix "verdicttype"
function_check_prefix "while"
function_check_prefix "with"
function_check_prefix "xor4b"
function_check_prefix "xor"

#echo "*****************************************************"

if [ -f ./keyword_verdict_file ] && $GREP -q "fail" ./keyword_verdict_file
then TestCaseVerdict="fail"
else
    TestCaseVerdict="pass"
    rm -f keyword_verdict_file
fi

echo "ASN1:Test283:$1 = Verdict: $TestCaseVerdict"
#echo "TEST CASE VERDICT = $TestCaseVerdict"
