10-08-2008
If the string is somewhat fix, you can test it with case/esac, or should it be generic?
9 More Discussions You Might Find Interesting
1. Programming
Which function should I use to convert an Integer to a String or Char format ?
Thanx (2 Replies)
Discussion started by: psilva
2 Replies
2. Programming
Hi everyone ,
Is there any predefined C function that tests whether an input is string or an integer?
Thank's in advance :) (3 Replies)
Discussion started by: qqq
3 Replies
3. Programming
How can I compare two integer values which is stored in char pointers?
suppose I have char *a and char *b having values 10 and 20. how can i find the shorter value? (1 Reply)
Discussion started by: naan
1 Replies
4. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
5. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
6. Programming
Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong.
From the first program I get a blank screen, program won't generate 10*10 matrix.
And second problem is I... (6 Replies)
Discussion started by: solaris_user
6 Replies
7. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
8. Shell Programming and Scripting
Hi folks,
I am self-learning as I can
I have a script that has read a file into an array.
I can read out each line in the array with the code:
for INDEX in {0..$LENGTH} ## $LENGTH was determined at the read in
do
echo "${data}"
done
What I need to do is test the first char... (2 Replies)
Discussion started by: Marc G
2 Replies
9. Shell Programming and Scripting
Working out a small problem, I have a need of a Perl snippet which might look something like this:
use integer;
...
if ($changingNumber / 2)
{
do something;
}
else
{
do something else;
}
...
What I want to happen is for "if" to resolve as "true" every time a whole... (3 Replies)
Discussion started by: LinQ
3 Replies
LEARN ABOUT DEBIAN
gnatpython-mainloop
gnatpython-mainloop(1) Generic loop for testsuites gnatpython-mainloop(1)
NAME
gnatpython-mainloop - command line interface for testsuite mainloop (in the ACATS/Fixed bugs style)
SYNOPSIS
gnatpython-mainloop [options] test_list_file command_pattern
DESCRIPTION
gnatpython-mainloop program use the MainLoop package which provides a class called MainLoop that provides a generic implementation of a
testsuite main loop. Parallelism, abortion and time control are the key features.
Each MainLoop instance controls a set of Workers whose number is set by the user. The list of tasks/tests to be achieved by the workers, is
provided by a list. The mainloop distribute the elements to the the workers when they have nothing to do. Usually, an element is a string
identifying the test to be run. An element can also be a list in that case the worker will execute sequentially each "subelement". This
case is used to address dependency between tests (occurs for example with the ACATS).
When a worker is asked to run a test, the command is executed by calling run_testcase (testid). Once a test is finished the function col-
lect_result will be called with test id, and process (a gnatpython.ex.Run object) and the job_info as parameters. Both run_testcase and
collect_result are user defined functions.
Note also that from the user point view there is no parallelism to handle. The two user defined function run_testcase and collect_result
are called sequentially.
Note that this main page is written using comments from the code by the package maintainer.
OPTIONS
Options are not documented.
SEE ALSO
gnatpython-rlimit
gnatpython-opt-parser
November 7, 2011 gnatpython-mainloop(1)