#!/usr/local/bin/tcsh -f

# ISE test script 2

# JPEG_ISE Constructor with All Parameters

set image_count = 0
set failure_count = 0
echo "Test 2: testing constructor with all parameters on all .jpg images inside directory 'images'"
set key = "enterthekey"
set ise = ".ise"
foreach jpg_file (images/*.jpg)
	set ise_file = $jpg_file$ise
	ise_test_2 $key $jpg_file $ise_file
	if ($status != 0) then
	    echo "Test 2: Constructor with all parameters failed " + $jpg_file
	    @ failure_count += 1
	endif
	@ image_count += 1
	if ($image_count == 100) then
	    echo "...still working"
	    @ image_count = 0
	endif
end
if ($failure_count == 0) then
    echo "Test 2: Constructor with all parameters passed for all images."
else
    echo "Test 2: Constructor with all parameters passed for all other images "
endif

exit 0

###############
# END OF FILE #
###############
