--1279267483-79802818-1033025108=:17684
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi all,
this is the first release of autocontest.pl
Use it at your own risk, I just can say that "It works for me(tm)"
What's that?
A simple (and ugly) PERL script for automated kernel benchmarks, it was
written for contest <http://contest.kolivas.net/>, it simply generates a
custom (dummy) runlevel and boot every kernel image found in
/etc/lilo.conf in this runlevel, perform contest, reboot the next image,
perform contest, etc.
Err OK, what do I need to run it?
PERL 5 will do, hopefully.
LILO, with it's config file in /etc/lilo.conf otherwise edit the script 8)
Bash, along with cp, cat, rm, and find
A directory /usr/src/linux-2.4.19 with the 2.4.19 kernel sources in (this
is for contest)
How do I run it?
perl autoncontest.pl and then cross your fingers 8)
Will it screw my initscripts?
I don't know
Why your english is so crappy?
I'm Chilean, I speak Spanish 8)
How it works?
Read the source, Luke.
It was tested on RedHat 7.3 and (null), and debian 2.2, if it runs in
another version/distro, please let me know
Questions/Comments/Patches/Rewrites/Rants/Flames are welcome.
Best regards.
-- Robinson Maureira Castillo Asesor DAI INACAP--1279267483-79802818-1033025108=:17684 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="autocontest.pl" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.44.0209260325080.17684@alumno.inacap.cl> Content-Description: Content-Disposition: attachment; filename="autocontest.pl"
IyEvdXNyL2Jpbi9wZXJsDQojIA0KIyBBdXRvbWF0aWMgZXhlY3V0aW9uIG9m IGNvbnRlc3QgPGh0dHA6Ly9jb250ZXN0LmtvbGl2YXMubmV0Lz4NCiMgYWdh aW5zdCBrZXJuZWwgaW1hZ2VzIGxpc3RlZCBpbiAvZXRjL2xpbG8uY29uZg0K Iw0KIyBhdXRvY29udGVzdC5wbCB2MC4wNGEgUnVuIGl0IEAgeW91ciBvd24g cmlzay4NCiMNCiMgQ29weXJpZ2h0IDIwMDIsIFJvYmluc29uIE1hdXJlaXJh LCBhbGwgcmlnaHRzIHJlc2VydmVkLg0KIw0KIyBBdXRob3I6ICBSb2JpbnNv bi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uY29udGVzdCAvZXRjL2lu aXR0YWINCiAgICAgICAgcm0gLWZyIC9ldGMvcmNcJFJVTkxFVkVMLmQvDQoJ cm0gLWZyIC8ubnVtDQoJcm0gLWZyIC8ubGFiZWxzDQogICAgICAgIGxpbG8N CiAgICAgICAgcmVib290DQoJZXhpdCAwDQpmaQ0KZWNobyBcJFRJTUVTID4g Ly5udW0NCmxpbG8gLVIgXCROQU1FIFwkUlVOTEVWRUwgdmdhPW5vcm1hbCBh cG09b2ZmDQpyZWJvb3QNCkVPRg0KY2xvc2UgRkQ7DQoNCiMgRmluYWxseSwg c2V0IGxpbG8gZm9yIHRoZSBmaXJzdCByZWJvb3QsIGFuZCByZWJvb3QuDQpz eXN0ZW0oImxpbG8iLCItUiIsJGtlcm5lbCwkbmV3LCJ2Z2E9bm9ybWFsIiwi YXBtPW9mZiIpOw0Kc3lzdGVtKCJyZWJvb3QiKTsNCg0KIyBXZSBzaG91bGQg bmV2ZXIgZ2V0IGhlcmUgOCkNCmV4aXQgMDsNCg0K --1279267483-79802818-1033025108=:17684-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/