From 61765e0aaae479b94a3fddd01e4e12eae76bb8da Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 16 Nov 2012 09:53:35 +0000 Subject: Move the remaining scripts to commands --- (limited to 'scripts/run-ui-tests') diff --git a/scripts/run-ui-tests b/scripts/run-ui-tests deleted file mode 100755 index 5a38fb6..0000000 --- a/scripts/run-ui-tests +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -scriptsdir=`dirname "$0"` -rootdir=`dirname "$scriptsdir"` -testsdir=$rootdir/tests -scriptsdir=$rootdir/scripts -logsdir=$rootdir/logs -display=`$scriptsdir/find-free-display` -resolution=1024x768x16 - -xvfb=`which Xvfb` -xserver="$xvfb $display -ac -noreset -shmem -screen 0 $resolution" - -if [ -z "$SUGAR_BUILDBOT" ]; then - xserver=$display -fi - -export SUGAR_LOGGER_LEVEL=debug -export GTK_MODULES=gail:atk-bridge -export SUGAR_UI_TESTS=yes - -xinit $scriptsdir/xinitrc -- $xserver & -xinitpid=$! - -sleep 5 - -DISPLAY=$display python -u $testsdir/shell.py -result=$? - -kill $xinitpid - -if [ -z "$SUGAR_BUILDBOT" ]; then - LOGFILE=$logsdir/test-`date +%Y%m%d-%H%M%S`.log -else - LOGFILE=$logsdir/test.log -fi - -cd ~/.sugar/ui-tests/logs - -for logfile in *.log -do - echo -e "===== $logfile =====\n" >> $LOGFILE - cat $logfile >> $LOGFILE - echo >> $LOGFILE -done - -exit $result -- cgit v0.9.1