On 11.7.2011 08:43, Marian Csontos wrote:
On 07/10/2011 10:33 AM, Sunil_Gupta2(a)Dell.com wrote:
> Hello List,
>
> The tests created by beaker-wizard utility creates runtest.sh which is
> different from the runtest.sh created by rhts-run-simple-test in terms
> of syntax used hence is not recognized when “make run” is executed. The
> runtest.sh looks like
[snip]
>
> Can anybody help me understand the syntax of file? and point me to the
> language if it is a programming language syntax.
Hello Sunil, it's plain bash using beakerlib.
The preface is for some reason missing:
#!/bin/bash
# ... headers and copyright should go here ...
# Include Beaker environment
. /usr/bin/rhts-environment.sh
. /usr/lib/beakerlib/beakerlib.sh
What's your version rhts-devel package, please?
rpm -qf `which beaker-wizard`
Also, has the test machine got beakerlib and rhts-test-env installed?
rpm -q beakerlib rhts-test-env
-- Marian
>
> Regards,
>
> Sunil
Hello Sunil,
beakerlib is a bash library we use. Check the product page
https://fedorahosted.org/beakerlib/ if it wouldn't be helpful to you as
well.
If not, you can tell beaker-wizard to use different skeleton (=
template) for your new tests like this:
beaker-wizard -s <skeleton> ...
Available skeletons on my system: beakerlib, rhts, multihost, simple,
empty, skel1, skel2, skel3
Beakerlib is the default one, 'rhts' and 'simple' are probably similar
to what rhts-run-simple-test creates. Skeletons skel1 - skel3 are custom
ones, defined in beaker-wizard's config file.
You can also change skeleton in the interactive mode of beaker-wizard or
set the default in config file.
Hope that helps,
Ales