diff mbox

[autotest,1/6] add ebizzy in autotest

Message ID a50cf5ab0907080117q2fa20ad8if20fdb1b9973abfd@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

sudhir kumar July 8, 2009, 8:17 a.m. UTC
This patch adds the wrapper for ebizzy into autotest. here is the link
to get a copy of the test tarball.
http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809

Please review the patch and provide your comments.


Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>

+        cmd = os.path.join(self.srcdir, 'ebizzy') + ' ' + args
+        utils.system(cmd)

Comments

sudhir kumar July 10, 2009, 11:29 a.m. UTC | #1
So is there any plan for adding this patch set in the patch queue? I
would love to incorporate all the comments if any.

On Wed, Jul 8, 2009 at 1:47 PM, sudhir kumar<smalikphy@gmail.com> wrote:
> This patch adds the wrapper for ebizzy into autotest. here is the link
> to get a copy of the test tarball.
> http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
>
> Please review the patch and provide your comments.
>
>
> Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
>
> Index: autotest/client/tests/ebizzy/control
> ===================================================================
> --- /dev/null
> +++ autotest/client/tests/ebizzy/control
> @@ -0,0 +1,11 @@
> +NAME = "ebizzy"
> +AUTHOR = "Sudhir Kumar <skumar@linux.vnet.ibm.com>"
> +TIME = "MEDIUM, VARIABLE"
> +TEST_CATEGORY = "FUNCTIONAL"
> +TEST_CLASS = "SYSTEM STRESS"
> +TEST_TYPE = "CLIENT"
> +DOC = """
> +http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
> +"""
> +
> +job.run_test('ebizzy', args = '-vv')
> Index: autotest/client/tests/ebizzy/ebizzy.py
> ===================================================================
> --- /dev/null
> +++ autotest/client/tests/ebizzy/ebizzy.py
> @@ -0,0 +1,32 @@
> +import os
> +from autotest_lib.client.bin import utils, test
> +from autotest_lib.client.common_lib import error
> +
> +class ebizzy(test.test):
> +    version = 3
> +
> +    def initialize(self):
> +        self.job.require_gcc()
> +
> +
> +    # http://sourceforge.net/project/downloading.php?group_id=202378&filename=ebizzy-0.3.tar.gz
> +    def setup(self, tarball = 'ebizzy-0.3.tar.gz'):
> +        tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
> +        utils.extract_tarball_to_dir(tarball, self.srcdir)
> +        os.chdir(self.srcdir)
> +
> +        utils.system('[ -x configure ] && ./configure')
> +        utils.system('make')
> +
> +
> +    # Note: default we use always mmap()
> +    def run_once(self, args = '', num_chunks = 1000, chunk_size =
> 512000, seconds = 100, num_threads = 100):
> +
> +        #TODO: Write small functions which will choose many of the above
> +        # variables dynamicaly looking at guest's total resources
> +        logfile = os.path.join(self.resultsdir, 'ebizzy.log')
> +        args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks,
> chunk_size, seconds, num_threads)
> +        args = args + ' ' + args2
> +
> +        cmd = os.path.join(self.srcdir, 'ebizzy') + ' ' + args
> +        utils.system(cmd)
>
>
> --
> Sudhir Kumar
>
Martin Bligh July 11, 2009, 12:35 a.m. UTC | #2
On Fri, Jul 10, 2009 at 4:29 AM, sudhir kumar<smalikphy@gmail.com> wrote:
> So is there any plan for adding this patch set in the patch queue? I
> would love to incorporate all the comments if any.

Yup, just was behind on patches.

I added it now - the mailer you are using seems to chew patches fairly
thoroughly though ... if it's gmail, it does that ... might want to just
attach as text ?

