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

# ISE test script 8

# Set_Output_File_Name Function with Valid Output File

set image_count = 0
set failure_count = 0
echo "Test 8: testing set output file name with all .jpg images inside directory 'images'"
foreach jpg_file (images/*.jpg)
    ise_test_8 $jpg_file
    if ($status != 0) then
	echo "Test 8: Set output file name failed for " $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 8: passed for all files in images directory."
else
    echo "Test 8: passed for all other files in images directory."
endif
exit 0

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