- Should the manual introduce a new unprivileged user to perform tests?
- Some unit tests is not able to be processed as root, and some do the contrary.
- If introduced, whether AB3 or buildkit would provide the user?
- Should enabling the test alternate the normal process of acbs?
- E.g. , if test is enabled, QA check will not be performed, or the final
.deb
package will not be produced;- Maybe, if tests are enabled, QA error may not stop the autobuild, but make
build/{80-pm_pack,90-pm_install,99-pm_archive}.sh
not to be executed.
- Maybe, if tests are enabled, QA error may not stop the autobuild, but make
- Tests may generate unnecessary executable files, and may be packaged in to
$PKGDIR
if ABTYPE is set other thanself
; - Performing tests between
build/90-pm_install.sh
and99-pm_archive.sh
might be a solution, but needs more discussion. (Assuming all tests are executed inside a container)
- Should introduce a new QA issue code to indicate that test mode is not set?
(--- Snipped while being in WIP state ---)
ABTEST_ENABLED(__${ARCH})=(0|1)
:- 0: DEFAULT VALUE. Test will not be performed. All test related files and variables are ignored.
- 1: Integrated tests is enabled. Setting this to 1 will alternate default behaviours of Autobuild3.
ABTEST_TESTONLY=(0|1)
: Applicable ifABTEST_ENABLED
is set to 1- 0: DEFAULT VALUE. Nothing will be altered.
- 1:
80-pm_pack.sh
,90-pm_install.sh
and99-pm_archive.sh
will not be performed.
Dependencies:
TESTDEP(__${ARCH})
: Representing the dependencies required by the package
Test Configurations:
ABTEST_ENABLED(__${ARCH})=(0|1)
: Same as environmental variables. Variable defined externally is prior toautobuild/defines
ABTEST_MODE(__${ARCH})=(notest|self|(other ABTESTTYPE))
notest
: DEFAULT VALUE. Representing either automated test is not available for the package, or there is no need to perform tests. Tests for this package is always considered successful.self
: Functions are provided byautobuild/test
. See below for details.(ABTESTTYPE)
: Functions are provided by autobuild3.
ABTEST_PLACE
(Discussion needed)
This file should contain two functions: abtest()
and abtest_unprivileged()
.
Introduce a new module tests
. File hierarchy is similar to build
.
(Placeholder, which will define a series of return value)
Both abtest()
and abtest_unprivileged()
are dummy and will return 0;
Use function arch_loadfile
to execute autobuild/test
.
The standard will introduce a new option (placeholder)
.
In summary, ciel
will not be affected by the standard.