| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.00-init/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 2016/08/20 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: |
| 14 |
# Sub-Command: |
| 15 |
# |
| 16 |
# Comment: %C{ |
| 17 |
# Check command line commands with a bad command name. |
| 18 |
# }C% |
| 19 |
# |
| 20 |
############################################################################## |
| 21 |
|
| 22 |
# |
| 23 |
# The tests |
| 24 |
# |
| 25 |
|
| 26 |
if {$verbose} { |
| 27 |
send_user "\tChecking command line commands ...\n" |
| 28 |
} |
| 29 |
|
| 30 |
# invalid command leads to error code |
| 31 |
testouterr_cmd ALL foobar ERR [err_invcmd foobar] |
| 32 |
|
| 33 |
# bad sub-command abbreviation |
| 34 |
testall_cmd sh lob ERR [err_invcmd lob] 1 |
| 35 |
testouterr_cmd sh unlob ERR [err_invcmd unlob] |
| 36 |
testouterr_cmd sh loada ERR [err_invcmd loada] |
| 37 |
testouterr_cmd sh lista ERR [err_invcmd lista] |
| 38 |
testouterr_cmd sh aval ERR [err_invcmd aval] |
| 39 |
testouterr_cmd sh a ERR [err_invcmd a] |
| 40 |
testouterr_cmd sh sp ERR [err_invcmd sp] |