summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-stage1-test.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/bootstrap-stage1-test.sh b/bootstrap-stage1-test.sh
index bfe11a1..1cad0cd 100755
--- a/bootstrap-stage1-test.sh
+++ b/bootstrap-stage1-test.sh
@@ -16,15 +16,33 @@ main()
test_packages
}
+log()
+{
+ local msg i
+
+ msg="$(printf "${@}")"
+ printf '\n%s\n' "${msg}"
+ i=0
+ while [ ${i} -lt ${#msg} ]; do
+ printf '-'
+ i=$(($i + 1))
+ done
+ printf '\n\n'
+}
+
test_packages()
{
local zlib_upstream_ver
cd root
+ log 'Testing BusyBox...'
sudo chroot . true
+
+ log 'Testing GNU readelf...'
sudo chroot . readelf -hl /usr/bin/readelf
+ log 'Testing GCC...'
zlib_upstream_ver="$(printf '%s' ../pkg/zlib/zlib-*.orig.tar* | sed \
's|^.*/zlib-\([a-z0-9.~]*\).*\.orig\.tar.*$|\1|')"
tar -xjOf ../pkg/zlib/zlib-*.orig.tar* \