[qmtest] ShellScriptTest under Windows?
Andrew Funk
afunk at ll.mit.edu
Thu Feb 12 21:45:34 UTC 2004
Hi,
I did read that documentation in the code and I thought about editing
the context to use a different shell. However I guess what I would like
is for QMTest to have the same behavior under Unix and Windows out of
the box, or if not then to know exactly what are the limitations so that
I can design my tests for both OS.
Thanks,
Andy
-----Original Message-----
From: Scott Lowrey [mailto:slowrey at nextone.com]
Sent: Thursday, February 12, 2004 4:16 PM
To: Andrew Funk
Cc: qmtest at codesourcery.com
Subject: Re: [qmtest] ShellScriptTest under Windows?
Andrew Funk wrote:
>Hi,
>
>Are ShellScriptTests supported under Windows?
>
>
The shell script test is the same as the command test (which simply runs
an executable) except the name of a shell is prepended to the contents
of the script. From the book:
QMTest determines which shell to use by the following method:
- If the context contains the property
'ShellScriptTest.script_shell', its value is split into an
argument list and used.
- Otherwise, if the '.qmrc' configuration file contains the common
property 'script_shell', its value is split into an argument
list and used.
- Otherwise, the default shell for the target system is used.
So, unless you point your script_shell variable to Cygwin or some other
Windows rendition of a Unix shell, I'm guessing your script would get
tossed to the Windows 'cmd' (DOS) shell... where it would crash and
burn. (Unless you entered a valid DOS script?)
--
*Scott Lowrey*
NexTone Communications
Germantown, Maryland
/(240)912-1369/
NexTone.com <http://nextone.com>
More information about the qmtest
mailing list