You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add: Qualcomm HWRNG test script with documentation
- Added initial test script to validate Qualcomm HWRNG functionality
- Refined script and documentation based on review feedback
Signed-off-by: Naveenkumar Suresh <[email protected]>
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2
+
SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+
# Qualcomm Hardware Random Number Generator (QRNG) Script
5
+
# Overview
6
+
7
+
The qcom_hwrng test script validates Qualcomm Hardware Random Number Generator (HWRNG) basic functionality. This test ensures that the HWRNG kernel driver is correctly integrated and functional.
8
+
9
+
## Features
10
+
11
+
- Driver Validation: Confirms the presence and correct configuration of the qcom_hwrng kernel driver.
12
+
- Dependency Check: Verifies the availability of required tools like rngtest before execution.
13
+
- Automated Result Logging: Outputs test results to a .res file for automated result collection.
14
+
- Remote Execution Ready: Supports remote deployment and execution via scp and ssh.
15
+
16
+
## Prerequisites
17
+
18
+
Ensure the following components are present in the target:
19
+
20
+
-`rngtest` (Binary Available in /usr/bin) - this test app can be compiled from https://github.com/cernekee/rng-tools/
21
+
22
+
## Directory Structure
23
+
```
24
+
Runner/
25
+
├── suites/
26
+
│ ├── Kernel/
27
+
│ │ ├── FunctionalArea/
28
+
│ │ │ ├── baseport/
29
+
│ │ │ │ ├── qcom_hwrng/
30
+
│ │ │ │ │ ├── run.sh
31
+
```
32
+
## Usage
33
+
34
+
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to the /var directory on the target device.
35
+
36
+
2. Verify Transfer: Ensure that the repo have been successfully copied to the /var directory on the target device.
37
+
38
+
3. Run Scripts: Navigate to the /var directory on the target device and execute the scripts as needed.
39
+
40
+
---
41
+
Quick Example
42
+
```
43
+
git clone <this-repo>
44
+
cd <this-repo>
45
+
scp -r common Runner user@target_device_ip:/<user-defined-location>
46
+
ssh user@target_device_ip
47
+
cd /<user-defined-location>/Runner && ./run-test.sh qcom_hwrng
48
+
49
+
Sample output:
50
+
sh-5.2# ./run-test.sh qcom_hwrng
51
+
[Executing test case: qcom_hwrng] 1970-01-05 16:56:59 -
0 commit comments