diff mbox series

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

Message ID 20190314064449.1623715-3-amitay@ozlabs.org
State Accepted
Headers show
Series Fix bugs in path based target selection | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (deb577949a3505064f471e7b7c692e37c38ec8a4)
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Amitay Isaacs March 14, 2019, 6:44 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 fake.dts.m4              |  2 +-
 tests/test_selection2.sh | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
diff mbox series

Patch

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@10040 probe