blob: 3a71e16aa7718df832cff453abd8e9b21bfaf520 [file] [log] [blame]
sewardj8eb8bab2015-07-21 14:44:28 +00001
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = \
5 filter_ldynsym \
6 filter_name_service_door \
7 filter_scalar \
8 filter_sendfilev \
9 filter_stderr \
10 filter_syscall_at
11
12noinst_HEADERS = scalar.h
13
14EXTRA_DIST = \
15 brk.stderr.exp brk.stdout.exp brk.vgtest \
16 context_stack_die.stderr.exp context_stack_die.stdout.exp context_stack_die.vgtest \
17 door_data.stderr.exp door_data.stdout.exp door_data.vgtest \
18 door_kill.stderr.exp door_kill.stdout.exp door_kill.vgtest \
19 execx.stderr.exp execx.stdout.exp execx.vgtest \
20 getzoneoffset.stderr.exp getzoneoffset.vgtest \
21 gethrtime.stderr.exp gethrtime.stdout.exp gethrtime.vgtest \
iraisre8db7062015-09-25 20:53:09 +000022 gethrusec.stderr.exp gethrusec.stdout.exp gethrusec.vgtest \
iraisr03d2f542015-09-29 18:57:56 +000023 ioctl.stderr.exp ioctl.stdout.exp ioctl.vgtest \
sewardj8eb8bab2015-07-21 14:44:28 +000024 ldynsym.stderr.exp ldynsym.stdout.exp ldynsym.vgtest \
25 lsframe1.stderr.exp lsframe1.stdout.exp lsframe1.vgtest \
26 lsframe2.stderr.exp lsframe2.stdout.exp lsframe2.vgtest \
27 mmapobj_bssonly.stderr.exp mmapobj_bssonly.stdout.exp mmapobj_bssonly.vgtest \
28 name_service_door.stderr.exp-amd64 name_service_door.stderr.exp-x86 \
29 name_service_door.stdout.exp name_service_door.vgtest \
30 pkcs11.stderr.exp-illumos pkcs11.stderr.exp-solaris pkcs11.stdout.exp pkcs11.vgtest \
31 scalar.stderr.exp scalar.stdout.exp scalar.vgtest \
Elliott Hughesa0664b92017-04-18 17:46:52 -070032 scalar_auditon_stat.stderr.exp scalar_auditon_stat.stdout.exp scalar_auditon_stat.vgtest \
sewardj8eb8bab2015-07-21 14:44:28 +000033 scalar_frealpathat.stderr.exp scalar_frealpathat.stdout.exp scalar_frealpathat.vgtest \
Elliott Hughesa0664b92017-04-18 17:46:52 -070034 scalar_getrandom.stderr.exp scalar_getrandom.stdout.exp scalar_getrandom.vgtest \
sewardj8eb8bab2015-07-21 14:44:28 +000035 scalar_ioctl.stderr.exp scalar_ioctl.stdout.exp scalar_ioctl.vgtest \
36 scalar_lwp_kill.stderr.exp scalar_lwp_kill.stdout.exp scalar_lwp_kill.vgtest \
37 scalar_lwp_name.stderr.exp scalar_lwp_name.stdout.exp scalar_lwp_name.vgtest \
38 scalar_lwp_sigqueue.stderr.exp scalar_lwp_sigqueue.stdout.exp scalar_lwp_sigqueue.vgtest \
39 scalar_lwp_sigqueue_pid.stderr.exp scalar_lwp_sigqueue_pid.vgtest \
Elliott Hughesa0664b92017-04-18 17:46:52 -070040 scalar_modctl_modnvl.stderr.exp scalar_modctl_modnvl.stdout.exp scalar_modctl_modnvl.vgtest \
sewardj8eb8bab2015-07-21 14:44:28 +000041 scalar_obsolete.stderr.exp scalar_obsolete.stdout.exp scalar_obsolete.vgtest \
42 scalar_shm_new.stderr.exp scalar_shm_new.stdout.exp scalar_shm_new.vgtest \
43 scalar_spawn.stderr.exp scalar_spawn.stdout.exp scalar_spawn.vgtest \
iraisrc0d46cd2015-09-25 21:04:45 +000044 scalar_system_stats.stderr.exp scalar_system_stats.stdout.exp scalar_system_stats.vgtest \
sewardj8eb8bab2015-07-21 14:44:28 +000045 scalar_tsol_clearance.stderr.exp scalar_tsol_clearance.vgtest \
46 scalar_utimensat.stderr.exp scalar_utimensat.stdout.exp scalar_utimensat.vgtest \
47 scalar_utimesys.stderr.exp scalar_utimesys.stdout.exp scalar_utimesys.vgtest \
48 scalar_uuidsys.stderr.exp scalar_uuidsys.stdout.exp scalar_uuidsys.vgtest \
49 scalar_zone_defunct.stderr.exp scalar_zone_defunct.stdout.exp scalar_zone_defunct.vgtest \
50 sendfilev.stderr.exp sendfilev.stdout.exp sendfilev.vgtest \
51 shmat.stderr.exp shmat.stdout.exp shmat.vgtest \
52 spawn.stderr.exp spawn.stdout.exp spawn.vgtest \
53 strlcpy.stderr.exp strlcpy.stdout.exp strlcpy.vgtest \
54 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
55 syscall_at.stderr.exp syscall_at.stdout.exp syscall_at.vgtest \
56 thr_daemon_exit_libc.stderr.exp thr_daemon_exit_libc.stdout.exp thr_daemon_exit_libc.vgtest \
57 thr_daemon_exit_standalone.stderr.exp thr_daemon_exit_standalone.stdout.exp thr_daemon_exit_standalone.vgtest
58
59check_PROGRAMS = \
60 brk \
61 context_stack_die \
62 door_data \
63 door_kill \
64 gethrtime \
65 inlinfo \
66 inlinfo_nested.so \
iraisr03d2f542015-09-29 18:57:56 +000067 ioctl \
sewardj8eb8bab2015-07-21 14:44:28 +000068 ldynsym \
69 lsframe1 \
70 lsframe2 \
71 mmapobj_bssonly \
72 mmapobj_bssonly.so \
73 name_service_door \
74 pkcs11 \
75 scalar \
76 scalar_ioctl \
77 sendfilev \
78 shmat \
79 strlcpy \
80 syscall_at \
81 thr_daemon_exit_libc \
82 thr_daemon_exit_standalone
83
84if SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
85check_PROGRAMS += execx
86endif
87
iraisre8db7062015-09-25 20:53:09 +000088if SOLARIS_RESERVE_SYSSTAT_ADDR
89check_PROGRAMS += gethrusec
90endif
91
sewardj8eb8bab2015-07-21 14:44:28 +000092if SOLARIS_GETZONEOFFSET_FASTTRAP
93check_PROGRAMS += getzoneoffset
94endif
95
96if SOLARIS_OLD_SYSCALLS
97check_PROGRAMS += scalar_obsolete
98endif
99
Elliott Hughesa0664b92017-04-18 17:46:52 -0700100if SOLARIS_AUDITON_STAT
101check_PROGRAMS += scalar_auditon_stat
102endif
103
sewardj8eb8bab2015-07-21 14:44:28 +0000104if SOLARIS_FREALPATHAT_SYSCALL
105check_PROGRAMS += scalar_frealpathat
106endif
107
Elliott Hughesa0664b92017-04-18 17:46:52 -0700108if SOLARIS_GETRANDOM_SYSCALL
109check_PROGRAMS += scalar_getrandom
110endif
111
sewardj8eb8bab2015-07-21 14:44:28 +0000112if SOLARIS_LWP_NAME_SYSCALL
113check_PROGRAMS += scalar_lwp_name
114endif
115
Elliott Hughesa0664b92017-04-18 17:46:52 -0700116if SOLARIS_MODCTL_MODNVL
117check_PROGRAMS += scalar_modctl_modnvl
118endif
119
sewardj8eb8bab2015-07-21 14:44:28 +0000120if SOLARIS_LWP_SIGQUEUE_SYSCALL
121if SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
122check_PROGRAMS += scalar_lwp_sigqueue_pid
123else
124check_PROGRAMS += scalar_lwp_sigqueue
125endif
126else
127check_PROGRAMS += scalar_lwp_kill
128endif
129
130if SOLARIS_SHM_NEW
131check_PROGRAMS += scalar_shm_new
132endif
133
134if SOLARIS_SPAWN_SYSCALL
135check_PROGRAMS += scalar_spawn spawn
136endif
137
iraisrc0d46cd2015-09-25 21:04:45 +0000138if SOLARIS_SYSTEM_STATS_SYSCALL
139check_PROGRAMS += scalar_system_stats
140endif
141
sewardj8eb8bab2015-07-21 14:44:28 +0000142if SOLARIS_TSOL_CLEARANCE
143check_PROGRAMS += scalar_tsol_clearance
144scalar_tsol_clearance_LDADD = -ltsol
145endif
146
147if SOLARIS_UTIMENSAT_SYSCALL
148check_PROGRAMS += scalar_utimensat
149endif
150
151if SOLARIS_UTIMESYS_SYSCALL
152check_PROGRAMS += scalar_utimesys
153endif
154
155if SOLARIS_UUIDSYS_SYSCALL
156check_PROGRAMS += scalar_uuidsys
157endif
158
Elliott Hughesa0664b92017-04-18 17:46:52 -0700159if SOLARIS_ZONE_DEFUNCT
sewardj8eb8bab2015-07-21 14:44:28 +0000160check_PROGRAMS += scalar_zone_defunct
161endif
162
163AM_CFLAGS += $(AM_FLAG_M3264_PRI)
164AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
165
166door_kill_LDADD = -lpthread
iraisr03d2f542015-09-29 18:57:56 +0000167ioctl_LDADD = -lsocket
sewardj8eb8bab2015-07-21 14:44:28 +0000168ldynsym_LDFLAGS = -Wl,--strip-all
169pkcs11_LDADD = -lpkcs11
170sendfilev_LDADD = -lsendfile
171
172inlinfo_SOURCES = inlinfo.c
173inlinfo_DEPENDENCIES = inlinfo_nested.so
174inlinfo_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris
175inlinfo_LDADD = inlinfo_nested.so
176inlinfo_nested_so_SOURCES = inlinfo_nested.c
Elliott Hughesa0664b92017-04-18 17:46:52 -0700177inlinfo_nested_so_CFLAGS = $(AM_CFLAGS) -fPIC @FLAG_W_NO_UNINITIALIZED@
sewardj8eb8bab2015-07-21 14:44:28 +0000178inlinfo_nested_so_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris -shared -fPIC
179
180mmapobj_bssonly_SOURCES = mmapobj_bssonly.c
181mmapobj_bssonly_DEPENDENCIES = mmapobj_bssonly.so
182mmapobj_bssonly_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris
183mmapobj_bssonly_LDADD = mmapobj_bssonly.so
184mmapobj_bssonly_so_SOURCES = mmapobj_bssonly_lib.c
185mmapobj_bssonly_so_CFLAGS = $(AM_CFLAGS) -fPIC
186mmapobj_bssonly_so_LDFLAGS = -nostartfiles -nodefaultlibs -shared
187
188thr_daemon_exit_standalone_LDFLAGS = -nostartfiles -nodefaultlibs