~chromium-team/chromium-browser/trusty-beta

« back to all changes in this revision

Viewing changes to debian/tests/smoketest

  • Committer: Olivier Tilloy
  • Date: 2017-10-23 16:46:53 UTC
  • mfrom: (1172.1.38 trusty-stable)
  • Revision ID: olivier.tilloy@canonical.com-20171023164653-zmpfzblxxnkj0jhj
Merge back changes from stable branch:
  * debian/control: bump Standards-Version to 4.1.1
  * debian/patches/set-rpath-on-chromium-executables.patch: updated
  * debian/tests/*:
    - removed stale autopkgtests
    - added new autopkgtests based on chromium's new headless mode
  * debian/source/include-binaries: updated to reflect new binary data in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# A thin wrapper that sets up an environment, runs a test, and exits with an
4
 
# error if the test does not write a file indicating success.
5
 
# Copyright Canonical, 2013.   Author: Chad MILLER <chad.miller@canonical.com>
6
 
 
7
 
set -o nounset
8
 
 
9
 
SRCDIR=$(pwd)
10
 
WORKDIR=$(mktemp -d --tmpdir=$(pwd)  smoketestresults-XXXXXXXX)
11
 
 
12
 
ulimit -c unlimited
13
 
 
14
 
script=$(readlink -m -- ${0}-actual)
15
 
 
16
 
cd ${WORKDIR}
17
 
 
18
 
unset SSH_AGENT_PID SSH_AUTH_SOCK SSH_CLIENT SSH_TTY WINDOWID XAUTHORITY XDG_RUNTIME_DIR XDG_SESSION_COOKIE XDG_SESSION_ID
19
 
 
20
 
#if test $DISPLAY; then 
21
 
#       LANG=C LANGUAGE=C SHELL=/bin/bash LC_ALL=C HOME=${WORKDIR} $SRCDIR/bin/xnest-run ${script} ${SRCDIR} 2>&1
22
 
#else
23
 
        DISPLAY= LANG=C LANGUAGE=C SHELL=/bin/bash LC_ALL=C HOME=${WORKDIR} xvfb-run --server-args="-screen 0, 1000x2500x24" ${script} ${SRCDIR} 2>&1
24
 
#fi
25
 
 
26
 
if test -f ${WORKDIR}/result-success; then
27
 
        echo PASS
28
 
        exit 0
29
 
else
30
 
        echo FAIL
31
 
        exit 1
32
 
fi