[go: up one dir, main page]

File: suites.t

package info (click to toggle)
criterion 2.3.3git1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,832 kB
  • sloc: ansic: 17,852; cpp: 795; python: 72; sh: 27; makefile: 23
file content (50 lines) | stat: -rw-r--r-- 1,309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Using test suites

  $ suites.c.bin
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0 

  $ more-suites.c.bin
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0 

Listing tests in multiple suites

  $ suites.c.bin --list
  first_suite: 1 test
  `-- test
  second_suite: 1 test
  `-- test

Running the tests with verbose output

  $ suites.c.bin --verbose
  \[----\] Criterion v.* (re)
  [====] Running 1 test from first_suite:
  [RUN ] first_suite::test
  [PASS] first_suite::test
  [====] Running 1 test from second_suite:
  [RUN ] second_suite::test
  [PASS] second_suite::test
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0 

  $ more-suites.c.bin --verbose
  \[----\] Criterion v.* (re)
  [====] Running 1 test from disabled:
  [SKIP] disabled::test: Test is disabled
  [====] Running 1 test from suite1:
  [RUN ] suite1::test
  [PASS] suite1::test
  [====] Running 1 test from suite2:
  [RUN ] suite2::test
  [PASS] suite2::test
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0 

C++ equivalents

  $ [ "$CXX_SUPPORT" = 1 ] || exit 80

  $ suites.cc.bin
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0 

  $ more-suites.cc.bin
  [====] Synthesis: Tested: 2 | Passing: 2 | Failing: 0 | Crashing: 0