I use this shell script to iterate through a series of files and execuite them and report
if they worked or not.
#!/bin/sh
for file in `ls test*`
do
$file
if [ $? -eq 0 ]
then
echo $file passed.
else
echo $file failed.
fi
done
That doesn't look like any Assembler/MASM code I've ever seen... :eek
it's CGI perl.
Zcoder....
That would be best posted in a CGI/Perl forum then?
It's a shell script for unix.
It iterates through each file starting with "test" and executes it.
If the exit code is 0 the file passed otherwise it failed.
The equivalent in a CMD.EXE batch file:
@ECHO OFF
FOR %%i IN (test*.exe) DO @(
(ECHO %%i && %%i && ECHO TestPassed && ECHO.
) || ECHO TestFailed && ECHO.
)
Thanks for the windows version.
I use cygwin under windows so I can keep my scripts the same between environments.