diff options
author | John Langford <jl@hunch.net> | 2013-11-16 20:32:35 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-11-16 20:32:35 +0400 |
commit | a020c0a9e55c382c2a0fe451fabe6b84c40586e3 (patch) | |
tree | fd4f65c1f8a0905e746704e365bbfc00404fbd09 /test/RunTests | |
parent | 9ce719f811a0687a7371ec5e661742e8efbfc87f (diff) | |
parent | d7e51ee5c066c27d312edd435b3aeda158a6baca (diff) |
fixed merge
Diffstat (limited to 'test/RunTests')
-rwxr-xr-x | test/RunTests | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/RunTests b/test/RunTests index b13ebdb7..8d2aaf2d 100755 --- a/test/RunTests +++ b/test/RunTests @@ -19,6 +19,8 @@ my $LDA; my $Diff = 'diff'; my $Cat = 'cat'; +my $diff_opts = '-N --minimal --side-by-side --suppress-common-lines --ignore-all-space --strip-trailing-cr -W 150'; + my @ToTest = (); sub usage(@) { @@ -286,7 +288,9 @@ sub lenient_array_compare($$) { sub diff_lenient_float($$) { my ($reffile, $outfile) = @_; my $status = 0; + my $diff_opts = '-N --minimal --side-by-side --suppress-common-lines --ignore-all-space --strip-trailing-cr -W 200'; + my $tmpf = 'lenient-diff.tmp'; system("$Diff $diff_opts $reffile $outfile >$tmpf"); $status = $? >> 8; @@ -349,7 +353,7 @@ sub diff($$) { } # Actually run the diff - my $diff_cmd = "$Diff -N $reffile $outfile"; + my $diff_cmd = "$Diff $diff_opts $reffile $outfile"; system("$diff_cmd >diff.tmp"); $status = $? >> 8; if (-s 'diff.tmp') { @@ -723,7 +727,7 @@ __DATA__ train-sets/ref/bs.prvote.predict # Test 29: affix features -{VW} -d train-sets/affix_test.dat -k -c --passes 40 --holdout_after 4 --affix -2 +{VW} -d train-sets/affix_test.dat -k -c --passes 10 --holdout_off --affix -2 train-sets/ref/affix_test.stdout train-sets/ref/affix_test.stderr |