Debian Codegraph @

test/README.md

raw symbols SCIP
1 libkcapi test applications
2 ==========================
3
4 For the different components of libkcapi there are several tests
5 as listed in the following:
6
7 * `test.sh`: The test script validates the correctness of the
8 libkcapi shared library. The shell script uses FIPS 140-2
9 CAVS test vectors to verify the correct operation of the interface.
10
11 * `kcapi-enc-test.sh`: The kcapi-enc application is tested with
12 this script covering the processing of command line options and
13 input data. The kcapi-enc operation is verified with openssl enc.
14
15 * `kcapi-dgst-test.sh`: The kcapi-dgst application is tested with
16 this script covering the processing of command line options and
17 input data. The kcapi-dsgt operation is verified with openssl dgst.
18
19 * `hasher-test.sh`: The kcapi-hasher application is tested to verify
20 that it behaves consistently with the sha*sum and sha*hmac
21 applications.
22
23 * `kcapi-enc-test-large.sh` invoking the kcapi-enc-test-large.c application:
24 That test verifies edge conditions of the algif_skcipher when large
25 data chunks are processed.
26
27 * `virttest.sh`: Use the eudyptula-boot tool to test older kernel versions
28 with libkcapi. This test is only executed if ${HOME}/bin/eudyptula-boot
29 is present. If it is present, please check the virttest.sh script for
30 configuration of the kernel sources and directories. Example kernel
31 configurations that can be used for this kind of testing are found
32 in the directory `virttest-kernel-configs`.
33
34 * `compile-test.sh`: This script enables all configure options and
35 performs a full compilation and installation.
36
37 * `libtest.sh`: This script is a library of functions used by the other
38 test scripts. It is not intended to be called directly.
39
40 All tests are collectively invoked with the `test-invocation.sh` script.
41 In addition, the following tests are not integrated into the general
42 test run, but can be enabled by setting `ENABLE_FUZZ_TEST` to any value
43 before running `test-invocation.sh` :
44
45 * `kcapi-fuzz-test.sh`: Execute various fuzzing tests.
46
47 Bi-arch tests
48 -------------
49
50 To test both word sizes simultaneously, use `test-invocation.sh` which
51 compiles and executes the test cases.
52
53 You can disable the 32 bit tests by explicitly setting `NO_32BIT_TEST`
54 to any value before running `test-invocation.sh`.