| 118 | == Using scripting languages (Python, Perl) == |
| 119 | |
| 120 | The program '''script_validator''' allows you to write your validation logic |
| 121 | in 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 | |
| 127 | The init script is called as |
| 128 | {{{ |
| 129 | filename f1 ... fn |
| 130 | }}} |
| 131 | where f1 ... fn are the output files of a job (there may be just one). |
| 132 | It exits with zero if the files are valid. |
| 133 | |
| 134 | The compare script is called as |
| 135 | {{{ |
| 136 | filename f1 ... fn g1 ... gn |
| 137 | }}} |
| 138 | where f1 ... fn are the output files of one job, |
| 139 | and g1 ... gn are the output files are another job. |
| 140 | It exits zero if the files are equivalent. |
| 141 | |
| 142 | The scripts must be put in your project's bin/ directory. |
| 143 | |
| 144 | For applications that don't use replication, the compare script need not be given. |
| 145 | |