File yast-help-test.sh of Package yast-help-test
#!/bin/bash
# aktiviert job control
set -m
for module in `/sbin/yast -l |grep -v "Available modules"` ; do
echo "=== testing yast $module... ==="
/usr/lib/YaST2/bin/y2base $module '("help")' ncurses &>/dev/null &
pid=$!
sleep 10 && jobs -l |grep -v Done |grep $pid >/dev/null && \
echo "*** $module still running ***" && \
failed="$failed#Commandline for $module" && kill $pid && sleep 1 && kill -9 $pid || true
fg || true # let the backgrounded job fetch its kill signal
done