2017-05-26 20:26:25 +00:00
|
|
|
pkgname=hello-world
|
|
|
|
pkgver=1
|
Testsuite: Run UIs in Qemu and check running processes and more (#982)
* Testsuite: Run UIs in Qemu and check running processes (and other changes)
* When `pmbootstrap qemu` gets killed, it now takes down the Qemu process with it
* `test/check_checksums.py` got a new optional `--build` parameter, which makes
it build all changed packages instead of just checking the checksums
* We run this before running the testsuite now, so all changed packages get
built before running tests (otherwise tests would hang without any output
while a changed package is building)
* New testcase, that zaps all chroots, installs a specific UI (xfce4 and
plasma-mobile currently, easy to extend), runs it via Qemu and checks the
running processes via SSH.
* Version checking testcase: rewritten to include Alpine's testsuite file in
our source tree, so we don't need to clone their git repo anymore. Now it
is enabled for Travis.
* All this gives us a nice 10% code coverage boost
* Increased the `hello-world` pkgrel to verify that the Travis job is working.
* Various fixes
* Build device-packages for the device arch and don't raise an
exception, but print a note if --ignore-depends is not specified
and therefore the kernel gets installed, too.
* Don't use --force when building in Travis (because abuild doesn't
check the checksums then. Bug report on the way.)
* Don't run the building process in the background, but wait for its
completion
* Exit with 1 when showing usage in check_checksums.py
2018-02-02 00:16:29 +00:00
|
|
|
pkgrel=4
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="hello world program to be built in the testsuite"
|
|
|
|
url="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program"
|
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
|
|
|
depends=""
|
|
|
|
makedepends=""
|
|
|
|
subpackages=""
|
|
|
|
source="main.c Makefile"
|
|
|
|
options=""
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir"
|
|
|
|
printf 'hello, world!\n' > expected
|
|
|
|
./hello-world > real
|
|
|
|
diff -q expected real
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -D -m755 "$srcdir"/hello-world \
|
2017-10-04 15:05:00 +00:00
|
|
|
"$pkgdir"/usr/bin/hello-world
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
2019-06-25 06:29:37 +00:00
|
|
|
sha512sums="62385af6a68cd4e0c03b15992bb9f1d20b8d6c8a33724ca2d28629a139e95016d0502257f8a3a8be53eef30e11b3e372a2469cb1989dbd387ebea4464a9273ee main.c
|
2017-05-26 20:26:25 +00:00
|
|
|
80c32948d3254f5e4f9084d73754824e7d7d7d117770b041a1a13baf056773de265153fe518cc3e735db55b638411aa6fbd0e17b5b674dfc89e69a9391fbd3bb Makefile"
|