#!/usr/bin/perl


#..do this to pick up TestTools.
BEGIN { unshift(@INC,"./test_data/"); }

use TestTools;
use strict;

# handle to test module, initialises some setup stuff.
my $test_handle = TestTools->new(tests_to_run => 4);

# use these to create output files to check.

# ..this is the to be tested version.
$test_handle->run_tested("< test.caf > test.out 2>/dev/null");

my(%installed,%tested);

$test_handle->read_template_output(\%installed,'../test_data/templates.out','Reading installed output');

$test_handle->read_template_output(\%tested,'test.out','Reading test output');

$test_handle->compare_output(\%installed,\%tested,'Comparing output lines');

exit;


END {
    $test_handle->print_test_results();
}







