zephyr/tests/crypto/ctr_prng
Niranjhana N 83f77de779 tests: ctr_prng: convert to ztest
- replaced test points with ztest APIs wherever possible
- replaced CONFIG_MAIN_STACK_SIZE with CONFIG_ZTEST_STACKSIZE
  in the config file
- split the main file into two files:
    - main.c has ztest entry and runs separate functions for ztest
    - ctr_prng.c has the original routines

JIRA: ZEP-2449

Signed-off-by: Niranjhana N <niranjhana.n@intel.com>
2017-08-07 22:39:47 -04:00
..
src tests: ctr_prng: convert to ztest 2017-08-07 22:39:47 -04:00
Makefile tests: rename test directory test_ctr_prng -> ctr_prng 2017-06-17 10:34:24 -04:00
README.txt tests: rename test directory test_ctr_prng -> ctr_prng 2017-06-17 10:34:24 -04:00
prj.conf tests: ctr_prng: convert to ztest 2017-08-07 22:39:47 -04:00
testcase.yaml tests: remove build_only tag 2017-07-05 12:43:13 -04:00

README.txt

Title: test_ctr_prng

Description:

This test verifies that the TinyCrypt CTR PRNG APIs operate as expected.

--------------------------------------------------------------------------------
Building and Running Project:

This project outputs to the console.  It can be built and executed
on QEMU as follows:

    make run

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------

Sample Output:

tc_start() - Performing CTR-PRNG tests:
[PASS] test_prng_vector #0
[PASS] test_prng_vector #1
[PASS] test_prng_vector #2
[PASS] test_prng_vector #3
[PASS] test_prng_vector #4
[PASS] test_prng_vector #5
[PASS] test_prng_vector #6
[PASS] test_prng_vector #7
[PASS] test_prng_vector #8
[PASS] test_prng_vector #9
[PASS] test_prng_vector #10
[PASS] test_prng_vector #11
[PASS] test_prng_vector #12
[PASS] test_prng_vector #13
[PASS] test_prng_vector #14
[PASS] test_prng_vector #15
[PASS] test_reseed
[PASS] test_uninstantiate
[PASS] test_robustness

All CTR PRNG tests succeeded!
===================================================================
PASS - main.
===================================================================
PROJECT EXECUTION SUCCESSFUL