]> git.ozlabs.org Git - petitboot/blobdiff - test/lib/Makefile.am
test/efivar: Rework for efi_mount
[petitboot] / test / lib / Makefile.am
index 56fea5e6eba65c69e21be3e8aed5c8d70c556f46..65991a55d54a0a32256f4fe8d011e45e31bf81eb 100644 (file)
 #  along with this program; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #  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 \
-       -I$(includedir) \
-       $(DEFAULT_CPPFLAGS)
+if WITH_OPENSSL
+lib_TESTS += \
+       test/lib/test-security-openssl-verify \
+       test/lib/test-security-openssl-decrypt
+endif
 
 
-AM_CFLAGS = \
-       $(DEFAULT_CFLAGS)
+$(lib_TESTS): LIBS += $(core_lib)
+$(lib_TESTS): AM_CPPFLAGS += -DTEST_LIB_DATA_BASE='"$(abs_top_srcdir)/test/lib/data"'
 
 
-list_test_SOURCES = list-test.c
-list_test_LDADD = ../../lib/libpbcore.la
-
-noinst_PROGRAMS = list-test
-
-MAINTAINERCLEANFILES = Makefile.in
+check_PROGRAMS += $(lib_TESTS)
+TESTS += $(lib_TESTS)