opkg: add update packages lists call to libopkg_test
[oweals/opkg-lede.git] / tests / libopkg_test.c
1 #include <opkg.h>
2 #include <stdlib.h>
3
4 int
5 main (int argc, char **argv)
6 {
7   opkg_t *opkg;
8   int err;
9   
10   opkg = opkg_new ();
11
12   opkg_set_option (opkg, "offline_root", "/tmp/");
13
14   err = opkg_update_package_lists (opkg);
15
16   printf ("opkg_update_package_lists returned %d\n", err);
17
18   opkg_free (opkg);
19 }