~ubuntu-branches/ubuntu/utopic/nbdkit/utopic

« back to all changes in this revision

Viewing changes to tests/test-help.sh

  • Committer: Package Import Robot
  • Author(s): Hilko Bengen
  • Date: 2014-06-21 10:51:05 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140621105105-2zv4nqedhx54kmsk
Tags: 1.1.7-1
* New upstream version
* Dropped patch that was integrated upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -
 
2
# nbdkit
 
3
# Copyright (C) 2014 Red Hat Inc.
 
4
# All rights reserved.
 
5
#
 
6
# Redistribution and use in source and binary forms, with or without
 
7
# modification, are permitted provided that the following conditions are
 
8
# met:
 
9
#
 
10
# * Redistributions of source code must retain the above copyright
 
11
# notice, this list of conditions and the following disclaimer.
 
12
#
 
13
# * Redistributions in binary form must reproduce the above copyright
 
14
# notice, this list of conditions and the following disclaimer in the
 
15
# documentation and/or other materials provided with the distribution.
 
16
#
 
17
# * Neither the name of Red Hat nor the names of its contributors may be
 
18
# used to endorse or promote products derived from this software without
 
19
# specific prior written permission.
 
20
#
 
21
# THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
 
22
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 
23
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 
24
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
 
25
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
26
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
27
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 
28
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 
29
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
30
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 
31
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
32
# SUCH DAMAGE.
 
33
 
 
34
set -e
 
35
 
 
36
output="$(../src/nbdkit --help)"
 
37
if [[ ! ( "$output" =~ dump-config ) ]]; then
 
38
    echo "$0: unexpected output from nbdkit --help"
 
39
    echo "$output"
 
40
    exit 1
 
41
fi