summaryrefslogtreecommitdiffstats
path: root/doxygen/test_framework_doc.md
AgeCommit message (Expand)AuthorFilesLines
2021-06-11docs: cleanup, remove stale materialDave Barach1-15/+1
2021-05-26misc: Initial 21.10-rc0 commitv21.10-rc0Andrew Yourtchenko1-0/+1
2020-12-16misc: Initial 21.06-rc0 commitv21.06-rc0Andrew Yourtchenko1-0/+3
2020-07-30docs: Add link to 20.05 test framework docsAndrew Yourtchenko1-0/+1
2019-08-07docs: Add link to 20.01 test framework docsAndrew Yourtchenko1-0/+1
2019-05-01DOCS: Add link to 19.08 test framework docsDave Wallace1-0/+1
2019-05-01DOCS: Add link to 19.04 make test documentationDave Wallace1-0/+1
2019-02-06Update to doxygen documentation for release 19.01Andrew Yourtchenko1-0/+1
2018-10-17Update to doxygen documentation for release 18.10Marco Varlese1-0/+2
2018-04-30Add reference to 18.04 test framework documentationChris Luke1-1/+3
2018-02-02Add link to 18.01 test framework documentation.Dave Wallace1-0/+1
2017-09-28General documentation updatesChris Luke1-0/+1
2017-02-22Add ref to test framework docs in doxygen output.Dave Wallace1-0/+7
: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
;;; Copyright (c) 2016 Cisco and/or its affiliates.
;;; Licensed under the Apache License, Version 2.0 (the "License");
;;; you may not use this file except in compliance with the License.
;;; You may obtain a copy of the License at:
;;;
;;;     http://www.apache.org/licenses/LICENSE-2.0
;;;
;;; Unless required by applicable law or agreed to in writing, software
;;; distributed under the License is distributed on an "AS IS" BASIS,
;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;;; See the License for the specific language governing permissions and
;;; limitations under the License.

;;; cli-cmd-skel.el - cli command skeleton

(require 'skeleton)

(define-skeleton skel-cli-cmd
"Insert a CLI command "
nil
'(setq cmd-name (skeleton-read "Command Name: "))
'(setq path (skeleton-read "Path: "))

"
static clib_error_t *
" cmd-name "_command_fn (vlib_main_t * vm,
		 unformat_input_t * input,
		 vlib_cli_command_t * cmd)
{
    while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {
	if (unformat (input, \"whatever %d\", &whatever))
	    ;
	else
	    return clib_error_return (0, \"unknown input `%U'\",
				      format_unformat_error, input);
    }
    return 0;
}

VLIB_CLI_COMMAND (" cmd-name "_command, static) = {
    .path = \"" path "\",
    .short_help = \"" path "\",
    .function = " cmd-name "_command_fn,
};
")