def test_unittests(test_fc_session_root_path): """ Run unit and doc tests for all supported targets. @type: build """ extra_args = "--release --target {} ".format(TARGET) host.cargo_test(test_fc_session_root_path, extra_args=extra_args)
def test_unittests(test_session_root_path, target): """Run unit and doc tests for all supported targets.""" extra_args = "--release --target {} ".format(target) if "musl" in target and MACHINE == "x86_64": pytest.skip("On x86_64 with musl target unit tests" " are already run as part of testing" " code-coverage.") host.cargo_test(test_session_root_path, extra_args=extra_args)
def test_unittests(test_session_root_path, target): """Run unit and doc tests for all supported targets.""" extra_env = '' extra_args = "--target {} ".format(target) if "musl" in target: extra_env += "TARGET_CC=musl-gcc" if MACHINE == "x86_64": extra_args += "--all-features " if MACHINE == "aarch64": extra_args += "--exclude cpuid " host.cargo_test(test_session_root_path, extra_args=extra_args, extra_env=extra_env)
def test_unittests(test_session_root_path, target): """Run unit and doc tests for all supported targets.""" extra_env = '' extra_args = "--target {} ".format(target) if "musl" in target: extra_env += "TARGET_CC=musl-gcc" if MACHINE == "x86_64": pytest.skip("On x86_64 with musl target unit tests" " are already run as part of testing" " code-coverage.") if MACHINE == "x86_64": extra_args += "--all-features " if MACHINE == "aarch64": extra_args += "--exclude cpuid " host.cargo_test( test_session_root_path, extra_args=extra_args, extra_env=extra_env )