Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 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 2017/10/17.

Clone this wiki locally