OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [trunk/] [scripts/] [regression] - Diff between revs 84 and 95

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 84 Rev 95
Line 25... Line 25...
             "fib", "otir", "nwtest"]
             "fib", "otir", "nwtest"]
status = {}
status = {}
 
 
def run_tests (test_list):
def run_tests (test_list):
    for test_name in test_list:
    for test_name in test_list:
        os.system ("scripts/run %s" % test_name)
        #os.system ("scripts/run %s" % test_name)
 
        os.system ("(cd tests; make %s.ihx)" % test_name)
 
        os.system ("sc_env/sc_env_top -i tests/%s.ihx | tee logs/%s.log" % (test_name, test_name))
 
 
def check_results (test_list):
def check_results (test_list):
    print "%-20s %s" % ("Test", "Status")
    print "%-20s %s" % ("Test", "Status")
    for test_name in test_list:
    for test_name in test_list:
        try:
        try:
            testh = open ("logs/%s.log" % test_name, "r")
            testh = open ("logs/%s.log" % test_name, "r")
            status[test_name] = "crashed"
            status[test_name] = "crashed"
 
 
            testl = testh.readline()
            testl = testh.readline()
            while (testl != ''):
            while (testl != ''):
                if (testl.find ("TEST PASSED")):
                if (testl.find ("TEST PASSED") != -1):
                    status[test_name] = "passed"
                    status[test_name] = "passed"
                elif (testl.find ("TEST FAILED")):
                elif (testl.find ("TEST FAILED") != -1):
                    status[test_name] = "failed"
                    status[test_name] = "failed"
                testl = testh.readline()
                testl = testh.readline()
 
 
        except:
        except:
            status[test_name] = "no log file"
            status[test_name] = "no log file"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.