aboutsummaryrefslogtreecommitdiff
path: root/lib/libproc/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libproc/tests/Makefile')
-rw-r--r--lib/libproc/tests/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libproc/tests/Makefile b/lib/libproc/tests/Makefile
new file mode 100644
index 000000000000..9467cc634884
--- /dev/null
+++ b/lib/libproc/tests/Makefile
@@ -0,0 +1,14 @@
+ATF_TESTS_C+= proc_test
+
+PROGS= target_prog
+SRCS_target_prog= target_prog.c
+BINDIR_target_prog= ${TESTSDIR}
+
+LIBADD= elf proc rtld_db util
+
+# Ensure that symbols aren't stripped from the test program, as they're needed
+# for testing symbol lookup.
+STRIP=
+CFLAGS.target_prog.c+= -O0
+
+.include <bsd.test.mk>