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

# ISE test script 11

# Get_Input_File_Name Function When input_file_name != NULL

set key = "enterthekey"
set image_count = 0
set failure_count = 0
echo "Test 11: testing get input file name using all .jpg images inside directory 'images'"
foreach jpg_file (images/*.jpg)
    ise_test_11 $key $jpg_file
    if ($status != 0) then
	echo "Test 11: Get input file name with valid input file 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 11: passed for all files in images directory." 
else
   echo "Test 11: passed for all other files in images directory."
endif

exit 0

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