Message ID | CAAfyv35zgDLpf6Hs0G0wESh0-BjoiWMH+4wA7+anSwR0rREtbA@mail.gmail.com |
---|---|
State | New, archived |
Headers | show |
Hi, On 28/07/2011 21:14, Belisko Marek wrote: > Hi, > Great job ;). Maybe small README how to use scripts. I try to run > ./performance-test.py but got en error because test.cfg doesn't exist. > Shouldn't there be input argument for specific board something like: > [...] Thanks for the feedback. You're right, READMEs are missing ; they'll come. The current procedure, regarding the configuration file, is: * write a configuration file (like those already provided as examples) * cp it to test.cfg * launch performance-test.py why the cp ? because it allows to tweak it without changing the original. But it would certainly be best to use a proper argument parsing (argparse, like for gnuplotize_*.py and generate_graphs.py) and have an optional configuration file. The material and documentation to reproduce the tests isn't fully available yet but will be very soon. I can already give you a link to the debian root filesystem (to be exported through NFS) that was used ; however I can't guarantee yet that it will work. http://free-electrons.com/~david/pub/RFS-benchmarks.tar.lzma (1.1GB) David. -- David Wagner, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
diff --git a/performance-tests.py b/performance-tests.py index 78c83f0..33a4292 100755 --- a/performance-tests.py +++ b/performance-tests.py @@ -168,7 +168,12 @@ def main(): global cur cfg = ConfigParser.ConfigParser() - cfg.read('test.cfg') + + if (len(sys.argv) < 2): + print "board configuration parameter missing!!!" + return + + cfg.read(sys.argv[1]) board_name = cfg.defaults()['board_name'] version = cfg.defaults()['version']