source: trunk/GDE/SINA/builddir/tests/infocommands.test

Last change on this file was 19170, checked in by westram, 2 years ago
  • sina source
    • unpack + remove tarball
    • no longer ignore sina builddir.
  • Property svn:executable set to *
File size: 959 bytes
Line 
1#!/bin/bash
2source tests/test_helper.sh
3
4TEST_ARB=$TEST_ARGS
5maketmpdir T
6
7SINA="./src/sina"
8
9
10begin_test "Show help"
11capture_stderr $SINA --help
12assert_exit_success
13assert_output_contains "Usage:"
14assert_output_contains "Options:"
15end_test
16
17begin_test "Show advanced help"
18capture_stderr $SINA --help-all
19assert_exit_success
20assert_output_contains "Usage:"
21assert_output_contains "Options:"
22assert_output_contains "Advanced Options:"
23end_test
24
25begin_test "Show version"
26capture_stderr $SINA --version
27assert_exit_success
28assert_output_contains "SINA 1"
29end_test
30
31begin_test "Asserts CLI 2 supported"
32capture_stderr $SINA --has-cli-vers 2
33assert_exit_success
34end_test
35
36begin_test "Asserts CLI 3 unsupported"
37capture_stderr $SINA --has-cli-vers 3
38assert_exit_failure
39end_test
40
41begin_test "Show effective conf"
42capture_stderr $SINA --show-conf
43assert_exit_failure
44assert_output_contains "Effective parameters"
45assert_output_not_contains "UNKNOWN TYPE"
46end_test
Note: See TracBrowser for help on using the repository browser.