xref: /freebsd/contrib/kyua/utils/process/Makefile.am.inc (revision 62a52c15422470f97fc7b311d89c83f910bcc1b1)
1# Copyright 2010 The Kyua Authors.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met:
7#
8# * Redistributions of source code must retain the above copyright
9#   notice, this list of conditions and the following disclaimer.
10# * Redistributions in binary form must reproduce the above copyright
11#   notice, this list of conditions and the following disclaimer in the
12#   documentation and/or other materials provided with the distribution.
13# * Neither the name of Google Inc. nor the names of its contributors
14#   may be used to endorse or promote products derived from this software
15#   without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29libutils_a_SOURCES += utils/process/child.cpp
30libutils_a_SOURCES += utils/process/child.hpp
31libutils_a_SOURCES += utils/process/child.ipp
32libutils_a_SOURCES += utils/process/child_fwd.hpp
33libutils_a_SOURCES += utils/process/deadline_killer.cpp
34libutils_a_SOURCES += utils/process/deadline_killer.hpp
35libutils_a_SOURCES += utils/process/deadline_killer_fwd.hpp
36libutils_a_SOURCES += utils/process/exceptions.cpp
37libutils_a_SOURCES += utils/process/exceptions.hpp
38libutils_a_SOURCES += utils/process/executor.cpp
39libutils_a_SOURCES += utils/process/executor.hpp
40libutils_a_SOURCES += utils/process/executor.ipp
41libutils_a_SOURCES += utils/process/executor_fwd.hpp
42libutils_a_SOURCES += utils/process/fdstream.cpp
43libutils_a_SOURCES += utils/process/fdstream.hpp
44libutils_a_SOURCES += utils/process/fdstream_fwd.hpp
45libutils_a_SOURCES += utils/process/isolation.cpp
46libutils_a_SOURCES += utils/process/isolation.hpp
47libutils_a_SOURCES += utils/process/operations.cpp
48libutils_a_SOURCES += utils/process/operations.hpp
49libutils_a_SOURCES += utils/process/operations_fwd.hpp
50libutils_a_SOURCES += utils/process/status.cpp
51libutils_a_SOURCES += utils/process/status.hpp
52libutils_a_SOURCES += utils/process/status_fwd.hpp
53libutils_a_SOURCES += utils/process/system.cpp
54libutils_a_SOURCES += utils/process/system.hpp
55libutils_a_SOURCES += utils/process/systembuf.cpp
56libutils_a_SOURCES += utils/process/systembuf.hpp
57libutils_a_SOURCES += utils/process/systembuf_fwd.hpp
58
59if WITH_ATF
60tests_utils_processdir = $(pkgtestsdir)/utils/process
61
62tests_utils_process_DATA = utils/process/Kyuafile
63EXTRA_DIST += $(tests_utils_process_DATA)
64
65tests_utils_process_PROGRAMS = utils/process/child_test
66utils_process_child_test_SOURCES = utils/process/child_test.cpp
67utils_process_child_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
68utils_process_child_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
69
70tests_utils_process_PROGRAMS += utils/process/deadline_killer_test
71utils_process_deadline_killer_test_SOURCES = \
72    utils/process/deadline_killer_test.cpp
73utils_process_deadline_killer_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
74utils_process_deadline_killer_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
75
76tests_utils_process_PROGRAMS += utils/process/exceptions_test
77utils_process_exceptions_test_SOURCES = utils/process/exceptions_test.cpp
78utils_process_exceptions_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
79utils_process_exceptions_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
80
81tests_utils_process_PROGRAMS += utils/process/executor_test
82utils_process_executor_test_SOURCES = utils/process/executor_test.cpp
83utils_process_executor_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
84utils_process_executor_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
85
86tests_utils_process_PROGRAMS += utils/process/executor_pid_test
87utils_process_executor_pid_test_SOURCES = utils/process/executor_pid_test.cpp
88utils_process_executor_pid_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
89utils_process_executor_pid_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
90
91tests_utils_process_PROGRAMS += utils/process/fdstream_test
92utils_process_fdstream_test_SOURCES = utils/process/fdstream_test.cpp
93utils_process_fdstream_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
94utils_process_fdstream_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
95
96tests_utils_process_PROGRAMS += utils/process/isolation_test
97utils_process_isolation_test_SOURCES = utils/process/isolation_test.cpp
98utils_process_isolation_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
99utils_process_isolation_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
100
101tests_utils_process_PROGRAMS += utils/process/helpers
102utils_process_helpers_SOURCES = utils/process/helpers.cpp
103
104tests_utils_process_PROGRAMS += utils/process/operations_test
105utils_process_operations_test_SOURCES = utils/process/operations_test.cpp
106utils_process_operations_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
107utils_process_operations_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
108
109tests_utils_process_PROGRAMS += utils/process/status_test
110utils_process_status_test_SOURCES = utils/process/status_test.cpp
111utils_process_status_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
112utils_process_status_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
113
114tests_utils_process_PROGRAMS += utils/process/systembuf_test
115utils_process_systembuf_test_SOURCES = utils/process/systembuf_test.cpp
116utils_process_systembuf_test_CXXFLAGS = $(UTILS_CFLAGS) $(ATF_CXX_CFLAGS)
117utils_process_systembuf_test_LDADD = $(UTILS_LIBS) $(ATF_CXX_LIBS)
118endif
119