r4372 - trunk/src/target/opkg/tests
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Thu Apr 17 13:14:38 CEST 2008
Author: thomas
Date: 2008-04-17 13:14:37 +0200 (Thu, 17 Apr 2008)
New Revision: 4372
Added:
trunk/src/target/opkg/tests/libopkg_test.c
Modified:
trunk/src/target/opkg/tests/Makefile.am
Log:
opkg: add libopkg test application
Modified: trunk/src/target/opkg/tests/Makefile.am
===================================================================
--- trunk/src/target/opkg/tests/Makefile.am 2008-04-17 10:56:46 UTC (rev 4371)
+++ trunk/src/target/opkg/tests/Makefile.am 2008-04-17 11:14:37 UTC (rev 4372)
@@ -1,12 +1,17 @@
-noinst_PROGRAMS = opkg_hash_test opkg_extract_test
+#noinst_PROGRAMS = opkg_hash_test opkg_extract_test
+noinst_PROGRAMS = libopkg_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_srcdir)
+#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_srcdir)
-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_srcdir)
+#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_srcdir)
+libopkg_test_LDADD = $(top_builddir)/libopkg/libopkg.la
+libopkg_test_SOURCE = libopkg_test.c
+libopkg_test_CFLAGS = $(ALL_CFLAGS)
+
Added: trunk/src/target/opkg/tests/libopkg_test.c
===================================================================
--- trunk/src/target/opkg/tests/libopkg_test.c 2008-04-17 10:56:46 UTC (rev 4371)
+++ trunk/src/target/opkg/tests/libopkg_test.c 2008-04-17 11:14:37 UTC (rev 4372)
@@ -0,0 +1,15 @@
+#include <opkg.h>
+
+
+int
+main (int argc, char **argv)
+{
+ opkg_t *opkg;
+
+ opkg = opkg_new ();
+
+ opkg_set_option (opkg, "offline_root", "/tmp/");
+
+
+ opkg_free (opkg);
+}
More information about the commitlog
mailing list