~chromium-team/chromium-browser/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/tests/smoketest

  • Committer: Chad Miller
  • Date: 2013-07-16 14:50:17 UTC
  • mfrom: (886.1.4 p-saucy-autopkgtests)
  • Revision ID: chad.miller@canonical.com-20130716145017-kv5lbqu515g631bg
* debian/tests/:
  - Add smoketest to verify that chromium runs.
  - Add a empty webapps test file for notes about what parts of webapps will
    or should be tested.

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 errexit
 
8
#set -o xtrace
 
9
set -o nounset
 
10
 
 
11
SRCDIR=$(pwd)
 
12
WORKDIR=$(mktemp -d)
 
13
trap "rm -rf ${WORKDIR}" EXIT INT QUIT ABRT PIPE TERM
 
14
 
 
15
ulimit -c unlimited
 
16
 
 
17
script=$(readlink -m -- ${0}-actual)
 
18
 
 
19
cd ${WORKDIR}
 
20
LC_ALL=C HOME=${WORKDIR} xvfb-run ${script} ${SRCDIR} 2>&1
 
21
 
 
22
test -f ${WORKDIR}/result-success && echo PASS || echo FAIL