Changes between Version 22 and Version 23 of ValidationSimple


Ignore:
Timestamp:
Oct 21, 2014, 11:56:40 PM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ValidationSimple

    v22 v23  
    1919
    2020To locate and open the result's output files, use
    21 [wiki:BackendUtilities utility functions] such as '''get_output_file_path()''' and '''try_fopen()'''
     21[BackendUtilities utility functions] such as '''get_output_file_path()''' and '''try_fopen()'''
    2222(see example below).
    2323
     
    116116}}}
    117117
     118== Using scripting languages (Python, Perl) ==
     119
     120The program '''script_validator''' allows you to write your validation logic
     121in your language of choice (Python, Perl, Java, bash).
     122'''script_validator''' takes two additional command-line arguments:
     123
     124 '''--init_script filename''' :: name of "init script" to check a result.
     125 '''--compare_script filename''' :: name of script to compare two results.
     126
     127The init script is called as
     128{{{
     129filename f1 ... fn
     130}}}
     131where f1 ... fn are the output files of a job (there may be just one).
     132It exits with zero if the files are valid.
     133
     134The compare script is called as
     135{{{
     136filename f1 ... fn g1 ... gn
     137}}}
     138where f1 ... fn are the output files of one job,
     139and g1 ... gn are the output files are another job.
     140It exits zero if the files are equivalent.
     141
     142The scripts must be put in your project's bin/ directory.
     143
     144For applications that don't use replication, the compare script need not be given.
     145
    118146== Testing your validator ==
    119147