News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Running a set of files ...

Started by James Ladd, July 18, 2006, 03:32:31 AM

Previous topic - Next topic

James Ladd

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


Ian_B

That doesn't look like any Assembler/MASM code I've ever seen...  :eek

zcoder

Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

Ian_B

That would be best posted in a CGI/Perl forum then?

James Ladd

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.

zooba

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.
)

James Ladd

Thanks for the windows version.
I use cygwin under windows so I can keep my scripts the same between environments.