#/bin/sh

exec 2>&1

set -e

test_rolo_version() {
    command="rolo -v"
    output="$($command)"
    echo "Output of command $command: '$output'"
    prog=$(grep AC_INIT\( configure.ac | cut -d[ -f2 | cut -d] -f1)
    version=$(grep AC_INIT\( configure.ac | cut -d[ -f3 | cut -d] -f1)
    echo "It must be: '$prog $version'"
    assertEquals "$prog $version" "$output"
}

. shunit2
