iftmatch - tpcclib 0.8.0 © 2023 by Turku PET Centre

Verify that the contents in two IFT files is similar.
By default, all contents (keys and values) are tested, but by specifying
a key, only values of that that key are tested. If the second IFT file
has a different key name, then it can be specified as the second key name.
IFT files are text files with key and (optional) value at each line,
for example:
   calibrated := yes
   calibration_coefficient := 6.78901E-005
Key and value strings are case-insensitive. Lines may be in any order,
except that if more than one key instances are found, the order of the
values must be the same.
Program returns 0, if match is found, 1-9 in case of an error, or
10, if matching key or value is not found.
Usage: iftmatch [options] filename1 filename2 [key [key2]]
-lt | -gt | -abs=<limit>
     Values in file 1 and 2 are tested numerically (not as text), to be less
     (-lt) or greater (-gt) in file 1 than in file 2, or the absolute
     difference is not allowed to exceed the specified limit (-abs=<limit>)
 -h, --help
     Display usage information on standard output and exit.
 -v, --version
     Display version and compile information on standard output and exit.
 -d[n], --debug[=n], --verbose[=n]
     Set the level (n) of debugging messages and listings.
 -q, --quiet
     Suppress displaying normal results on standard output.
 -s, --silent
     Suppress displaying anything except errors.
Example 1:
     iftmatch data1.ift data2.ift
Example 2:
     iftmatch iea345header.txt validheader.txt calibrated
Example 3:
     iftmatch -abs=0.02 iea345hdr.txt validhdr.txt halflife
Example 4:
     iftmatch -abs=0.02 iea345hdr.txt validhdr.txt half-life halflife
See also: iftisval, iftlist, csv2ift
Keywords: IFT, tool, software testing