summaryrefslogtreecommitdiff
path: root/ubuntu/scripts
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2014-10-17 23:16:42 +1100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-10-24 08:19:56 +0000
commit8602c9c2280436c8ecad2fcccd8edfcf62b3497d (patch)
treed862aa8b52610d1ffef05f9abf7efb31d065b91d /ubuntu/scripts
parent37c624ef3c4319b7c6d0269b56e944302462c228 (diff)
leb-basic-graphics.yaml and basic-graphics-test.sh: Delete
Delete Basic Graphic Test on Linux Linaro ubuntu. Graphic now is not supported on Linux Linaro ubuntu platform. All images published are with solid command line interface. Test is now deleted accordingly. Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: Ie423c094799eec99ac96ca17e20dc5316f938800
Diffstat (limited to 'ubuntu/scripts')
-rwxr-xr-xubuntu/scripts/basic-graphics-test.sh170
1 files changed, 0 insertions, 170 deletions
diff --git a/ubuntu/scripts/basic-graphics-test.sh b/ubuntu/scripts/basic-graphics-test.sh
deleted file mode 100755
index ec828c7..0000000
--- a/ubuntu/scripts/basic-graphics-test.sh
+++ /dev/null
@@ -1,170 +0,0 @@
-#!/bin/bash
-#
-# Basic Graphics test cases
-#
-# Copyright (C) 2012, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Author: Ricardo Salveti <rsalveti@linaro.org>
-#
-
-DEFAULT_USER="linaro"
-
-source include/sh-test-lib
-
-set_lightdm_session() {
- session=$1
-
- # make sure no other config file is bypassing us
- rm -f /home/$DEFAULT_USER/.dmrc
- rm -rf /var/cache/lightdm
- rm -rf /var/lib/AccountsService/users
- dbus_user_path=`dbus-send --system --type=method_call --print-reply \
- --dest=org.freedesktop.Accounts /org/freedesktop/Accounts \
- org.freedesktop.Accounts.FindUserByName string:$DEFAULT_USER \
- | awk -F "\"" {'print $2'}`
- dbus-send --system --type=method_call --print-reply \
- --dest=org.freedesktop.Accounts ${dbus_user_path} \
- org.freedesktop.Accounts.User.SetXSession string:$session 1>&2
-}
-
-kill_xorg() {
- pid=`pidof /usr/bin/X`
- if [ "x$pid" != "x" ]; then
- kill -9 $pid 1>&2
- fi
- rm -f /tmp/.X0-lock
-}
-
-test_restore() {
- kill_xorg
- service lightdm stop 1>&2
- sleep 2
- service lightdm start 1>&2
- sleep 10 # give enough time to start
-}
-
-## Test case definitions
-
-# Validate that Xorg is running
-test_xorg() {
- TEST="xorg_running"
- if ! service lightdm status | grep -q "start\/running"; then
- service lightdm start 1>&2
- check_return_fail "lightdm start" && return 1
- sleep 10 # give enough time to start and possibly fail
- fi
-
- pidof "/usr/bin/X" 1>&2
- check_return_fail "Xorg not running" && return 1
-
- pass_test
-}
-
-# Validate that the board can run unity-2d
-test_unity2d() {
- TEST="unity_2d_running"
-
- service lightdm stop 1>&2
- sleep 2 # to die in peace
- set_lightdm_session ubuntu-2d
- service lightdm start 1>&2
- check_return_fail "lightdm start" && return 1
-
- sleep 120
- pidof "/usr/bin/unity-2d-panel" 1>&2
- check_return_fail "unity-2d-panel not running" && return 1
- pidof "/usr/bin/unity-2d-shell" 1>&2
- check_return_fail "unity-2d-shell not running" && return 1
-
- pass_test
-}
-
-# Validate that the board can run unity-3d
-test_unity3d() {
- TEST="unity_3d_running"
-
- service lightdm stop 1>&2
- sleep 2 # to die in peace
- set_lightdm_session ubuntu
- service lightdm start 1>&2
- check_return_fail "lightdm start" && return 1
-
- sleep 180
- pidof "/usr/bin/compiz" 1>&2
- check_return_fail "compiz not running" && return 1
- pidof "/usr/bin/gtk-window-decorator" 1>&2
- check_return_fail "gtk-window-decorator not running" && return 1
- pidof "/usr/lib/unity/unity-panel-service" 1>&2
- check_return_fail "unity-panel-service not running" && return 1
-
- pass_test
-}
-
-# Validate that the board is able to start unity 3d
-test_unity_support() {
- TEST="nux_tools_unity_support"
-
- service lightdm stop 1>&2
- kill_xorg
- sleep 2 # to die in peace
- (/usr/bin/X -verbose 10 :0 1>&2 &)
- export DISPLAY=:0.0
- check_return_fail "Xorg failed to start" && return 1
-
- sleep 5
- /usr/lib/nux/unity_support_test 1>&2
- check_return_fail "unity 3d is not supported" && return 1
-
- pass_test
-}
-
-# Validate that the board has a valid gles driver
-test_opengles_driver() {
- TEST="valid_not_mesa_opengles_driver"
-
- service lightdm stop 1>&2
- kill_xorg
- sleep 2 # to die in peace
- (/usr/bin/X -verbose 10 :0 1>&2 &)
- export DISPLAY=:0.0
- check_return_fail "Xorg failed to start" && return 1
- sleep 5
-
- /usr/bin/es2_info 1>&2
-
- if /usr/bin/es2_info 2>&1 | grep -q "EGL_VENDOR = Mesa"; then
- fail_test "EGL driver provided by Mesa"
- return 1
- fi
-
- pass_test
-}
-
-# check we're root
-if ! check_root; then
- error_msg "Please run the test case as root"
-fi
-
-# run the tests
-test_xorg
-test_unity2d
-test_unity3d
-test_unity_support
-test_opengles_driver
-
-# get lightdm running again for later usage
-test_restore