public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Stan Cox <scox@redhat.com>
To: Frysk Hackers <frysk@sourceware.org>
Subject: frysk-core dejagnu support
Date: Wed, 15 Nov 2006 21:27:00 -0000	[thread overview]
Message-ID: <1163625921.3043.43.camel@multics.rdu.redhat.com> (raw)

There is now basic dejagnu support in frysk-core roughly modeled after
the toolchain dejagnu support.  For example in frysk-core 'make check',
or more specifically 'make check-DEJAGNU', yields:
                === expr Summary ===
 # of expected passes            20

So this might be an option for any tests which are of the form:
 1. run something which generates output
 2. check if the output matches a pattern

1. frysk-core/testsuite/lib/frysk.exp is intended to be general purpose
tcl/expect procs which are used by the testsuites.  It is modeled after
gdb.exp, gcc.exp.
2. frysk-core/testsuite/expr/expr.exp has some expression tests.

Adding new tests:
0. New expression tests could be added to expr.exp.
1. A new test suite, e.g. breakpoint tests, could be added by creating a
new breaks.exp file modeled after expr.exp and adding necessary support
to frysk.exp.

resources: 
1. man expect (the .exp files are a combination of expect and tcl)
2. tcl docs (http://tmml.sourceforge.net/doc/tcl/)
3. dejagnu docs (runtest is the dejagnu driver, which is written in tcl)
(http://www.gnu.org/software/dejagnu/manual/)









                 reply	other threads:[~2006-11-15 21:27 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=1163625921.3043.43.camel@multics.rdu.redhat.com \
    --to=scox@redhat.com \
    --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: link
Be 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).