prepare_test()
{ 
    return
} 

run_test()
{
    test_script="$1"
    export TOP_BUILDDIR="$ADTTMP"
    export TOP_SRCDIR="$ADTTMP"
    cp -a test "$ADTTMP/test"
    ln -s /usr/bin "$ADTTMP/src"
    rc=0
    cd "$ADTTMP/test"
    echo -n "$test_script ... "
    : > "${test_script}.out"
    if ! prepare_test
    then
        echo ERROR
    elif ./"$test_script" 2>>"${test_script}.out"
    then
        echo ok
    else
        echo FAIL
        rc=1
    fi
    sed -e 's/^/| /' < "${test_script}.out"
    return $rc
}

# vim:ts=4 sw=4 et
