public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] cxx-compat: add test suite for cxx-compat
@ 2020-05-11 15:27 Matthias Maennich
  2020-05-13 10:09 ` Dodji Seketeli
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Maennich @ 2020-05-11 15:27 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, gprocida, kernel-team, maennich

This is an empty test to begin with and its sole purpose for now is to
make sure abg-cxx-compat.h can be compiled on its own.

	* tests/Makefile.am: Add new test case runtestcxxcompat.
	* tests/test-cxx-compat.cc: New test source file.

Reviewed-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
---
 tests/Makefile.am        |  4 ++++
 tests/test-cxx-compat.cc | 30 ++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 tests/test-cxx-compat.cc

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 68cbb09af833..2d8ab9e794a4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -41,6 +41,7 @@ runtestabidiffexit		\
 runtestaltdwarf			\
 runtestcanonicalizetypes.sh	\
 runtestcorediff			\
+runtestcxxcompat		\
 runtestdiffdwarf		\
 runtestdiffdwarfabixml		\
 runtestelfhelpers		\
@@ -150,6 +151,9 @@ runtestkmiwhitelist_LDADD = libtestutils.la libcatch.la $(top_builddir)/src/liba
 runtestelfhelpers_SOURCES = test-elf-helpers.cc
 runtestelfhelpers_LDADD = libcatch.la $(top_builddir)/src/libabigail.la
 
+runtestcxxcompat_SOURCES = test-cxx-compat.cc
+runtestcxxcompat_LDADD = libcatch.la $(top_builddir)/src/libabigail.la
+
 runtestsvg_SOURCES=test-svg.cc
 runtestsvg_LDADD=$(top_builddir)/src/libabigail.la
 
diff --git a/tests/test-cxx-compat.cc b/tests/test-cxx-compat.cc
new file mode 100644
index 000000000000..0a230a54e1a5
--- /dev/null
+++ b/tests/test-cxx-compat.cc
@@ -0,0 +1,30 @@
+// -*- Mode: C++ -*-
+//
+// Copyright (C) 2020 Google, Inc.
+//
+// This file is part of the GNU Application Binary Interface Generic
+// Analysis and Instrumentation Library (libabigail).  This library is
+// free software; you can redistribute it and/or modify it under the
+// terms of the GNU Lesser General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option) any
+// later version.
+
+// This library is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Lesser Public License for more details.
+
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; see the file COPYING-LGPLV3.  If
+// not, see <http://www.gnu.org/licenses/>.
+
+// Author: Matthias Maennich
+
+/// @file
+///
+/// This program tests libabigail's CXX compatibility layer.
+
+#include "lib/catch.hpp"
+
+#include "abg-cxx-compat.h"
+
-- 
2.26.2.645.ge9eca65c58-goog


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cxx-compat: add test suite for cxx-compat
  2020-05-11 15:27 [PATCH] cxx-compat: add test suite for cxx-compat Matthias Maennich
@ 2020-05-13 10:09 ` Dodji Seketeli
  0 siblings, 0 replies; 2+ messages in thread
From: Dodji Seketeli @ 2020-05-13 10:09 UTC (permalink / raw)
  To: Matthias Maennich; +Cc: libabigail, gprocida, kernel-team

Matthias Maennich <maennich@google.com> a écrit:

> This is an empty test to begin with and its sole purpose for now is to
> make sure abg-cxx-compat.h can be compiled on its own.
>
> 	* tests/Makefile.am: Add new test case runtestcxxcompat.
> 	* tests/test-cxx-compat.cc: New test source file.
>
> Reviewed-by: Giuliano Procida <gprocida@google.com>
> Signed-off-by: Matthias Maennich <maennich@google.com>
Acked-by: Dodji Seketeli <dodji@seketeli.org>

Applied to master, thanks!

Cheers,

-- 
		Dodji

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-13 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 15:27 [PATCH] cxx-compat: add test suite for cxx-compat Matthias Maennich
2020-05-13 10:09 ` Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).