aboutsummaryrefslogtreecommitdiffstats
path: root/test.d/mdsinitrc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-11 05:47:10 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-11 05:47:10 +0200
commit4f8ac368dbead32aaa30684c29df3afa0a8ba17f (patch)
tree60a1007dba7a0f2456c44f7152e68b274f4bb3f2 /test.d/mdsinitrc
parentm (diff)
downloadmds-4f8ac368dbead32aaa30684c29df3afa0a8ba17f.tar.gz
mds-4f8ac368dbead32aaa30684c29df3afa0a8ba17f.tar.bz2
mds-4f8ac368dbead32aaa30684c29df3afa0a8ba17f.tar.xz
add fork_for_safety option + beginning of kernel-based keyboard
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test.d/mdsinitrc')
-rwxr-xr-xtest.d/mdsinitrc22
1 files changed, 14 insertions, 8 deletions
diff --git a/test.d/mdsinitrc b/test.d/mdsinitrc
index d809c24..ee5bb60 100755
--- a/test.d/mdsinitrc
+++ b/test.d/mdsinitrc
@@ -30,14 +30,20 @@ g=
if [ -z "${NO_VALGRIND}" ]; then
g="valgrind --leak-check=full --show-leak-kinds=all"
fi
-$g mds-respawn --interval=10 \
- { sleep 4s } \
- { sleep 1m } \
- { $g mds-echo } \
- &
-if which terminator 2>/dev/null >&2; then
- exec terminator
+if [ -z "${MDS_TEST}" ]; then
+ $g mds-respawn --interval=10 \
+ { sleep 4s } \
+ { sleep 1m } \
+ { $g mds-echo } \
+ &
+ if which terminator 2>/dev/null >&2; then
+ exec terminator
+ else
+ exec xterm
+ fi
+elif [ "${MDS_TEST}" = kkbd ]; then
+ exec $g mds-kkbd
else
- exec xterm
+ echo 'Bad value of ${MDS_TEST}'
fi