summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp
blob: 1f96b64d170d9066cd37c86094e35ad8669d80aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/eval/test/tensor_conformance.h>
#include <vespa/vespalib/eval/simple_tensor_engine.h>
#include <vespa/vespalib/tensor/default_tensor_engine.h>

using vespalib::eval::SimpleTensorEngine;
using vespalib::eval::test::TensorConformance;
using vespalib::tensor::DefaultTensorEngine;

TEST("require that reference tensor implementation passes all conformance tests") {
    TEST_DO(TensorConformance::run_tests(SimpleTensorEngine::ref(), true));
}

IGNORE_TEST("require that production tensor implementation passes non-mixed conformance tests") {
    TEST_DO(TensorConformance::run_tests(DefaultTensorEngine::ref(), false));
}

IGNORE_TEST("require that production tensor implementation passes all conformance tests") {
    TEST_DO(TensorConformance::run_tests(DefaultTensorEngine::ref(), true));
}

TEST_MAIN() { TEST_RUN_ALL(); }