예제 #1
0
파일: tests.py 프로젝트: danrue/cc2git
def twalk():
    lotnicza = True
    stara_lotnicza = False

    #wersja z laptopa (zmodyfikowana lekutko do nowych testow na lotniczej):
    VIEW = "MAREK_PORTA"
    full_vobs_dir = "/view/" + VIEW + "/vobs"
    if lotnicza:
        full_vobs_dir = "/home/marek\.langiewicz/tmp/walktest/vobs"
    porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
    alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
    exclude = "^((?!"+ full_vobs_dir +")|(" + full_vobs_dir + "(?!" + alternative + ")))"                
    #exclude = "((.*/){9})|(lost\\+found)|(" + exclude + ")"
    exclude = "(lost\\+found)|(" + exclude + ")"

    if stara_lotnicza:
        #wersja ze starych testow na lotniczej (mniejwiecej)
        #full_vobs_dir = "/view/" + VIEW + "/vobs"
        full_vobs_dir = "/home/marek.langiewicz/tmp/walktest/vobs"
        porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
        alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
        exclude = "^((?!"+ full_vobs_dir +")|(" + full_vobs_dir + "(?!" + alternative + ")))"                
        exclude = "((.*/){8})|(lost\\+found)|(" + exclude + ")"

    common.walk_exclude("/home/langiewi_m/tmp/walktest/", walk_test, "niewazne", exclude)
    exclude = "a^"
    common.walk_exclude("/home/langiewi_m/tmp/walktest/vobs/porta/sw/develop/source/siemens/applications/html", walk_test, "niewazne", exclude)
예제 #2
0
def twalk():
    lotnicza = True
    stara_lotnicza = False

    #wersja z laptopa (zmodyfikowana lekutko do nowych testow na lotniczej):
    VIEW = "MAREK_PORTA"
    full_vobs_dir = "/view/" + VIEW + "/vobs"
    if lotnicza:
        full_vobs_dir = "/home/marek\.langiewicz/tmp/walktest/vobs"
    porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
    alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
    exclude = "^((?!" + full_vobs_dir + ")|(" + full_vobs_dir + "(?!" + alternative + ")))"
    #exclude = "((.*/){9})|(lost\\+found)|(" + exclude + ")"
    exclude = "(lost\\+found)|(" + exclude + ")"

    if stara_lotnicza:
        #wersja ze starych testow na lotniczej (mniejwiecej)
        #full_vobs_dir = "/view/" + VIEW + "/vobs"
        full_vobs_dir = "/home/marek.langiewicz/tmp/walktest/vobs"
        porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
        alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
        exclude = "^((?!" + full_vobs_dir + ")|(" + full_vobs_dir + "(?!" + alternative + ")))"
        exclude = "((.*/){8})|(lost\\+found)|(" + exclude + ")"

    common.walk_exclude("/home/langiewi_m/tmp/walktest/", walk_test,
                        "niewazne", exclude)
    exclude = "a^"
    common.walk_exclude(
        "/home/langiewi_m/tmp/walktest/vobs/porta/sw/develop/source/siemens/applications/html",
        walk_test, "niewazne", exclude)
예제 #3
0
파일: tests_old.py 프로젝트: danrue/cc2git
            |
                (/danube_tc)
            |
                (
                    /porta
                    (
                        $
                    |
                        (_tools)
                    |
                        (_kernel)
                        (
                            $
                        |
                            (_2_4_31)
                        )
                    )
                )
            )
        )
    )

    """
    #full_vobs_dir = "/view/" + VIEW + "/vobs"
    full_vobs_dir = "/home/langiewi_m/tmp/walktest/vobs"
    porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
    alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
    exclude = "^((?!"+ full_vobs_dir +")|(" + full_vobs_dir + "(?!" + alternative + ")))"                
    exclude = "((.*/){8})|(lost\\+found)|(" + exclude + ")"
    common.walk_exclude("/home/langiewi_m/tmp/walktest/", test_walk, "dupa", exclude)
예제 #4
0
                (/danube_tc)
            |
                (
                    /porta
                    (
                        $
                    |
                        (_tools)
                    |
                        (_kernel)
                        (
                            $
                        |
                            (_2_4_31)
                        )
                    )
                )
            )
        )
    )

    """
    #full_vobs_dir = "/view/" + VIEW + "/vobs"
    full_vobs_dir = "/home/langiewi_m/tmp/walktest/vobs"
    porta_alternative = "$|(_tools)|(_kernel($|(_2_4_31)))"
    alternative = "$|(/components)|(/common_software)|(/danube_tc)|(/porta(" + porta_alternative + "))"
    exclude = "^((?!" + full_vobs_dir + ")|(" + full_vobs_dir + "(?!" + alternative + ")))"
    exclude = "((.*/){8})|(lost\\+found)|(" + exclude + ")"
    common.walk_exclude("/home/langiewi_m/tmp/walktest/", test_walk, "dupa",
                        exclude)