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]>
# Qualcomm Hardware Random Number Generator (QRNG) Script
2
+
# Overview
3
+
4
+
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.
5
+
6
+
## Features
7
+
8
+
- Driver Validation: Confirms the presence and correct configuration of the qcom_hwrng kernel driver.
9
+
- Dependency Check: Verifies the availability of required tools like rngtest before execution.
10
+
- Automated Result Logging: Outputs test results to a .res file for automated result collection.
11
+
- Remote Execution Ready: Supports remote deployment and execution via scp and ssh.
12
+
13
+
## Prerequisites
14
+
15
+
Ensure the following components are present in the target:
16
+
17
+
-`rngtest` (Binary Available in /usr/bin) - this test app can be compiled from https://github.com/cernekee/rng-tools/
18
+
19
+
## Directory Structure
20
+
```
21
+
Runner/
22
+
├── suites/
23
+
│ ├── Kernel/
24
+
│ │ ├── FunctionalArea/
25
+
│ │ │ ├── baseport/
26
+
│ │ │ │ ├── qcom_hwrng/
27
+
│ │ │ │ │ ├── run.sh
28
+
```
29
+
## Usage
30
+
31
+
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.
32
+
33
+
2. Verify Transfer: Ensure that the repo have been successfully copied to the /var directory on the target device.
34
+
35
+
3. Run Scripts: Navigate to the /var directory on the target device and execute the scripts as needed.
36
+
37
+
---
38
+
Quick Example
39
+
```
40
+
git clone <this-repo>
41
+
cd <this-repo>
42
+
scp -r common Runner user@target_device_ip:/var
43
+
ssh user@target_device_ip
44
+
cd /var/Runner && ./run-test.sh qcom_hwrng
45
+
46
+
Sample output:
47
+
sh-5.2# ./run-test.sh qcom_hwrng
48
+
[Executing test case: /var/Runner/suites/Kernel/FunctionalArea/baseport/qcom_hwrng] 2025-05-16 06:08:41 -
0 commit comments