// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include #include #include #include using vespalib::eval::SimpleTensorEngine; using vespalib::eval::test::TensorConformance; using vespalib::tensor::DefaultTensorEngine; vespalib::string module_path(TEST_PATH("../../../../")); TEST("require that reference tensor implementation passes all conformance tests") { TEST_DO(TensorConformance::run_tests(module_path, SimpleTensorEngine::ref())); } TEST("require that production tensor implementation passes all conformance tests") { TEST_DO(TensorConformance::run_tests(module_path, DefaultTensorEngine::ref())); } TEST_MAIN() { TEST_RUN_ALL(); }