From 2c571cddf505092323ccefc9ce479e1787f2fdea Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Jan 2019 13:00:24 +0100 Subject: [PATCH] tests: add c++ include test --- src/meson.build | 1 + src/tests/meson.build | 6 +++++ src/tests/test-cpp.cpp | 61 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 src/tests/meson.build create mode 100644 src/tests/test-cpp.cpp diff --git a/src/meson.build b/src/meson.build index 0ad7778d6..41f03ac63 100644 --- a/src/meson.build +++ b/src/meson.build @@ -5,6 +5,7 @@ subdir('daemon') subdir('tools') subdir('modules') subdir('examples') +subdir('tests') if get_option('gstreamer') subdir('gst') diff --git a/src/tests/meson.build b/src/tests/meson.build new file mode 100644 index 000000000..19fbafb3c --- /dev/null +++ b/src/tests/meson.build @@ -0,0 +1,6 @@ +if have_cpp +test_cpp = executable('test-cpp', 'test-cpp.cpp', + dependencies : [pipewire_dep], + install : false) +test('test-cpp', test_cpp) +endif diff --git a/src/tests/test-cpp.cpp b/src/tests/test-cpp.cpp new file mode 100644 index 000000000..b024fcb41 --- /dev/null +++ b/src/tests/test-cpp.cpp @@ -0,0 +1,61 @@ +/* PipeWire + * Copyright (C) 2018 Wim Taymans + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +int main(int argc, char *argv[]) +{ + pw_init(&argc, &argv); + return 0; +}