Commit bd396c8
committed
test-case: verify-tplg-binary/pcm-list: Support multiple topology files
Both tests now accept colon or comma-separated list of topology
paths by -t / TPLG, consistent with new func_tplg_parse_and_validate()
convention introduced in case-lib/pipeline.sh.
verify-tplg-binary.sh:
- Normalise separator to colon, split into array, iterate per file
- Call func_lib_get_tplg_path() per entry; dlogw + skip on missing
file instead of die() (optional topologies on headless systems)
- Print md5sum and sof-tplgreader.py output per topology
- Run tplgtool2.py per file; include filename in die() message
- Remove now-redundant main() wrapper
- Print a summary line after all files pass
verify-pcm-list.sh:
- Use func_tplg_parse_and_validate() to resolve all topologies;
carry NO_HDMI_MODE / NO_BT_MODE / NO_DMIC_MODE automatically
- Build sof-tplgreader.py -f filter string from active NO_*
variables, mirroring func_pipeline_export() filter logic, so
pipeline list compared against /proc/asound/pcm is consistent
- Pass comma joined TPLG_FILES to sof-tplgreader.py
- Deduplication: with TPLG_COUNT > 1 use awk 'NF && !seen[$0]++'
remove exact duplicate lines while preserving original order;
dont deduplicate by id alone PCM legitimately has both
playback and capture entry sharing same id
Signed-off-by: Mateusz Junkier <mateusz.junkier@intel.com>1 parent 497dc8f commit bd396c8
2 files changed
Lines changed: 86 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
32 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
33 | 79 | | |
34 | | - | |
35 | | - | |
| 80 | + | |
36 | 81 | | |
37 | | - | |
38 | | - | |
| 82 | + | |
| 83 | + | |
39 | 84 | | |
40 | 85 | | |
41 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
50 | | - | |
| 64 | + | |
51 | 65 | | |
52 | | - | |
| 66 | + | |
53 | 67 | | |
54 | | - | |
| 68 | + | |
| 69 | + | |
55 | 70 | | |
0 commit comments