34 lines
416 B
Bash
34 lines
416 B
Bash
#!/bin/bash
|
|
# Copyright 2014 (c) Anna Schumaker
|
|
|
|
function read_config
|
|
{
|
|
cat ../config | grep ^$1 | awk -F= '{print $2}' | tr -d ' '
|
|
}
|
|
|
|
function config_version
|
|
{
|
|
read_config CONFIG_VERSION
|
|
}
|
|
|
|
function config_debug
|
|
{
|
|
read_config CONFIG_DEBUG
|
|
}
|
|
|
|
function test_success
|
|
{
|
|
echo "Success!"
|
|
exit 0
|
|
}
|
|
|
|
function test_failed
|
|
{
|
|
echo "FAILED =("
|
|
on_failed
|
|
exit 1
|
|
}
|
|
|
|
cd $(dirname $0)
|
|
echo -n "Testing $(basename $0) ... "
|