X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=test%2Flib%2FMakefile.am;h=65991a55d54a0a32256f4fe8d011e45e31bf81eb;hb=7f5a99f015cb1f48f73acb921beced6daf9fa15d;hp=36067100553a09de2e7deec2e018f9fcd2b52dad;hpb=8b09f179fb71f13223e78ceb91f6a692053957b0;p=petitboot diff --git a/test/lib/Makefile.am b/test/lib/Makefile.am index 3606710..65991a5 100644 --- a/test/lib/Makefile.am +++ b/test/lib/Makefile.am @@ -11,26 +11,29 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -AUTOMAKE_OPTIONS = parallel-tests +lib_TESTS = \ + test/lib/list-test \ + test/lib/test-process-noargs \ + test/lib/test-process-sync \ + test/lib/test-process-sync-stdout \ + test/lib/test-process-stderr \ + test/lib/test-process-stderr-stdout \ + test/lib/test-process-async \ + test/lib/test-process-async-stdout \ + test/lib/test-process-parent-stdout \ + test/lib/test-process-both \ + test/lib/test-process-stdout-eintr \ + test/lib/test-fold \ + test/lib/test-efivar -AM_CPPFLAGS = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lib \ - -DDEBUG +if WITH_OPENSSL +lib_TESTS += \ + test/lib/test-security-openssl-verify \ + test/lib/test-security-openssl-decrypt +endif -AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror +$(lib_TESTS): LIBS += $(core_lib) +$(lib_TESTS): AM_CPPFLAGS += -DTEST_LIB_DATA_BASE='"$(abs_top_srcdir)/test/lib/data"' -LDADD = ../../lib/libpbcore.la - -check_PROGRAMS = list-test \ - test-process-noargs \ - test-process-sync \ - test-process-sync-stdout \ - test-process-async \ - test-process-async-stdout \ - test-process-parent-stdout \ - test-process-both - -TESTS = $(check_PROGRAMS) - -MAINTAINERCLEANFILES = Makefile.in +check_PROGRAMS += $(lib_TESTS) +TESTS += $(lib_TESTS)