#!/usr/bin/env bash
#
# NAME
#        tests.sh - Test shell scripts
#
# DESCRIPTION
#        Runs all the test scripts in this directory.
#
# BUGS
#        https://github.com/l0b0/tilde/issues
#
# COPYRIGHT
#        Copyright (C) 2011 Victor Engmark
#
#        This program is free software: you can redistribute it and/or modify
#        it under the terms of the GNU General Public License as published by
#        the Free Software Foundation, either version 3 of the License, or
#        (at your option) any later version.
#
#        This program is distributed in the hope that it will be useful,
#        but WITHOUT ANY WARRANTY; without even the implied warranty of
#        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#        GNU General Public License for more details.
#
#        You should have received a copy of the GNU General Public License
#        along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################

set -o errexit
set -o nounset
set -o noclobber
shopt -s extglob

directory="$(dirname -- "$(readlink -fn -- "$0")")"

. "$directory/../scripts/functions.sh"

cd -- "$directory"
for path in !(tests.sh)
do
    ./"$path"
done
cd - >/dev/null

#!/usr/bin/env bash
#
# NAME
#        tests.sh - Test shell scripts
#
# DESCRIPTION
#        Runs all the test scripts in this directory.
#
# BUGS
#        https://github.com/l0b0/tilde/issues
#
# COPYRIGHT
#        Copyright (C) 2011-2012 Victor Engmark
#
#        This program is free software: you can redistribute it and/or modify
#        it under the terms of the GNU General Public License as published by
#        the Free Software Foundation, either version 3 of the License, or
#        (at your option) any later version.
#
#        This program is distributed in the hope that it will be useful,
#        but WITHOUT ANY WARRANTY; without even the implied warranty of
#        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#        GNU General Public License for more details.
#
#        You should have received a copy of the GNU General Public License
#        along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################

set -o errexit
set -o nounset
set -o noclobber
shopt -s extglob

directory="$(dirname -- "$(readlink -fn -- "$0")")"

. "$directory/../scripts/functions.sh"

cd -- "$directory"
for path in !(tests.sh)
do
    echo "$(basename -- "$path")"
    ./"$path"
done
cd - >/dev/null

Print test filename to get more context
Print test filename to get more context
