Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: client/site_tests/hardware_Touchpad/src/start_test.sh

Issue 1692009: Test for touchpad left and right buttons press and release. (Closed) Base URL: ssh://git@chromiumos-git/autotest.git
Patch Set: Added killing of X after test is executed Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/sh
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 XAUTH=/usr/bin/xauth
8 SERVER_READY=
9
10 export XAUTH_FILE="/var/run/factory_test.auth"
11
12 user1_handler () {
13 echo "X server ready..."
14 SERVER_READY=y
15 }
16
17 trap user1_handler USR1
18 MCOOKIE=$(head -c 8 /dev/urandom | openssl md5)
19 ${XAUTH} -q -f ${XAUTH_FILE} add :0 . ${MCOOKIE}
20
21 /sbin/xstart.sh ${XAUTH_FILE} &
22
23 while [ -z ${SERVER_READY} ]; do
24 sleep .1
25 done
26
27 export SHELL=/bin/bash
28 export DISPLAY=:0.0
29 export PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11
30 export XAUTHORITY=${XAUTH_FILE}
31
32 /usr/bin/python TouchpadTest.py $*
33 STATUS=$?
34
35 /usr/bin/pkill X
36 exit $STATUS
OLDNEW
« no previous file with comments | « client/site_tests/hardware_Touchpad/src/TouchpadTest.py ('k') | client/site_tests/hardware_Touchpad/src/touchpad.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698