ocarina/tests/version

25 lines
374 B
Bash
Executable File

#!/bin/bash
# Copyright 2014 (c) Anna Schumaker.
. $(dirname $0)/_functions
# Find version
version=$(config_version)
[ $(config_debug) == "True" ] && version="$version-debug"
# Run test
out=$(./src/version)
# Analyze result
[ "$version" == "$out" ] && test_success
function on_failed
{
echo " Expected version: $version"
echo " Actual version: $out"
}
test_failed