diff --git a/main/postmarketos-test/00-bootrr-files.files b/main/postmarketos-test/00-bootrr-files.files new file mode 100644 index 000000000..324cb359c --- /dev/null +++ b/main/postmarketos-test/00-bootrr-files.files @@ -0,0 +1,3 @@ +/usr/bin/bootrr +/usr/bin/bootrr-generate-template +/usr/libexec/bootrr/ \ No newline at end of file diff --git a/main/postmarketos-test/00-bootrr-test.sh b/main/postmarketos-test/00-bootrr-test.sh new file mode 100644 index 000000000..70ec48559 --- /dev/null +++ b/main/postmarketos-test/00-bootrr-test.sh @@ -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 diff --git a/main/postmarketos-test/APKBUILD b/main/postmarketos-test/APKBUILD index e3961b3c6..0a57ffce5 100644 --- a/main/postmarketos-test/APKBUILD +++ b/main/postmarketos-test/APKBUILD @@ -1,6 +1,6 @@ maintainer="Casey Connolly " 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 "