> On Wed, Jul 8, 2009 at 1:47 PM, sudhir kumar<smalikphy@gmail.com> wrote:
>> This patch adds the wrapper for ebizzy into autotest. here is the link
>> to get a copy of the test tarball.
>> http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
>>
>> Please review the patch and provide your comments.
>>
>>
>> Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
>>
>> Index: autotest/client/tests/ebizzy/control
>> ===================================================================
>> --- /dev/null
>> +++ autotest/client/tests/ebizzy/control
>> @@ -0,0 +1,11 @@
>> +NAME = "ebizzy"
>> +AUTHOR = "Sudhir Kumar <skumar@linux.vnet.ibm.com>"
>> +TIME = "MEDIUM, VARIABLE"
>> +TEST_CATEGORY = "FUNCTIONAL"
>> +TEST_CLASS = "SYSTEM STRESS"
>> +TEST_TYPE = "CLIENT"
>> +DOC = """
>> +http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
>> +"""
>> +
>> +job.run_test('ebizzy', args = '-vv')
>> Index: autotest/client/tests/ebizzy/ebizzy.py
>> ===================================================================
>> --- /dev/null
>> +++ autotest/client/tests/ebizzy/ebizzy.py
>> @@ -0,0 +1,32 @@
>> +import os
>> +from autotest_lib.client.bin import utils, test
>> +from autotest_lib.client.common_lib import error
>> +
>> +class ebizzy(test.test):
>> +    version = 3
>> +
>> +    def initialize(self):
>> +        self.job.require_gcc()
>> +
>> +
>> +    # http://sourceforge.net/project/downloading.php?group_id=202378&filename=ebizzy-0.3.tar.gz
>> +    def setup(self, tarball = 'ebizzy-0.3.tar.gz'):
>> +        tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
>> +        utils.extract_tarball_to_dir(tarball, self.srcdir)
>> +        os.chdir(self.srcdir)
>> +
>> +        utils.system('[ -x configure ] && ./configure')
>> +        utils.system('make')
>> +
>> +
>> +    # Note: default we use always mmap()
>> +    def run_once(self, args = '', num_chunks = 1000, chunk_size =
>> 512000, seconds = 100, num_threads = 100):
>> +
>> +        #TODO: Write small functions which will choose many of the above
>> +        # variables dynamicaly looking at guest's total resources
>> +        logfile = os.path.join(self.resultsdir, 'ebizzy.log')
>> +        args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks,
>> chunk_size, seconds, num_threads)
>> +        args = args + ' ' + args2
>> +
>> +        cmd = os.path.join(self.srcdir, 'ebizzy') + ' ' + args
>> +        utils.system(cmd)
>>
>>
>> --
>> Sudhir Kumar
>>
>
>
>
> --
> Sudhir Kumar
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
sudhir kumar July 12, 2009, 10:08 a.m. UTC | #3
On Sat, Jul 11, 2009 at 6:05 AM, Martin Bligh<mbligh@google.com> wrote:
> On Fri, Jul 10, 2009 at 4:29 AM, sudhir kumar<smalikphy@gmail.com> wrote:
>> So is there any plan for adding this patch set in the patch queue? I
>> would love to incorporate all the comments if any.
>
> Yup, just was behind on patches.
>
> I added it now - the mailer you are using seems to chew patches fairly
> thoroughly though ... if it's gmail, it does that ... might want to just
> attach as text ?
Thanks!
Ah! I have been using gmail only in the text mode. I was unable to
subscribe to the list using my imap id(and i use mutt client for that)
though.
Is this problem of gmail known to all? Any workaround ?

>
>> On Wed, Jul 8, 2009 at 1:47 PM, sudhir kumar<smalikphy@gmail.com> wrote:
>>> This patch adds the wrapper for ebizzy into autotest. here is the link
>>> to get a copy of the test tarball.
>>> http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
>>>
>>> Please review the patch and provide your comments.
>>>
>>>
>>> Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
>>>
>>> Index: autotest/client/tests/ebizzy/control
>>> ===================================================================
>>> --- /dev/null
>>> +++ autotest/client/tests/ebizzy/control
>>> @@ -0,0 +1,11 @@
>>> +NAME = "ebizzy"
>>> +AUTHOR = "Sudhir Kumar <skumar@linux.vnet.ibm.com>"
>>> +TIME = "MEDIUM, VARIABLE"
>>> +TEST_CATEGORY = "FUNCTIONAL"
>>> +TEST_CLASS = "SYSTEM STRESS"
>>> +TEST_TYPE = "CLIENT"
>>> +DOC = """
>>> +http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
>>> +"""
>>> +
>>> +job.run_test('ebizzy', args = '-vv')
>>> Index: autotest/client/tests/ebizzy/ebizzy.py
>>> ===================================================================
>>> --- /dev/null
>>> +++ autotest/client/tests/ebizzy/ebizzy.py
>>> @@ -0,0 +1,32 @@
>>> +import os
>>> +from autotest_lib.client.bin import utils, test
>>> +from autotest_lib.client.common_lib import error
>>> +
>>> +class ebizzy(test.test):
>>> +    version = 3
>>> +
>>> +    def initialize(self):
>>> +        self.job.require_gcc()
>>> +
>>> +
>>> +    # http://sourceforge.net/project/downloading.php?group_id=202378&filename=ebizzy-0.3.tar.gz
>>> +    def setup(self, tarball = 'ebizzy-0.3.tar.gz'):
>>> +        tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
>>> +        utils.extract_tarball_to_dir(tarball, self.srcdir)
>>> +        os.chdir(self.srcdir)
>>> +
>>> +        utils.system('[ -x configure ] && ./configure')
>>> +        utils.system('make')
>>> +
>>> +
>>> +    # Note: default we use always mmap()
>>> +    def run_once(self, args = '', num_chunks = 1000, chunk_size =
>>> 512000, seconds = 100, num_threads = 100):
>>> +
>>> +        #TODO: Write small functions which will choose many of the above
>>> +        # variables dynamicaly looking at guest's total resources
>>> +        logfile = os.path.join(self.resultsdir, 'ebizzy.log')
>>> +        args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks,
>>> chunk_size, seconds, num_threads)
>>> +        args = args + ' ' + args2
>>> +
>>> +        cmd = os.path.join(self.srcdir, 'ebizzy') + ' ' + args
>>> +        utils.system(cmd)
>>>
>>>
>>> --
>>> Sudhir Kumar
>>>
>>
>>
>>
>> --
>> Sudhir Kumar
>>
>
Lucas Meneghel Rodrigues July 13, 2009, 3:20 a.m. UTC | #4
On Sun, Jul 12, 2009 at 7:08 AM, sudhir kumar<smalikphy@gmail.com> wrote:
> On Sat, Jul 11, 2009 at 6:05 AM, Martin Bligh<mbligh@google.com> wrote:
>> On Fri, Jul 10, 2009 at 4:29 AM, sudhir kumar<smalikphy@gmail.com> wrote:
>>> So is there any plan for adding this patch set in the patch queue? I
>>> would love to incorporate all the comments if any.
>>
>> Yup, just was behind on patches.
>>
>> I added it now - the mailer you are using seems to chew patches fairly
>> thoroughly though ... if it's gmail, it does that ... might want to just
>> attach as text ?
> Thanks!
> Ah! I have been using gmail only in the text mode. I was unable to
> subscribe to the list using my imap id(and i use mutt client for that)
> though.
> Is this problem of gmail known to all? Any workaround ?

