summaryrefslogtreecommitdiffstats
path: root/tests/test.sh
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-08-12 22:48:58 +0200
committerpgen <p.gen.progs@gmail.com>2018-08-14 00:09:39 +0200
commit893b3ce0f54b1810610261f5ab5b16dd854c9e8a (patch)
tree2f76ff5d76d6077755a91bb79b0f2df7ae688816 /tests/test.sh
parent3b1c68dc1036eba0809b169a5f5571b9703366ba (diff)
Add a blacklist mechanism for some failing tests
On some systems ptylie behaves wrongly. This leads to some tests failing where they should succeed.
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-xtests/test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test.sh b/tests/test.sh
index e23de92..e48d6ee 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -9,7 +9,7 @@ upsearch () {
while [ $n -gt 0 ]; do
test -e "$directory/$1" && echo "$directory" && return
directory="$directory/.."
- n = $(expr n - 1)
+ n=$(expr $n - 1)
done
}
@@ -28,6 +28,7 @@ fi
LOG=${PWD}.log
PTYLIE=${PTYLIE_PATH:+${PTYLIE_PATH}/}ptylie
HVLT=${HLVT_PATH:+${HLVT_PATH}/}hlvt
+BL=$(uname -s).bl
# Check for the presence of required programs
# """""""""""""""""""""""""""""""""""""""""""
@@ -43,6 +44,13 @@ for PROG in $PTYLIE $HLVT; do
fi
done
+# Ignore blacklisted tests for this OS.
+# These tests probably need a fixed version of ptylie to work
+# """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+if [ -f "$BL" ]; then
+ grep $1 $BL >/dev/null 2>&1 && exit 0
+fi
+
# Launch the test
# """""""""""""""
clear