From 3f3e0b1985f5fe71c10ece3bdea10add1894e43b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 20 Nov 2018 18:25:52 +0100 Subject: [PATCH] build-package: create SysTest package --- build-package | 5 +++++ data/build-package.pkg-misc | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/build-package b/build-package index d6c4162..92115c4 100755 --- a/build-package +++ b/build-package @@ -56,6 +56,10 @@ for opt in ${@}; do mk_pkg_bromite_webview ;; + systest ) + mk_pkg_systest + ;; + all ) check_nanodroid || error "run nanodroid-pull first!" mk_pkg_full @@ -65,6 +69,7 @@ for opt in ${@}; do mk_pkg_uninstaller mk_pkg_setupwizard mk_pkg_bromite_webview + mk_pkg_systest ;; ver ) diff --git a/data/build-package.pkg-misc b/data/build-package.pkg-misc index c9611c3..775033d 100644 --- a/data/build-package.pkg-misc +++ b/data/build-package.pkg-misc @@ -64,3 +64,23 @@ mk_pkg_uninstaller () { create_uninstaller_package & progress $! } + +create_systest_package() { + ZIP="${CWD}/NanoDroid-systest-${VERSION}".zip + rm -f "${ZIP}"* + + print_package "SysTest" + + cd "${CWD}/systest" + zip_add + cd "${CWD}" + + zip_add_doc + + sum_sign_package "${ZIP}" +} + +mk_pkg_systest () { + create_systest_package & + progress $! +}