Update all_test.sh

pull/118/head
midoks 3 years ago
parent d098bc90f5
commit 41d54cc4c9
  1. 124
      plugins/php/all_test.sh

@ -3,69 +3,9 @@ export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local
DIR=$(cd "$(dirname "$0")"; pwd) DIR=$(cd "$(dirname "$0")"; pwd)
PHP_VER=53 # cd /www/server/mdserver-web/plugins/php && bash all_test.sh
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
PHP_VER=54
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
PHP_VER=55
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
PHP_VER=56
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
PHP_VER=53
PHP_VER=70
echo "php${PHP_VER} -- start" echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER cd $DIR && /bin/bash install.sh install $PHP_VER
@ -80,62 +20,24 @@ done
echo "php${PHP_VER} -- end" echo "php${PHP_VER} -- end"
PHP_VER=71
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
PHP_VER=72 PHP_VER_LIST=(54 55 56 71 72 73 74 80 81)
echo "php${PHP_VER} -- start" # PHP_VER_LIST=(81)
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') for PHP_VER in ${PHP_VER_LIST[@]}; do
cd $DIR && /bin/bash install.sh install $PHP_VER echo "php${PHP_VER} -- start"
for ii in $cmd_ext if [ -d /www/server/php/${PHP_VER} ];then
do cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
for ii in cmd_ext
do
if [ "install.sh" == "$ii" ];then if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log echo '' > /tmp/t.log
else else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER cd $DIR/versions/$PHP_VER && bash $ii install ${PHP_VER}
fi fi
done done
echo "php${PHP_VER} -- end"
PHP_VER=73
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi fi
echo "php${PHP_VER} -- end"
done done
echo "php${PHP_VER} -- end"
PHP_VER=74
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
rm -rf /tmp/t.log rm -rf /tmp/t.log

Loading…
Cancel
Save