diff options
author | Haavard <havardpe@yahoo-inc.com> | 2017-01-23 12:14:40 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2017-01-23 12:14:40 +0000 |
commit | 145659f1d677face587b710726285df872a319c0 (patch) | |
tree | 074eafbf9d3b9ee030ff2ec584667b0386f37618 /eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp | |
parent | 31690a1baa64d046d7ba25510b4570aa20792134 (diff) |
move code
Diffstat (limited to 'eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp')
-rw-r--r-- | eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp b/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp new file mode 100644 index 00000000000..238d0604ee7 --- /dev/null +++ b/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp @@ -0,0 +1,19 @@ +// 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)); +} + +TEST_MAIN() { TEST_RUN_ALL(); } |