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
Added Shmbridgee Validation Test script and README
Introduced the Shmbridge Validation Test to verify QCOM_SCM support on target devices.
This commit includes:
- A shell script that checks kernel config and dmesg logs for QCOM_SCM presence and probe status.
- A README with usage instructions, prerequisites, and result criteria.
This enhances automated validation of Shmbridge functionality in the kernel test suite.
Signed-off-by: Sai-teja573 <122cs0573@nitrkl.ac.in>
This test case validates the encryption and access functionality of the `shmbridge` partition by:
8
+
This test case validates the presence and initialization of the Qualcomm Secure Channel Manager (QCOM_SCM) interface on the device. It ensures that:
9
9
10
-
- Formatting the partition with ext4 and encryption options
11
-
- Mounting it with `inlinecrypt`
12
-
- Adding an encryption key using `fscryptctl`
13
-
- Setting and verifying an encryption policy
14
-
- Writing and reading a test file to confirm data integrity
10
+
- The kernel is configured with QCOM_SCM support
11
+
- The dmesg logs contain expected `qcom_scm` entries
12
+
- There are no "probe failure" messages in the logs
15
13
16
14
## Usage
17
15
18
16
Instructions:
19
17
20
-
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 any directory on the target device.
21
-
2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device.
22
-
3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed.
18
+
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 any directory on the target device.
19
+
2.**Verify Transfer**: Ensure that the repo has been successfully copied to the target device.
20
+
3.**Run Scripts**: Navigate to the directory where these files are copied on the target device and execute the scripts as needed.
23
21
24
-
Run a Kernel Baseport shmbridge test using:
22
+
Run the SHM Bridge test using:
25
23
---
26
24
#### Quick Example
27
-
```
25
+
```sh
28
26
git clone <this-repo>
29
27
cd<this-repo>
30
28
scp -r common Runner user@target_device_ip:<Path in device>
31
29
ssh user@target_device_ip
32
30
cd<Path in device>/Runner && ./run-test.sh shmbridge
33
31
```
34
-
32
+
---
35
33
## Prerequisites
36
-
-`fscryptctl`, `mkfs.ext4` and `mount` must be available
37
-
- Root access is required
38
-
- Partition /dev/disk/by-partlabel/xbl_ramdump_a must exist and be accessible
39
-
40
-
## Result Format
41
-
42
-
Test result will be saved in shmbridge.res as:
43
-
#### Pass Criteria
44
-
- Partition is found and formatted
45
-
- Encryption key is added and policy is set
46
-
- Test file is written and read successfully
47
-
-`Test Passed` – if all validations succeed
48
-
<!---->
49
-
#### Fail Criteria
50
-
- Partition not found
51
-
- Encryption setup fails
52
-
- Test file cannot be read or content mismatch
53
-
-`Test Failed` – if any check fails
54
-
34
+
1. zcat, grep, and dmesg must be available.
35
+
2. Root access may be required to write to read kernel logs.
0 commit comments