From a4b27712ff174fbeabc8509a68b38801a707f000 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 14 Dec 2008 23:38:19 -0500 Subject: opkg: move tests into a separate directory git-svn-id: http://opkg.googlecode.com/svn/trunk@34 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/Makefile.am b/Makefile.am index 69b61f0..07de343 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,4 @@ -#SUBDIRS = etc replace familiar libbb -SUBDIRS = etc familiar libbb libopkg src +SUBDIRS = etc familiar libbb libopkg tests src HOST_CPU=@host_cpu@ BUILD_CPU=@build_cpu@ diff --git a/configure.ac b/configure.ac index c98db77..d36fa5f 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AC_SUBST(opkglibdir) AC_OUTPUT( Makefile libopkg/Makefile + tests/Makefile src/Makefile etc/Makefile familiar/Makefile diff --git a/libopkg/Makefile.am b/libopkg/Makefile.am index ad4de4d..a780825 100644 --- a/libopkg/Makefile.am +++ b/libopkg/Makefile.am @@ -63,14 +63,3 @@ libopkg_la_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) lib_LTLIBRARIES = libopkg.la -noinst_PROGRAMS = opkg_hash_test opkg_extract_test - -opkg_hash_test_LDADD = $(top_builddir)/libbb/libbb.la -opkg_hash_test_SOURCES = opkg_hash_test.c $(opkg_db_sources) $(opkg_util_sources) $(opkg_list_sources) -opkg_hash_test_CFLAGS = $(ALL_CFLAGS) - -opkg_extract_test_LDADD = $(top_builddir)/libbb/libbb.la -opkg_extract_test_SOURCES = opkg_extract_test.c $(opkg_db_sources) $(opkg_util_sources) $(opkg_list_sources) -opkg_extract_test_CFLAGS = $(ALL_CFLAGS) - - diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..f7be7ff --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,12 @@ + +noinst_PROGRAMS = opkg_hash_test opkg_extract_test + +opkg_hash_test_LDADD = $(top_builddir)/libbb/libbb.la $(top_builddir)/libopkg/libopkg.la +opkg_hash_test_SOURCES = opkg_hash_test.c +opkg_hash_test_CFLAGS = $(ALL_CFLAGS) -I$(top_builddir) + +opkg_extract_test_LDADD = $(top_builddir)/libbb/libbb.la $(top_builddir)/libopkg/libopkg.la +opkg_extract_test_SOURCES = opkg_extract_test.c +opkg_extract_test_CFLAGS = $(ALL_CFLAGS) -I$(top_builddir) + + diff --git a/libopkg/opkg_extract_test.c b/tests/opkg_extract_test.c index 83e23e3..83e23e3 100644 --- a/libopkg/opkg_extract_test.c +++ b/tests/opkg_extract_test.c diff --git a/libopkg/opkg_hash_test.c b/tests/opkg_hash_test.c index 934dac7..934dac7 100644 --- a/libopkg/opkg_hash_test.c +++ b/tests/opkg_hash_test.c -- cgit v0.9.1