File: test-functional.c

package info (click to toggle)
pipewire 1.4.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,964 kB
  • sloc: ansic: 296,733; cpp: 2,815; xml: 407; python: 234; sh: 211; makefile: 168; pascal: 85
file content (39 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2019 Wim Taymans */
/* SPDX-License-Identifier: MIT */

#include <sys/wait.h>

#include "config.h"

#include "pwtest.h"

PWTEST(openal_info_test)
{
#ifdef OPENAL_INFO_PATH
	int status = pwtest_spawn(OPENAL_INFO_PATH, (char *[]){ "openal-info", NULL });
	pwtest_int_eq(WEXITSTATUS(status), 0);
	return PWTEST_PASS;
#else
	return PWTEST_SKIP;
#endif
}

PWTEST(pactl_test)
{
#ifdef PACTL_PATH
	int status = pwtest_spawn(PACTL_PATH, (char *[]){ "pactl", "info", NULL });
	pwtest_int_eq(WEXITSTATUS(status), 0);
	return PWTEST_PASS;
#else
	return PWTEST_SKIP;
#endif
}

PWTEST_SUITE(pw_array)
{
	pwtest_add(pactl_test, PWTEST_ARG_DAEMON);
	pwtest_add(openal_info_test, PWTEST_ARG_DAEMON);

	return PWTEST_PASS;
}