From 83fe261d58b430523cde4adee62b59a39b7d1917 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Thu, 14 May 2015 14:34:25 +0200 Subject: [PATCH] More informative output if onetest.cmd run singularly. It was not intended that this cmd file be run separately. It is invoked by alltest1.cmd which in turn is invoked by alltest.cmd. This 'chain' is requierd to set up the appropriate environmnet variables. --- test/onetest.cmd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/onetest.cmd b/test/onetest.cmd index dd57e6e..13536bf 100755 --- a/test/onetest.cmd +++ b/test/onetest.cmd @@ -13,6 +13,8 @@ REM @if "%TIDYOUT%." == "." goto Err3 @if NOT EXIST %TIDYOUT%\nul goto Err4 @if NOT EXIST input\nul goto Err5 +@if "%1x" == "x" goto Err8 +@if "%2x" == "x" goto Err9 set TESTNO=%1 set EXPECTED=%2 @@ -105,4 +107,13 @@ goto done @pause @goto done +:Err8 +@echo. +@echo ERROR: No input test number given! +:Err9 +@echo ERROR: No expected exit value given! +@echo. +@goto done + + :done