@rem /////////////////////////////////////////////////////////////////////////
@rem //
@rem // © University of Southampton IT Innovation Centre, 2004
@rem //
@rem // Copyright in this library belongs to the IT Innovation Centre of
@rem // 2 Venture Road, Chilworth Science Park, Southampton, SO16 7NP, UK.
@rem //
@rem // This software may not be used, sold, licensed, transferred, copied
@rem // or reproduced in whole or in part in any manner or form or in or
@rem // on any media by any person other than in accordance with the terms
@rem // of the Licence Agreement supplied with the software, or otherwise
@rem // without the prior written consent of the copyright owners.
@rem //
@rem // This software is distributed WITHOUT ANY WARRANTY, without even the
@rem // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
@rem // PURPOSE, except where stated in the Licence Agreement supplied with
@rem // the software.
@rem //
@rem //      Created by:             Stuart E. Middleton
@rem //      Created date:           2004/04/30
@rem //      Created for project:    GEMSS
@rem //
@rem /////////////////////////////////////////////////////////////////////////
@rem //
@rem //      Dependencies: None
@rem //
@rem /////////////////////////////////////////////////////////////////////////
@rem //
@rem //      Last commit info:       $Author: $
@rem //                              $Date: $
@rem //                              $Revision: $
@rem //
@rem /////////////////////////////////////////////////////////////////////////

@echo off
set iterations=3

echo === Iteration 0 Timestamp = %time% %date% >> batch-run.log

FOR /L %%i IN (1,1,%iterations%) DO call runsample_use_endpoint.bat >> batch-run.log && time /T && date /T && echo === Iteration %%i >> batch-run.log

echo === >> batch-run.log
echo Fatal error count (check log to find cause of errors): >> batch-run.log
find /C "Failed:" batch-run.log >> batch-run.log

echo === >> batch-run.log
echo Network connection error retry count: >> batch-run.log
find /C "Retry:" batch-run.log >> batch-run.log
