|
Last change
on this file was
19170,
checked in by westram, 3 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 |
|---|
| 2 | source tests/test_helper.sh |
|---|
| 3 | |
|---|
| 4 | TEST_ARB=$TEST_ARGS |
|---|
| 5 | maketmpdir T |
|---|
| 6 | |
|---|
| 7 | SINA="./src/sina" |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | begin_test "Show help" |
|---|
| 11 | capture_stderr $SINA --help |
|---|
| 12 | assert_exit_success |
|---|
| 13 | assert_output_contains "Usage:" |
|---|
| 14 | assert_output_contains "Options:" |
|---|
| 15 | end_test |
|---|
| 16 | |
|---|
| 17 | begin_test "Show advanced help" |
|---|
| 18 | capture_stderr $SINA --help-all |
|---|
| 19 | assert_exit_success |
|---|
| 20 | assert_output_contains "Usage:" |
|---|
| 21 | assert_output_contains "Options:" |
|---|
| 22 | assert_output_contains "Advanced Options:" |
|---|
| 23 | end_test |
|---|
| 24 | |
|---|
| 25 | begin_test "Show version" |
|---|
| 26 | capture_stderr $SINA --version |
|---|
| 27 | assert_exit_success |
|---|
| 28 | assert_output_contains "SINA 1" |
|---|
| 29 | end_test |
|---|
| 30 | |
|---|
| 31 | begin_test "Asserts CLI 2 supported" |
|---|
| 32 | capture_stderr $SINA --has-cli-vers 2 |
|---|
| 33 | assert_exit_success |
|---|
| 34 | end_test |
|---|
| 35 | |
|---|
| 36 | begin_test "Asserts CLI 3 unsupported" |
|---|
| 37 | capture_stderr $SINA --has-cli-vers 3 |
|---|
| 38 | assert_exit_failure |
|---|
| 39 | end_test |
|---|
| 40 | |
|---|
| 41 | begin_test "Show effective conf" |
|---|
| 42 | capture_stderr $SINA --show-conf |
|---|
| 43 | assert_exit_failure |
|---|
| 44 | assert_output_contains "Effective parameters" |
|---|
| 45 | assert_output_not_contains "UNKNOWN TYPE" |
|---|
| 46 | end_test |
|---|
Note: See
TracBrowser
for help on using the repository browser.