aboutsummaryrefslogtreecommitdiffstats
path: root/test/doc
AgeCommit message (Expand)AuthorFilesLines
2019-03-07Tests: Refactor payload_to_info()Paul Vinciguerra1-1/+1
2019-02-20make test-doc: Clean up import errors.Paul Vinciguerra1-0/+5
2019-01-18VTL: Fix sphinx doc generation.Paul Vinciguerra1-4/+6
2018-11-29make test: create virtualenv under /test/Klement Sekera1-3/+3
2018-10-12Add parallel test run info to test/docjuraj.linkes1-1/+27
2017-01-27make-test: Add numbering to chapters' titlesTibor2-1/+2
2017-01-27make test: improve documentation generationKlement Sekera4-430/+432
2017-01-27Add sphinx read the doc theme.Tibor1-1/+2
2017-01-11make test: improve documentation and PEP8 complianceKlement Sekera1-9/+276
2016-11-15Update test documentation.Matej Klotton21-196/+40
2016-11-11Add single-loop test variant to L2BD and L2XC testsJan2-2/+2
2016-11-09Improve test framework documentationKlement Sekera22-45/+344
2016-10-31add vpp debugging support to test frameworkKlement Sekera2-87/+102
2016-10-26refactor test frameworkKlement Sekera3-0/+591
200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #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.

;;; elog-one-datum-skel.el - single u32 datum elog skeleton

(require 'skeleton)

(define-skeleton skel-elog-one-datum
"Insert a skeleton single datum event definition"
nil
'(setq function-name (skeleton-read "Function: "))
'(setq label (skeleton-read "Label: "))

"

/* $$$ May or may not be needed */
#include <vlib/vlib.h>
#include <vppinfra/elog.h>

static inline void " function-name " (u32 data)
{
  ELOG_TYPE_DECLARE (e) = 
    {
      .format = \"" label ": %d\",
      .format_args = \"i4\",
    };
  
  elog (&vlib_global_main.elog_main, &e, data);
}

")