From: Tim Newsome Date: Fri, 9 Dec 2016 17:25:03 +0000 (-0800) Subject: Add test of compare-sections command. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5b99270af1deed953ac856b7b5bf3e5f84dd9e6;p=riscv-tests.git Add test of compare-sections command. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index d236a97..000b52c 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -271,6 +271,16 @@ class DebugTest(GdbTest): assertIn("_exit", output) assertEqual(self.gdb.p("status"), expected_result) +class DebugCompareSections(DebugTest): + def test(self): + output = self.gdb.command("compare-sections") + matched = 0 + for line in output.splitlines(): + if line.startswith("Section"): + assert line.endswith("matched.") + matched += 1 + assertGreater(matched, 1) + class DebugFunctionCall(DebugTest): def test(self): self.gdb.b("main:start")