Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

SortTest Element Documentation

NAME

SortTest — Click element; runs regression tests for click_qsort

SYNOPSIS

SortTest([keywords])

Ports: none

DESCRIPTION

SortTest runs click_qsort regression tests at initialization time. It does not route packets.

If additional arguments are provided, SortTest will not perform its normal tests. Instead, it will sort those arguments and optionally print out the results. At userlevel a file can be sorted as well.

Keyword arguments are:

  • FILE — Filename. Sorts the lines of FILE.
  • NUMERIC — Boolean. Sort values as numeric. Default is false.
  • REVERSE — Boolean. Reverse sort values. Default is false.
  • PERMUTE — Boolean. Stable sort values. Default is false.
  • STDC — Boolean. Use standard C qsort, not Click sort. Default is false.
  • OUTPUT — Boolean. If true, results of the extra sort are printed to standard output. Default is false.

Generated by click-elem2man from ../elements/test/sorttest.hh:7 on 2018/10/03.

Clone this wiki locally