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

improve test_play.sh

parent d34ff85a
...@@ -11,12 +11,14 @@ fatal() ...@@ -11,12 +11,14 @@ fatal()
if [ "$1" == "--hasher" ] ; then if [ "$1" == "--hasher" ] ; then
shift shift
B="$2" ; [ -n "$B" ] && B="-b $B" 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 #exit
HDIR=$(loginhsh -q -t -d -p epm $B) 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' loginhsh -t -p epm $B -o -r 'bash -x /.in/tests/test_play.sh --local'
exit exit
#
loginhsh -c -t -p epm $B loginhsh -c -t -p epm $B
exit exit
fi fi
...@@ -26,14 +28,20 @@ if [ "$1" != "--local" ] ; then ...@@ -26,14 +28,20 @@ if [ "$1" != "--local" ] ; then
exit exit
fi fi
echo "Check Internet connection ..."
cat /etc/resolv.conf
ping -c ya.ru
ping -c 8.8.8.8
if [ "$1" == "--silent" ] ; then if [ "$1" == "--silent" ] ; then
epm play --list-all --short | while read app ; do epm play --list-all --short | while read app ; do
echo -n "Installing $app ... " echo -n "Silent installing $app ... "
epm play $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; } epm play $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; }
echo -n " Removing $app ... " echo -n " Removing $app ... "
epm play --remove $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; } epm play --remove $app </dev/null >/dev/null 2>/dev/null && echo -n "DONE" || { echo "ERROR" ; continue ; }
done done
exit exit
fi fi
epm play --list-all --short | while read app ; do 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