diff options
author | Jens Georg <mail@jensge.org> | 2021-05-30 12:00:42 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-06-09 23:55:54 +0200 |
commit | f26b70a719272e85dcc6fdc1a0afc276ae5e106e (patch) | |
tree | 651418dd3903e519da28a69f5349e86552bd4cf3 | |
parent | 433d1c1cb9fb4773a3ccda412b782d8b70c372b6 (diff) | |
download | gupnp-f26b70a719272e85dcc6fdc1a0afc276ae5e106e.tar.gz |
tests,examples: Some tests are examples
Those are moved into examples, and gtests is moved one up
-rw-r--r-- | examples/meson.build | 9 | ||||
-rw-r--r-- | examples/test-browsing.c (renamed from tests/test-browsing.c) | 0 | ||||
-rw-r--r-- | examples/test-introspection.c (renamed from tests/test-introspection.c) | 0 | ||||
-rw-r--r-- | examples/test-proxy.c (renamed from tests/test-proxy.c) | 0 | ||||
-rw-r--r-- | examples/test-server.c (renamed from tests/test-server.c) | 0 | ||||
-rw-r--r-- | examples/test-white-list.c (renamed from tests/test-white-list.c) | 0 | ||||
-rw-r--r-- | tests/data/TestDevice.xml (renamed from tests/gtest/data/TestDevice.xml) | 0 | ||||
-rw-r--r-- | tests/data/TestService.xml (renamed from tests/gtest/data/TestService.xml) | 0 | ||||
-rw-r--r-- | tests/data/random4k.bin (renamed from tests/gtest/data/random4k.bin) | bin | 4096 -> 4096 bytes | |||
-rw-r--r-- | tests/gtest/meson.build | 12 | ||||
-rw-r--r-- | tests/meson.build | 17 | ||||
-rw-r--r-- | tests/test-bugs.c (renamed from tests/gtest/test-bugs.c) | 0 | ||||
-rw-r--r-- | tests/test-context.c (renamed from tests/gtest/test-context.c) | 0 |
13 files changed, 19 insertions, 19 deletions
diff --git a/examples/meson.build b/examples/meson.build index c8d0d3c..eb32dfd 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -16,3 +16,12 @@ executable( 'get-volume.c', dependencies: gupnp ) + +foreach program : ['browsing', 'proxy', 'server', 'introspection', 'white-list'] + executable( + 'test-' + program, + sources : 'test-@0@.c'.format(program), + dependencies : [gupnp, gio_unix] + ) +endforeach + diff --git a/tests/test-browsing.c b/examples/test-browsing.c index 1dd4560..1dd4560 100644 --- a/tests/test-browsing.c +++ b/examples/test-browsing.c diff --git a/tests/test-introspection.c b/examples/test-introspection.c index 1512317..1512317 100644 --- a/tests/test-introspection.c +++ b/examples/test-introspection.c diff --git a/tests/test-proxy.c b/examples/test-proxy.c index bbf44d6..bbf44d6 100644 --- a/tests/test-proxy.c +++ b/examples/test-proxy.c diff --git a/tests/test-server.c b/examples/test-server.c index 940f8d9..940f8d9 100644 --- a/tests/test-server.c +++ b/examples/test-server.c diff --git a/tests/test-white-list.c b/examples/test-white-list.c index 7e8624a..7e8624a 100644 --- a/tests/test-white-list.c +++ b/examples/test-white-list.c diff --git a/tests/gtest/data/TestDevice.xml b/tests/data/TestDevice.xml index 3d2749c..3d2749c 100644 --- a/tests/gtest/data/TestDevice.xml +++ b/tests/data/TestDevice.xml diff --git a/tests/gtest/data/TestService.xml b/tests/data/TestService.xml index 8f02269..8f02269 100644 --- a/tests/gtest/data/TestService.xml +++ b/tests/data/TestService.xml diff --git a/tests/gtest/data/random4k.bin b/tests/data/random4k.bin Binary files differindex 19d5833..19d5833 100644 --- a/tests/gtest/data/random4k.bin +++ b/tests/data/random4k.bin diff --git a/tests/gtest/meson.build b/tests/gtest/meson.build deleted file mode 100644 index 33637d7..0000000 --- a/tests/gtest/meson.build +++ /dev/null @@ -1,12 +0,0 @@ -foreach program : ['context', 'bugs'] - test( - program, - executable( - 'test-' + program, - 'test-@0@.c'.format (program), - dependencies : gupnp, - c_args : '-DDATA_PATH="@0@/data"'.format(meson.current_source_dir()) - ), - is_parallel : false - ) -endforeach diff --git a/tests/meson.build b/tests/meson.build index c27a3f5..33637d7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,9 +1,12 @@ -foreach program : ['browsing', 'proxy', 'server', 'introspection', 'white-list'] - executable( - 'test-' + program, - sources : 'test-@0@.c'.format(program), - dependencies : [gupnp, gio_unix] +foreach program : ['context', 'bugs'] + test( + program, + executable( + 'test-' + program, + 'test-@0@.c'.format (program), + dependencies : gupnp, + c_args : '-DDATA_PATH="@0@/data"'.format(meson.current_source_dir()) + ), + is_parallel : false ) endforeach - -subdir('gtest') diff --git a/tests/gtest/test-bugs.c b/tests/test-bugs.c index 071febc..071febc 100644 --- a/tests/gtest/test-bugs.c +++ b/tests/test-bugs.c diff --git a/tests/gtest/test-context.c b/tests/test-context.c index 0dbd400..0dbd400 100644 --- a/tests/gtest/test-context.c +++ b/tests/test-context.c |