public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: rmoseley@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: New test for the hpd test harness. Date: Wed, 12 Dec 2007 18:48:00 -0000 [thread overview] Message-ID: <20071212184832.21946.qmail@sourceware.org> (raw) The branch, master has been updated via 6499eead93919efbff6580cc9713b1b465648b53 (commit) from 34590558fa6e5c505b323d55e631b4f5632e9e76 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 6499eead93919efbff6580cc9713b1b465648b53 Author: Rick Moseley <rmoseley@localhost.localdomain> Date: Wed Dec 12 12:48:09 2007 -0600 New test for the hpd test harness. * TestHpdTestHarness.java: New for testing bz #5480. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/hpd/ChangeLog | 4 ++ ...semblerCommand.java => TestHpdTestHarness.java} | 47 ++++++++++---------- 2 files changed, 28 insertions(+), 23 deletions(-) copy frysk-core/frysk/hpd/{TestDisassemblerCommand.java => TestHpdTestHarness.java} (75%) First 500 lines of diff: diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog index 5a29416..f1326c3 100644 --- a/frysk-core/frysk/hpd/ChangeLog +++ b/frysk-core/frysk/hpd/ChangeLog @@ -1,3 +1,7 @@ +2007-12-12 Rick Moseley <rmoseley@redhat.com> + + * TestHpdTestHarness.java: New for testing bz #5480. + 2007-12-11 Rick Moseley <rmoseley@redhat.com> * KillCommand.java: New. diff --git a/frysk-core/frysk/hpd/TestDisassemblerCommand.java b/frysk-core/frysk/hpd/TestHpdTestHarness.java similarity index 75% copy from frysk-core/frysk/hpd/TestDisassemblerCommand.java copy to frysk-core/frysk/hpd/TestHpdTestHarness.java index 33f2f36..8c4eea5 100644 --- a/frysk-core/frysk/hpd/TestDisassemblerCommand.java +++ b/frysk-core/frysk/hpd/TestHpdTestHarness.java @@ -39,31 +39,32 @@ package frysk.hpd; -import lib.opcodes.Disassembler; +import frysk.Config; -public class TestDisassemblerCommand - extends TestLib -{ - public void testHpdDisassemble() { - if (unsupported("disassembler", !Disassembler.available())) +public class TestHpdTestHarness extends TestLib { + public void testKillHpdTestHarness() { + + if (unresolved(5480)) return; - e = HpdTestbed.attachXXX("hpd-c"); - e.send("disassemble\n"); - e.expect(5, "\\*.*test.*\n(.*\n)*" + prompt); - e.send("quit\n"); + e = new HpdTestbed(); + e.send("load " + Config.getPkgLibFile("funit-threads-looper").getPath() + + "\n"); + e.expect(5, "Loaded executable file*"); + e.send("run\n"); + e.expect(5, "Attached to process*"); + e.send("go\n"); + e.expect(5, "Running process*"); + e.send("kill\n"); + e.expect(5, "Killing process*"); + e.expect(5, "Loaded executable file*"); + e.send("run\n"); + e.expect(5, "Attached to process*"); + e.send("go\n"); + e.expect(5, "Running process*"); + e.send("kill\n"); + e.expect(5, "Killing process*"); + e.expect(5, "Loaded executable file*"); + e.expect(5, "quit\n"); e.expect("Quitting..."); - e.close(); - } - - public void testDisassembleRange() { - if (unsupported("disassembler", !lib.opcodes.Disassembler.available())) - return; - e = HpdTestbed.attachXXX("hpd-c"); - e.send("disassemble 0x804860f 0x80487ea\n"); - e.expect(5, " 0x804860f.*\n"); - e.expect(5, " 0x80487ea.*\n" + prompt); - e.send("quit\n"); - e.expect("Quitting..."); - e.close(); } } hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2007-12-12 18:48 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071212184832.21946.qmail@sourceware.org \ --to=rmoseley@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).