summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:10:21 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:10:21 (EST)
commitc4e896ceda14cb1515625b020c705b521f0e306d (patch)
tree8eea7e7fd8a287d5f7a90f231220fef7141f41ab /tests
parent877f281ecc4ee8a641de6a68d21b294034e4d657 (diff)
opkg: add update packages lists call to libopkg_test
git-svn-id: http://opkg.googlecode.com/svn/trunk@76 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'tests')
-rw-r--r--tests/libopkg_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c
index b834a7f..9146d0c 100644
--- a/tests/libopkg_test.c
+++ b/tests/libopkg_test.c
@@ -1,15 +1,19 @@
#include <opkg.h>
-
+#include <stdlib.h>
int
main (int argc, char **argv)
{
opkg_t *opkg;
+ int err;
opkg = opkg_new ();
opkg_set_option (opkg, "offline_root", "/tmp/");
+ err = opkg_update_package_lists (opkg);
+
+ printf ("opkg_update_package_lists returned %d\n", err);
opkg_free (opkg);
}