From d2ab4a81edda729ea64c52ff6175844f815d82fe Mon Sep 17 00:00:00 2001 From: Dmitry Burmistrov Date: Thu, 22 Sep 2016 14:55:14 +0300 Subject: [PATCH] Remove tests stuff Change-Id: Ia80b3f5985e187aa68a4d713abfdeb86376d4330 Related-Bug: #1602240 --- tests/runtests.sh | 54 ----------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100755 tests/runtests.sh diff --git a/tests/runtests.sh b/tests/runtests.sh deleted file mode 100755 index 689f271..0000000 --- a/tests/runtests.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -x - -RES=0 -DISTR='undefined' - -get_distr_name() { -egrep -qi 'centos|redhat' /etc/*-release && DISTR='CentOS' -grep -qi 'ubuntu' /etc/*-release && DISTR='Ubuntu' -} - -case $1 in - openstack-dashboard|openstack-dashboard-apache) - get_distr_name - - if [ "$DISTR" = "Ubuntu" ] && [ "$1" = "openstack-dashboard" ]; then - echo 'Test is not defined.' - exit 0 - fi - - if [ "$DISTR" = "Ubuntu" ] || [ "$DISTR" = "Debian" ] ; then - apache="apache2" - elif [ "$DISTR" = "CentOS" ]; then - apache="httpd" - chown -R apache:apache /usr/share/openstack-dashboard - sed -i "s/LOCAL_PATH = .*/LOCAL_PATH = '\/tmp'/g" /etc/openstack-dashboard/local_settings - sed -i 's/ALLOWED_HOSTS.*/ALLOWED_HOSTS = ["127.0.0.1"]/' /etc/openstack-dashboard/local_settings - else - echo "Cant identify distr. Check me." - exit 1 - fi - - service $apache restart - if [ "$DISTR" = "Ubuntu" ] || [ "$DISTR" = "Debian" ] ; then - # Disabled due to changes in postinstall scripts. - #curl http://127.0.0.1/horizon/auth/login/ 2>&1 | grep 'Login - OpenStack Dashboard' - echo 'Enable sites manually.' - elif [ "$DISTR" = "CentOS" ]; then - curl http://127.0.0.1/dashboard/auth/login/ 2>&1 | grep 'Login - OpenStack Dashboard' - else - echo "Cant identify distr. Check me." - exit 1 - fi - RES=$? - ;; - python-django-horizon) - python -c "import horizon" - RES=$? - ;; - *) - echo "test not defined, skipping..." - ;; -esac - -exit $RES -- 2.45.2