main/postmarketos-test: add bootrr subpackage
Taking the files from the bootrr package. This will allow us to move the package to alpine in the future, also to, in follow-up commits, make the use of the postmarketos-test package consistent. Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7881>
This commit is contained in:
parent
5a4a943e9a
commit
8283f0002a
3 changed files with 24 additions and 2 deletions
3
main/postmarketos-test/00-bootrr-files.files
Normal file
3
main/postmarketos-test/00-bootrr-files.files
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/usr/bin/bootrr
|
||||
/usr/bin/bootrr-generate-template
|
||||
/usr/libexec/bootrr/
|
||||
9
main/postmarketos-test/00-bootrr-test.sh
Normal file
9
main/postmarketos-test/00-bootrr-test.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh -e
|
||||
# Description: bootrr sanity check
|
||||
|
||||
bootrr | tee bootrr.log
|
||||
|
||||
if [ grep -q 'fail' bootrr.log ]; then
|
||||
echo "PMOS-CI-TEST: bootrr sanity check failed"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
maintainer="Casey Connolly <kcxt@postmarketos.org>"
|
||||
pkgname=postmarketos-test
|
||||
pkgver=1.3.0
|
||||
pkgver=1.4.0
|
||||
pkgrel=0
|
||||
pkgdesc="Common test utilities for postmarketOS"
|
||||
url="https://postmarketos.org"
|
||||
|
|
@ -8,6 +8,8 @@ arch="noarch"
|
|||
license="GPL2"
|
||||
depends="devicepkg-utils"
|
||||
source="
|
||||
00-bootrr-files.files
|
||||
00-bootrr-test.sh
|
||||
30-unl0kr-test.sh
|
||||
90-suspend-test.sh
|
||||
"
|
||||
|
|
@ -17,6 +19,7 @@ options="!check"
|
|||
# TODO: more tests
|
||||
# maybe test cpu frequency scaling, thermals under load, etc.
|
||||
subpackages="
|
||||
$pkgname-bootrr
|
||||
$pkgname-suspend:_test
|
||||
$pkgname-shell
|
||||
$pkgname-unl0kr
|
||||
|
|
@ -45,6 +48,11 @@ _test() {
|
|||
fi
|
||||
}
|
||||
|
||||
bootrr() {
|
||||
depends="bootrr"
|
||||
_test
|
||||
}
|
||||
|
||||
# Installs a "test" which just runs a shell on the console for debugging
|
||||
shell() {
|
||||
mkdir -p "$subpkgdir"/usr/libexec/pmos-tests-initramfs
|
||||
|
|
@ -57,6 +65,8 @@ unl0kr() {
|
|||
_test
|
||||
}
|
||||
sha512sums="
|
||||
bd0ed41c4dba232b6ac211ae58cad83b15a4408829cd8df0a866453b014c8d4b17900d9310e8a2a02248f6da8853bdd2b04ed96c250204def8e086c0ba15b9e7 00-bootrr-files.files
|
||||
f5568803fe5d0254da222e09e06a062f77a98cfa5f438c54c788f6a08d56ea1a7b85f75595ad46c2a173e95681df58552ae572eba30b3239d5e4c225b4c54a2a 00-bootrr-test.sh
|
||||
407180b49c1a05f12bd6ee6e59dca0a6e74fe7b01f195087dcf2865598c47827d0bb569afdba55defa2f9a16437230fa62aa64f35111508b906bcbf9537acba4 30-unl0kr-test.sh
|
||||
73d75e067f6bb99dab219e0154514841462dc171644756dcdfcb2daa039bd3052d61f35996608499fb0958042cc817ba0ac8196410c68e9133c2670d4cf36529 90-test-suspend.sh
|
||||
73d75e067f6bb99dab219e0154514841462dc171644756dcdfcb2daa039bd3052d61f35996608499fb0958042cc817ba0ac8196410c68e9133c2670d4cf36529 90-suspend-test.sh
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue