2 # Copyright (c) 2015 Marcus Rohrmoser http://mro.name/me. All rights reserved.
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # insipired by https://github.com/lehmannro/assert.sh but much more primitive.
20 # terminal colors (require bash)
21 # http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
22 # http://wiki.bash-hackers.org/scripting/terminalcodes
26 FGC_GREEN
="\033[1;32m"
27 FGC_YELLOW
="\033[1;33m"
29 FGC_PURPLE
="\033[1;35m"
31 FGC_WHITE
="\033[1;37m"
34 BGC_GREEN
="\033[7;32m"
35 BGC_YELLOW
="\033[7;33m"
37 BGC_PURPLE
="\033[7;35m"
39 BGC_WHITE
="\033[7;37m"
42 echo "${BGC_RED}Assert fail ($1): $2${FGC_NONE}"