1
printf ( "testing $test_path, spelldump... " );
3
$windows = isset($_SERVER["WINDIR"]) || isset($_SERVER["windir"]) || isset($_SERVER["HOMEDRIVE"]);
6
$spelldump_path = "..\\bin\\debug\\spelldump";
8
$spelldump_path = "../src/spelldump";
13
exec ( "$spelldump_path $test_path/model.dict $test_path/model.aff $test_path/model.spell", $error, $retval );
15
if ( !file_exists ( "$test_path/model.spell" ) )
18
printf ( "done; 1/1 subtests OK\n" );
22
exec ( "$spelldump_path $test_path/model.dict $test_path/model.aff $test_path/current.spell", $error, $retval );
24
if ( !file_exists ( "$test_path/current.spell" ) )
27
$model = file_get_contents ( "$test_path/model.spell" );
28
$result = file_get_contents ( "$test_path/current.spell" );
29
if ( $model != $result )
32
system ( "diff -u3 $test_path/model.spell $test_path/current.spell > $test_path/report.txt" );
34
system ( "diff $test_path/model.spell $test_path/current.spell > $test_path/report.txt" );
36
printf ( "FAILED\n" );
40
unlink ( "$test_path/current.spell" );
41
printf ( "done; 1/1 subtests OK\n" );
b'\\ No newline at end of file'