Yes, gmail wraps stuff automagically, I don't know any workarounds for
that. The best workaround I'd suggest is git-format-patch and
git-send-email :)
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Martin Bligh July 13, 2009, 6:28 p.m. UTC | #5
On Sun, Jul 12, 2009 at 8:20 PM, Lucas Meneghel Rodrigues<lmr@redhat.com> wrote:
> On Sun, Jul 12, 2009 at 7:08 AM, sudhir kumar<smalikphy@gmail.com> wrote:
>> On Sat, Jul 11, 2009 at 6:05 AM, Martin Bligh<mbligh@google.com> wrote:
>>> On Fri, Jul 10, 2009 at 4:29 AM, sudhir kumar<smalikphy@gmail.com> wrote:
>>>> So is there any plan for adding this patch set in the patch queue? I
>>>> would love to incorporate all the comments if any.
>>>
>>> Yup, just was behind on patches.
>>>
>>> I added it now - the mailer you are using seems to chew patches fairly
>>> thoroughly though ... if it's gmail, it does that ... might want to just
>>> attach as text ?
>> Thanks!
>> Ah! I have been using gmail only in the text mode. I was unable to
>> subscribe to the list using my imap id(and i use mutt client for that)
>> though.
>> Is this problem of gmail known to all? Any workaround ?
>
> Yes, gmail wraps stuff automagically, I don't know any workarounds for
> that. The best workaround I'd suggest is git-format-patch and
> git-send-email :)

Yeah, send from commandline or use attachments - either is fine.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: autotest/client/tests/ebizzy/control
===================================================================
--- /dev/null
+++ autotest/client/tests/ebizzy/control
@@ -0,0 +1,11 @@ 
+NAME = "ebizzy"
+AUTHOR = "Sudhir Kumar <skumar@linux.vnet.ibm.com>"
+TIME = "MEDIUM, VARIABLE"
+TEST_CATEGORY = "FUNCTIONAL"
+TEST_CLASS = "SYSTEM STRESS"
+TEST_TYPE = "CLIENT"
+DOC = """
+http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809
+"""
+
+job.run_test('ebizzy', args = '-vv')
Index: autotest/client/tests/ebizzy/ebizzy.py
===================================================================
--- /dev/null
+++ autotest/client/tests/ebizzy/ebizzy.py
@@ -0,0 +1,32 @@ 
+import os
+from autotest_lib.client.bin import utils, test
+from autotest_lib.client.common_lib import error
+
+class ebizzy(test.test):
+    version = 3
+
+    def initialize(self):
+        self.job.require_gcc()
+
+
+    # http://sourceforge.net/project/downloading.php?group_id=202378&filename=ebizzy-0.3.tar.gz
+    def setup(self, tarball = 'ebizzy-0.3.tar.gz'):
+        tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
+        utils.extract_tarball_to_dir(tarball, self.srcdir)
+        os.chdir(self.srcdir)
+
+        utils.system('[ -x configure ] && ./configure')
+        utils.system('make')
+
+
+    # Note: default we use always mmap()
+    def run_once(self, args = '', num_chunks = 1000, chunk_size =
512000, seconds = 100, num_threads = 100):
+
+        #TODO: Write small functions which will choose many of the above
+        # variables dynamicaly looking at guest's total resources
+        logfile = os.path.join(self.resultsdir, 'ebizzy.log')
+        args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks,
chunk_size, seconds, num_threads)
+        args = args + ' ' + args2
+