AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

build: In-build and post-installation test steps. #59

Open Artoria2e5 opened 9 years ago

Artoria2e5 commented 9 years ago

Two kinds of tests need to be implemented:

autobuild/test

Occurs before installation.

autobuild/abtest

Part of abscripts abstraction, for non-supporting PMs install to /var/ab/tests/$PKGNAME.

# /usr/bin/ab-testpackage
if package manager has support; then exec out; fi
abbl-invoke "/var/ab/tests/$PKGNAME"
MingcongBai commented 9 years ago

Occurs before installation.

Might as well just change that to a switch to whether to run unit tests or not.

Artoria2e5 commented 8 years ago

As an side, some good test can also be fed to AutoFDO…

MingcongBai commented 8 years ago

As an side, some good test can also be fed to AutoFDO…

Yaaas!