File: README.md

package info (click to toggle)
xmlsec1 1.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,144 kB
  • sloc: ansic: 101,545; xml: 20,100; sh: 3,804; makefile: 1,215; javascript: 434; perl: 199
file content (70 lines) | stat: -rw-r--r-- 2,023 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# XMLSec Library: Unit Tests

## Running a specific test

If a test fails, it's possible to re-run just that specific test for that
specific backend using:

```
make check-crypto-$backend XMLSEC_TEST_NAME="$name"
```

where `$name` is the key name for key tests, and a file name otherwise.

Example:

```
make check-crypto-nss XMLSEC_TEST_NAME="enveloping-sha256-rsa-sha256-relationship"
```

## Reproducible output

It is also possible to have reproducible output, filtering out timestamps. This
is useful to see the output before and after a change to understand its impact.

Example:

```
make check XMLSEC_TEST_REPRODUCIBLE=y
```

## Running tests after disabling features

If you disabled some features and tests are failing because there are too many
skipped tests, then you can disable this check by setting XMLSEC_TEST_IGNORE_PERCENT_SUCCESS
environment variable:


```
make check XMLSEC_TEST_IGNORE_PERCENT_SUCCESS=y
```

## Statitistics

The tests are run with legacy algorithms enabled but without GOST. Note that skipped
tests report is lower than actual because when a test case is skipped, it might include
multiple subtests (that will be counted in the total successful number).

- OpenSSL:
  - xmldsig: TOTAL OK: 293; TOTAL FAILED: 0; TOTAL SKIPPED: 3
  - xmlenc:  TOTAL OK: 590; TOTAL FAILED: 0; TOTAL SKIPPED: 0

- NSS:
   - xmldsig: TOTAL OK: 268; TOTAL FAILED: 0; TOTAL SKIPPED: 11
   - xmlenc:  TOTAL OK: 578; TOTAL FAILED: 0; TOTAL SKIPPED: 4

- GnuTLS:
   - xmldsig: TOTAL OK: 238; TOTAL FAILED: 0; TOTAL SKIPPED: 26
   - xmlenc:  TOTAL OK: 482; TOTAL FAILED: 0; TOTAL SKIPPED: 36

- MSCng:
   - xmldsig: TOTAL OK: 251; TOTAL FAILED: 0; TOTAL SKIPPED: 20
   - xmlenc:  TOTAL OK: 518; TOTAL FAILED: 0; TOTAL SKIPPED: 1

- MSCrypto:
   - xmldsig: TOTAL OK: 191; TOTAL FAILED: 0; TOTAL SKIPPED: 57
   - xmlenc:  TOTAL OK: 132; TOTAL FAILED: 0; TOTAL SKIPPED: 181

- GCrypt:
   - xmldsig: TOTAL OK: 115; TOTAL FAILED: 0; TOTAL SKIPPED: 70
   - xmlenc:  TOTAL OK: 135; TOTAL FAILED: 0; TOTAL SKIPPED: 186