Statistics
| Branch: | Tag: | Revision:

root / htools / offline-test.sh @ 42089b55

History | View | Annotate | Download (1.1 kB)

1
#!/bin/bash
2

    
3
# Copyright (C) 2012 Google Inc.
4

    
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
9

    
10
# This program is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
# General Public License for more details.
14

    
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
# 02110-1301, USA.
19

    
20
# This is an offline testing script for most/all of the htools
21
# programs, checking basic command line functionality.
22

    
23
set -e
24

    
25
. $(dirname $0)/cli-tests-defs.sh
26

    
27
echo -n "Checking command line basic options "
28
for prog in $ALL_ROLES; do
29
  echo -n "."
30
  $prog --version >/dev/null
31
  $prog --help >/dev/null
32
  ! $prog --no-such-option 2>/dev/null
33
done
34
echo
35

    
36
echo All OK