diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-11-10 21:34:27 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-11-10 21:34:27 +0000 |
commit | f7b19c3454c56c25bc13a8ffbbcc544a9337cca7 (patch) | |
tree | 446b8518de3ac9292a470461848fce4f17decfbc | |
parent | 3225884ed32afb297f11a3b22dc57a7f52e38209 (diff) | |
download | abuild-f7b19c3454c56c25bc13a8ffbbcc544a9337cca7.tar.gz abuild-f7b19c3454c56c25bc13a8ffbbcc544a9337cca7.tar.bz2 abuild-f7b19c3454c56c25bc13a8ffbbcc544a9337cca7.tar.xz abuild-f7b19c3454c56c25bc13a8ffbbcc544a9337cca7.zip |
abuild: rootbld: run testsuites if requested, also handle package() only builds
-rw-r--r-- | abuild.in | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -2074,8 +2074,18 @@ checksum() { } rootbld_actions() { - local part - for part in symlinksrc unpack prepare build rootpkg; do + local part _build=build _check=check_fakeroot + if ! is_function package; then + # if package() is missing then build is called from rootpkg + _build=true + fi + if options_has "!checkroot"; then + _check=check + fi + if ! want_check; then + _check=true + fi + for part in symlinksrc unpack prepare $_build $_check rootpkg; do runpart $part done } |