Esempio n. 1
0
import os
import sys
import time

sys.path.append(
    os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), "..", "repos",
                 "mesa_ci"))
import build_support as bs

# HACK
# repeatedly invoking build() will overwrite the start times.  Record
# it now and write the correct value when the last build() has
# finished.  build() was not intended to be used this way.

start_time = time.time()

bs.build(bs.PiglitTester(_suite="cpu", device_override="snbgt2"))
bs.build(bs.PiglitTester(_suite="cpu", device_override="hswgt3"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="bdwgt2"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="sklgt3"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="bsw"),
         import_build=False)

options = bs.Options()
if (options.result_path):
    bs.ProjectInvoke(options).set_info("start_time", start_time)
Esempio n. 2
0
            return 120
        if self.hardware == "bxt":
            return 120
        if self.hardware == "kbl":
            return 120
        if self.hardware == "g33":
            return 120
        if self.hardware == "g965":
            return 50
        # all other test suites finish in 10 minutes or less.
        # TODO: put back to 25 when curro's regression is fixed
        return 40


# add the --piglit_test option to the standard options.  Parse the
# options, and strip the piglit_test so the options will work as usual
# for subsequent objects.
o = bs.CustomOptions("piglit args allow a specific test")
o.add_argument(arg='--piglit_test',
               type=str,
               default="",
               help="single piglit test to run.")
o.parse_args()

piglit_test = ""
if o.piglit_test:
    piglit_test = o.piglit_test

bs.build(bs.PiglitTester(_suite="gpu", piglit_test=piglit_test),
         time_limit=SlowTimeout())
Esempio n. 3
0
#!/usr/bin/python

import os
import sys
import time
sys.path.append(
    os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), ".."))
import build_support as bs

# HACK
# repeatedly invoking build() will overwrite the start times.  Record
# it now and write the correct value when the last build() has
# finished.  build() was not intended to be used this way.

start_time = time.time()

bs.build(bs.PiglitTester(_suite="cpu", device_override="byt"))
bs.build(bs.PiglitTester(_suite="cpu", device_override="g45"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="g965"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="ilk"),
         import_build=False)
bs.build(bs.PiglitTester(_suite="cpu", device_override="ivbgt2"),
         import_build=False)

options = bs.Options()
if (options.result_path):
    bs.ProjectInvoke(options).set_info("start_time", start_time)