Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

DELPH-IN Grammar Testing Tool

License

NotificationsYou must be signed in to change notification settings

goodmami/gtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DELPH-IN Grammar Testing Tool

The gTest tool is meant to help automate testing of DELPH-IN style HPSG grammars. Currently it only does the following:

  • regression tests against gold [incr tsdb()] profiles
  • coverage tests against [incr tsdb()] skeletons
  • semantic tests against [incr tsdb()] skeletons

Other tests can be added by following the instructions in theNOTES.md file.

Setup

gTest relies heavily on several pieces of software:

In order to setup gTest for use, download ACE and art and make sure they are onPATH. E.g. if ACE and art are installed to/opt/ace/ and/opt/art/, respectively, you can add something like this to your.bashrc file:

PATH=/opt/ace:/opt/art:"$PATH"

Also installpyDelphin (via PIP or download and put it onPYTHONPATH; more details are available on pyDelphin's website).

Usage

gTest uses subcommands (like Subversion hassvn checkout orsvn commit). You can invoke them like this from thegtest/ directory, followed by a list of tests:

Regression testing
$ ./gTest -G~/grammar/ R [tests..]

A test can be specified with an initial colon (as in:testsuite1), in which case it searches the skeletons directory of the grammar (tsdb/skeletons/ by default):

$ ./gTest -G~/grammar/ R :testsuite1

A test can also be specified with a path relative to the grammar, or with an absolute path:

$ ./gTest -G~/grammar/ R tsdb/skeletons/testsuite2~/grammar/tsdb/skeletons/testsuite3

Globbing stars can perform all matching tests:

$ ./gTest -G~/grammar/ R :testsuite*

In all cases, the test specified is used to find the skeleton path, and the gold profile is then found by looking for relative portion of the path under the gold directory (e.g.tsdb/gold/testsuite1, etc.).

There are global options (try./gTest -h) and test-specific options (try./gTest [R|C|M] -h), mostly for adjusting the locations of relative paths.

Coverage testing
$ ./gTest -G~/grammar/ C [tests..]
Semantic testing
$ ./gTest -G~/grammar/ M [tests..]

[8]ページ先頭

©2009-2025 Movatter.jp