Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /pages/viewpage.action?pageId=10387562 taken on 2022-08-19. The original wiki at wiki.opf-labs.org is being decommissioned.

SO12 Tool testing framework

Added by Asger Askov Blekinge · last edited by Asger Askov Blekinge · on Dec 06, 2011
Title SO12 Tool testing framework
Detailed description A testing framework, to ease the evaluation and measurement of tools. Furthermore, it allows us to test the effects of new versions and modifications
Solution Champion
Asger Askov Blekinge (SB)
Corresponding Issue(s)

myExperiment Link

Tool Registry Link

Evaluation

Currently, the framework consist of two scripts for running the tools recursively

Invoking - Tools that read the datafile themselves

Datadir is the directory where the datafiles reside.

Report dir is where the output reports of the tool should be dumped. Each file will produce an output file, so the directory structure in REPORTDIR will come to resemble the one in DATADIR.

PreCommand is the bash command the place before the file. Postcommand is the bit to place afterwards.

To run Tika (java -jar tika-app-1.0.jar <datafile>) on every file in the folder ~/testdata and have it report to ~/testdatareports, this would be the command

Since performance information is relevant, this is recorded in a CSV file in the REPORTDIR by the name of time.log

Piping - Tools that read stdin

Functions almost like recursive_invoke.sh

To run Tika (cat <datafile> | java -jar tika-app-1.0.jar -) on every file in the folder ~/testdata and have it report to ~/testdatareports, this would be the command

Since performance information is relevant, this is recorded in a CSV file in the REPORTDIR by the name of time.log