~ubuntu-branches/ubuntu/vivid/system-config-printer/vivid

« back to all changes in this revision

Viewing changes to test-driver

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2014-07-06 09:41:43 UTC
  • mfrom: (1.1.81)
  • Revision ID: package-import@ubuntu.com-20140706094143-yvp3kzo7ti1ghih8
Tags: 1.4.5+20140706-0ubuntu1
* New upstream release
   o GIT 1.4.x snapshot from 6 July 2014
   o Some codec fixes
   o Traceback fixes
   o IPv6 address entry fix
   o Auth info saving improvement
   o Some loop/hang bug fixes
   o Use LockButton for fewer auth dialogs
* 30_newprinter-driver-download-override-false-error-alarm.patch,
  33_dont-use-hp-makeuri-with-non-hp-printers.patch:
  Removed, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# test-driver - basic testsuite driver script.
3
3
 
4
 
scriptversion=2012-06-27.10; # UTC
 
4
scriptversion=2013-07-13.22; # UTC
5
5
 
6
6
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
7
7
#
44
44
Usage:
45
45
  test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
46
46
              [--expect-failure={yes|no}] [--color-tests={yes|no}]
47
 
              [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
 
47
              [--enable-hard-errors={yes|no}] [--]
 
48
              TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
49
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
49
50
END
50
51
}
51
52
 
52
 
# TODO: better error handling in option parsing (in particular, ensure
53
 
# TODO: $log_file, $trs_file and $test_name are defined).
54
53
test_name= # Used for reporting.
55
54
log_file=  # Where to save the output of the test script.
56
55
trs_file=  # Where to save the metadata of the test run.
69
68
  --enable-hard-errors) enable_hard_errors=$2; shift;;
70
69
  --) shift; break;;
71
70
  -*) usage_error "invalid option: '$1'";;
 
71
   *) break;;
72
72
  esac
73
73
  shift
74
74
done
75
75
 
 
76
missing_opts=
 
77
test x"$test_name" = x && missing_opts="$missing_opts --test-name"
 
78
test x"$log_file"  = x && missing_opts="$missing_opts --log-file"
 
79
test x"$trs_file"  = x && missing_opts="$missing_opts --trs-file"
 
80
if test x"$missing_opts" != x; then
 
81
  usage_error "the following mandatory options are missing:$missing_opts"
 
82
fi
 
83
 
 
84
if test $# -eq 0; then
 
85
  usage_error "missing argument"
 
86
fi
 
87
 
76
88
if test $color_tests = yes; then
77
89
  # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
78
90
  red='' # Red.