https://gitlab.opengeosys.org/ogs/ogs.git
Revision 03d2c78f3cf834a6915d5fee28afe1199013cd11 authored by Lars Bilke on 29 April 2021, 10:25:51 UTC, committed by Dmitry Yu. Naumov on 01 May 2021, 11:47:52 UTC
1 parent 9ba5f04
Raw File
Tip revision: 03d2c78f3cf834a6915d5fee28afe1199013cd11 authored by Lars Bilke on 29 April 2021, 10:25:51 UTC
[T] Disable snakemake tests when tee tool is not available.
Tip revision: 03d2c78
TestTools.h
/**
 * \file
 * \author Norihiro Watanabe
 * \date   2013-04-16
 * \brief
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include <gtest/gtest.h>
#include <boost/property_tree/ptree_fwd.hpp>

#pragma once

#define ASSERT_ARRAY_NEAR(E,A,N,eps)\
    for (std::size_t i=0; i<(unsigned)(N); i++) \
        ASSERT_NEAR((E)[i], (A)[i], (eps));

#define ASSERT_ARRAY_EQ(E,A,N)\
    for (std::size_t i=0; i<(unsigned)(N); i++) \
        ASSERT_EQ((E)[i], (A)[i]);
namespace Tests
{
boost::property_tree::ptree readXml(const char xml[]);
}  // namespace Tests
back to top