Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

852 B
Raw Blame
// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "gtest/gtest.h"
#include "onnx_utils.hpp"

namespace ov::frontend::onnx::tests {

inline const char* editor_skip_message() {
    return "ONNX Editor functionality is not available when the GraphIterator is enabled. Set ONNX_ITERATOR=0 to run "
           "this test.";
}

}  // namespace ov::frontend::onnx::tests

#define SKIP_ONNX_EDITOR_IF_GRAPH_ITERATOR_ENABLED()                            \
    do {                                                                        \
        if (::ov::frontend::onnx::tests::is_graph_iterator_enabled()) {         \
            GTEST_SKIP() << ::ov::frontend::onnx::tests::editor_skip_message(); \
        }                                                                       \
    } while (0)