Exemplo n.º 1
0
def main():
    result = []

    result.append((run_cppcheck(throw=False), "Cppcheck"))
    result.append((run_unittest(throw=False), "Unit-tests"))

    print('')
    sys.exit(print_results(result))
Exemplo n.º 2
0
def main():
    parser = argparse.ArgumentParser()
    build.add_base_args(parser)
    arguments = parser.parse_args()

    print("Running cppcheck.")
    ret = run_cppcheck()
    print("\nRunning unit-tests.")
    ret += run_unittest(arguments)

    print_result(ret)
    sys.exit(ret)
Exemplo n.º 3
0
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--debug", "-d", action="store_const", const="debug", default="release", dest="type")
    parser.add_argument(
        "--all-cppcheck", "-a", action="store_true", default=False, dest="all", help="Enable all checks for cppcheck"
    )

    arguments = parser.parse_args()

    print("Running cppcheck.")
    run_cppcheck(arguments.all)
    print("\nRunning unit-tests.")
    ret = run_unittest(arguments.type)
    sys.exit(ret)