def test_check_wpilib_api(wpilib):

    from spec_scanners import wpilib_scanner

    wpilibj_dirs = wpilib_scanner.get_wpilib_dirs(os.environ['WPILIB_JAVA_DIR'])
    for tree in wpilibj_dirs:
        assert exists(tree), "WPILIB_JAVA_DIR does not point to wpilib tree dir"

    output = wpilib_scanner.compare_folders(wpilib, wpilibj_dirs)

    for item in output["children"]:
        if item["errors"] > 0:
            assert False, "Error: item {} doesn't match java spec, and is not ignored.".format(item["name"])
Пример #2
0
def test_check_wpilib_api(wpilib):

    from spec_scanners import wpilib_scanner

    wpilibj_dirs = wpilib_scanner.get_wpilib_dirs(
        os.environ['WPILIB_JAVA_DIR'])
    for tree in wpilibj_dirs:
        assert exists(
            tree), "WPILIB_JAVA_DIR does not point to wpilib tree dir"

    output = wpilib_scanner.compare_folders(wpilib, wpilibj_dirs)

    for item in output["children"]:
        if item["errors"] > 0:
            assert False, "Error: item {} doesn't match java spec, and is not ignored.".format(
                item["name"])
Пример #3
0
def test_check_wpilib_api(wpilib):
    '''
        These just check to see if our implementation is in line with
        the WPILib implementation. Not critical.
    '''

    from spec_scanners import wpilib_scanner

    wpilibj_dirs = wpilib_scanner.get_wpilib_dirs(os.environ['WPILIB_JAVA_DIR'])
    for tree in wpilibj_dirs:
        assert exists(tree), "WPILIB_JAVA_DIR does not point to wpilib tree dir"

    output = wpilib_scanner.compare_folders(wpilib, wpilibj_dirs)

    for item in output["children"]:
        if item["errors"] > 0:
            assert False, "Error: item {} doesn't match java spec, and is not ignored.".format(item["name"])
def test_check_wpilib_api(wpilib):
    '''
        These just check to see if our implementation is in line with
        the WPILib implementation. Not critical.
    '''

    from spec_scanners import wpilib_scanner

    wpilibj_dirs = wpilib_scanner.get_wpilib_dirs(os.environ['WPILIB_JAVA_DIR'])
    for tree in wpilibj_dirs:
        assert exists(tree), "WPILIB_JAVA_DIR does not point to wpilib tree dir"

    output = wpilib_scanner.compare_folders(wpilib, wpilibj_dirs)

    for item in output["children"]:
        if item["errors"] > 0:
            assert False, "Error: item {} doesn't match java spec, and is not ignored.".format(item["name"])