Commit 1465a791 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve test_play.sh

parent d34ff85a
......@@ -11,12 +11,14 @@ fatal()
if [ "$1" == "--hasher" ] ; then
shift
B="$2" ; [ -n "$B" ] && B="-b $B"
loginhsh -i -t -p epm $B -r true curl
loginhsh -i -t -p epm $B -r true curl iputils alien
loginhsh -t -p epm $B -o
#exit
HDIR=$(loginhsh -q -t -d -p epm $B)
cp -a ../ $HDIR/chroot/.in
cp -a ../* $HDIR/chroot/.in
loginhsh -t -p epm $B -o -r 'bash -x /.in/tests/test_play.sh --local'
exit
#
loginhsh -c -t -p epm $B
exit
fi
......@@ -26,14 +28,20 @@ if [ "$1" != "--local" ] ; then
exit
fi
echo "Check Internet connection ..."
cat /etc/resolv.conf
ping -c ya.ru
ping -c 8.8.8.8
if [ "$1" == "--silent" ] ; then
epm play --list-all --short | while read app ; do
echo -n "Installing $app ... "
epm play --list-all --short | while read app ; do
echo -n "Silent installing $app ... "
epm play $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; }
echo -n " Removing $app ... "
epm play --remove $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; }
done
exit
done
exit
fi
epm play --list-all --short | while read app ; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment