[Pdbg] [PATCH 2/3] tests: Add a test for dn name match

Amitay Isaacs amitay at ozlabs.org
Thu Mar 14 17:44:48 AEDT 2019


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 fake.dts.m4              |  2 +-
 tests/test_selection2.sh | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/fake.dts.m4 b/fake.dts.m4
index 4c6c145..92697df 100644
--- a/fake.dts.m4
+++ b/fake.dts.m4
@@ -69,7 +69,7 @@ dnl dump_processor([index], [addr], [num_cores], [num_threads])
 dnl
 define(`dump_processor',dnl
 `dump_processor_pre(`$1', `$2')
-forloop(`i', `0', eval(`$3-1'), `dump_core(i, eval($2+(i+1)*10), $4)')
+forloop(`i', `0', eval(`$3-1'), `dump_core(i, eval(10000+(i+1)*10), $4)')
 dump_processor_post()')
 
 dnl
diff --git a/tests/test_selection2.sh b/tests/test_selection2.sh
index a811445..6c0a50e 100755
--- a/tests/test_selection2.sh
+++ b/tests/test_selection2.sh
@@ -557,3 +557,27 @@ EOF
 
 do_skip
 test_run pdbg -b fake -P "fsi0/pib%d" probe
+
+
+test_result 0 <<EOF
+fsi0: Fake FSI
+    pib0: Fake PIB
+        core3: Fake Core (*)
+    pib1: Fake PIB
+        core3: Fake Core (*)
+    pib2: Fake PIB
+        core3: Fake Core (*)
+    pib3: Fake PIB
+        core3: Fake Core (*)
+    pib4: Fake PIB
+        core3: Fake Core (*)
+    pib5: Fake PIB
+        core3: Fake Core (*)
+    pib6: Fake PIB
+        core3: Fake Core (*)
+    pib7: Fake PIB
+        core3: Fake Core (*)
+EOF
+
+do_skip
+test_run pdbg -b fake -P core at 10040 probe
-- 
2.20.1



More information about the Pdbg mailing list