public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: New test for the hpd test harness.
@ 2007-12-12 18:48 rmoseley
  0 siblings, 0 replies; only message in thread
From: rmoseley @ 2007-12-12 18:48 UTC (permalink / raw)
  To: frysk-cvs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-12 18:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 18:48 [SCM] master: New test for the hpd test harness rmoseley

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).