generate-glean-tests.py: convert getopt to argparse

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
piglit-summary.py: Adds missing function

currently the -l option is broken, since it calls the parse_listfile
function, which is not available in piglit-summary.py.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
piglit-summary.py: A few minor performance tweaks

Python style recommends xrange() over range() for performance reasons.
Further replacing a using of arrays and append with tuples and absolute
definition is slightly faster.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
piglit-summary.py: Switch from getopt to argparse

This should move piglit purely to using argparse instead of getopt

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Create new file: framework/argActions.py

This file is intended to contain custom argparse actions. The biggest
advantage this gives us is that code can easily be shared between
argparse instances.

For example, the first class included is parseList, this class reads a
newline separated list file and returns an array, after expanding out ~.
This function is currently implemented separately in both
piglit-summary.py and piglit-summary-html.py.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
summary: replace parse_listfile with argActions.ParseList

Touches piglit-summary.py and piglit-summary-html.py.

Makes codes easier to read and work with, since argparse now does all
the work of dealing with list files.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>