diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-03 16:21:31 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-03 16:21:31 (EDT) |
commit | 17bb76984e1c68b26c59014004d3c5074fddee81 (patch) | |
tree | 13d45cf6cf1f939b02cb2eeec21c0825f6691112 | |
parent | 121eabbcd1933b206c03c7781d7d6ffea7a2f068 (diff) |
bootstrap-stage1-test.sh: Test opkg.
-rwxr-xr-x | bootstrap-stage1-test.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstrap-stage1-test.sh b/bootstrap-stage1-test.sh index 41f79fa..f0fa609 100755 --- a/bootstrap-stage1-test.sh +++ b/bootstrap-stage1-test.sh @@ -52,7 +52,7 @@ log() test_packages() { - local zlib_upstream_ver + local zlib_upstream_ver opk cd root @@ -70,6 +70,14 @@ test_packages() sudo chroot . gcc -lz -o /fitblk /fitblk.c sudo chroot . /fitblk | grep -F 'fitblk abort' >/dev/null + log 'Testing opkg...' + for opk in ../pkg/*_${ARCH}_${PLAT}.opk ../pkg/*_${ARCH}_all.opk \ + ../pkg/*_all_${PLAT}.opk ../pkg/*_all_all.opk; do + [ -f "${opk}" ] || continue + cp "${opk}" . + done + sudo chroot . sh -c 'opkg install /*.opk' + cd .. } |