mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
tests: add c++ include test
This commit is contained in:
parent
b497ae9792
commit
2c571cddf5
3 changed files with 68 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ subdir('daemon')
|
|||
subdir('tools')
|
||||
subdir('modules')
|
||||
subdir('examples')
|
||||
subdir('tests')
|
||||
|
||||
if get_option('gstreamer')
|
||||
subdir('gst')
|
||||
|
|
|
|||
6
src/tests/meson.build
Normal file
6
src/tests/meson.build
Normal file
|
|
@ -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
|
||||
61
src/tests/test-cpp.cpp
Normal file
61
src/tests/test-cpp.cpp
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
/* PipeWire
|
||||
* Copyright (C) 2018 Wim Taymans <wim.taymans@gmail.com>
|
||||
*
|
||||
* 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 <pipewire/array.h>
|
||||
#include <pipewire/client.h>
|
||||
#include <pipewire/command.h>
|
||||
#include <pipewire/control.h>
|
||||
#include <pipewire/core.h>
|
||||
#include <pipewire/data-loop.h>
|
||||
#include <pipewire/device.h>
|
||||
#include <pipewire/factory.h>
|
||||
#include <pipewire/global.h>
|
||||
#include <pipewire/interfaces.h>
|
||||
#include <pipewire/introspect.h>
|
||||
#include <pipewire/link.h>
|
||||
#include <pipewire/log.h>
|
||||
#include <pipewire/loop.h>
|
||||
#include <pipewire/main-loop.h>
|
||||
#include <pipewire/map.h>
|
||||
#include <pipewire/mem.h>
|
||||
#include <pipewire/module.h>
|
||||
#include <pipewire/node.h>
|
||||
#include <pipewire/permission.h>
|
||||
#include <pipewire/pipewire.h>
|
||||
#include <pipewire/port.h>
|
||||
#include <pipewire/private.h>
|
||||
#include <pipewire/properties.h>
|
||||
#include <pipewire/protocol.h>
|
||||
#include <pipewire/proxy.h>
|
||||
#include <pipewire/remote.h>
|
||||
#include <pipewire/resource.h>
|
||||
#include <pipewire/stream.h>
|
||||
#include <pipewire/thread-loop.h>
|
||||
#include <pipewire/type.h>
|
||||
#include <pipewire/utils.h>
|
||||
#include <pipewire/work-queue.h>
|
||||
#include <extensions/client-node.h>
|
||||
#include <extensions/protocol-native.h>
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
pw_init(&argc, &argv);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue