FreeBSD/poudriere 000a75asrc/share/poudriere/include hash.sh

hash_isset_var: mapfile can break since specializing /dev/stdin
DeltaFile
+5-9src/share/poudriere/include/hash.sh
+5-91 files

FreeBSD/poudriere ae62e96src/share/poudriere/include hash.sh, test stack.sh

Add stack_isset()
DeltaFile
+16-0test/stack.sh
+8-0src/share/poudriere/include/hash.sh
+24-02 files

FreeBSD/poudriere 716dcd4src/share/poudriere common.sh, src/share/poudriere/include hash.sh

eargs: Support showing passed in vars

Requires adding to the end of the eargs line:
        EARGS: "$@"
This passes in the positional parameters which allows seeing them
properly grouped.

        # ./poudriere api 'hash_get'
        Error: hash_get: 3 arguments expected, got 0:
                Expected: hash_get var key var_return
                Missing:  var key var_return
        # ./poudriere api 'hash_get 1'
        Error: hash_get: 3 arguments expected, got 1:
                Expected: hash_get var key var_return
                Received: hash_get "1"
                Missing:  key var_return
        # ./poudriere api 'hash_get 1 2'
        Error: hash_get: 3 arguments expected, got 2:
                Expected: hash_get var key var_return

    [6 lines not shown]
DeltaFile
+102-12src/share/poudriere/common.sh
+1-1src/share/poudriere/include/hash.sh
+103-132 files

FreeBSD/poudriere c87c139src/poudriere-sh helpers.c, src/share/poudriere common.sh

issetvar(): Rename to more consistent 'isset'
DeltaFile
+12-8src/share/poudriere/include/util.sh
+4-4src/share/poudriere/include/hash.sh
+4-4test/stack.sh
+2-2src/poudriere-sh/helpers.c
+2-2src/share/poudriere/common.sh
+2-2test/getvar.sh
+26-221 files not shown
+27-237 files

FreeBSD/poudriere 26782d1src/share/poudriere/include util.sh hash.sh

setvar can fail, return error if so
DeltaFile
+34-25src/share/poudriere/include/util.sh
+35-21src/share/poudriere/include/hash.sh
+13-7src/share/poudriere/include/pkg.sh
+5-5src/share/poudriere/include/parallel.sh
+3-3src/share/poudriere/include/pkgqueue.sh
+2-2src/share/poudriere/include/cache.sh
+92-631 files not shown
+93-647 files

FreeBSD/poudriere 2ca347dsrc/share/poudriere/include hash.sh

Avoid || return on last line.

This may change behavior since || disables set -e. The
caller can control this if it cares about the error.
DeltaFile
+6-7src/share/poudriere/include/hash.sh
+6-71 files

FreeBSD/poudriere 86b5a83src/share/poudriere/include util.sh hash.sh

Fix some getvar/setvar functions to avoid shadowing setvar
DeltaFile
+262-255src/share/poudriere/include/util.sh
+78-78src/share/poudriere/include/hash.sh
+340-3332 files

FreeBSD/poudriere 37af7cdsrc/share/poudriere/include hash.sh, test gsub.sh

gsub sh: Fix special case of replacing '*'

This fixes an infinite loop in _msg_fmt_n() when aligning build summary.
DeltaFile
+6-0src/share/poudriere/include/hash.sh
+4-0test/gsub.sh
+10-02 files

FreeBSD/poudriere 40ee135src/share/poudriere/include hash.sh

hash: Cleanup shellcheck warnings
DeltaFile
+28-20src/share/poudriere/include/hash.sh
+28-201 files

FreeBSD/poudriere 6bf96ddsrc/share/poudriere/include hash.sh, test hash_basic.sh

hash_set: Support noclobber
DeltaFile
+10-1src/share/poudriere/include/hash.sh
+6-2test/hash_basic.sh
+16-32 files

FreeBSD/poudriere 15a97ecsrc/share/poudriere/include hash.sh, test hash_basic.sh

hash_remove: Support no return var
DeltaFile
+19-9src/share/poudriere/include/hash.sh
+9-1test/hash_basic.sh
+28-102 files

FreeBSD/poudriere 5afa5e6src/share/poudriere/include hash.sh

hash_remove: Avoid colliding with parent vars
DeltaFile
+9-9src/share/poudriere/include/hash.sh
+9-91 files

FreeBSD/poudriere 0e432e3src/share/poudriere/include hash.sh, test hash_basic.sh

Add a hash_vars() mostly for test assertions
DeltaFile
+65-0src/share/poudriere/include/hash.sh
+12-0test/hash_basic.sh
+77-02 files

FreeBSD/poudriere 097c7b2src/share/poudriere/include hash.sh, test gsub.sh

gsub_badchars: Fix with /bin/sh for '-' replacements
DeltaFile
+4-1src/share/poudriere/include/hash.sh
+3-0test/gsub.sh
+7-12 files

FreeBSD/poudriere aa9fc8dsrc/share/poudriere common.sh, test-ports/default MOVED

Merge branch 'tests-and-framework-and-misc'

* tests-and-framework-and-misc: (208 commits)
  Update ports from freebsd/freebsd-ports/main at 9d8ea2600730961c87b13ff051f26c4e88fa136d
  Support gmake jobserver for 'make check'
  New test assert framework
  Tests now support running the same test with different data.
  More SH builtins
  SH error/debug improvements
  77 new tests, 36 being package build tests
  Tests for pkgclean and incremental build
  Processes are now tracked as jobs rather than pids
  if [] conditions changed to use case where possible
  Some shellcheck finding fixes
DeltaFile
+2,967-14,532test-ports/default/MOVED
+7,402-0test-ports/default/lang/python39/pkg-plist
+0-7,018test-ports/default/lang/python37/pkg-plist
+3,262-2,190src/share/poudriere/common.sh
+5,402-0test-ports/default/Mk/bsd.port.mk.orig
+1,843-1,637test-ports/default/Mk/bsd.port.mk
+20,876-25,377619 files not shown
+54,108-42,093625 files

FreeBSD/poudriere 2a12ff8src/share/poudriere/include hash.sh, test stack.sh

stack: Add stack_size()
DeltaFile
+29-2src/share/poudriere/include/hash.sh
+25-5test/stack.sh
+54-72 files

FreeBSD/poudriere 9719ce5src/share/poudriere/include hash.sh util.sh, test array.sh readarray.sh

array/readarray() stuff
DeltaFile
+155-0src/share/poudriere/include/hash.sh
+80-0test/array.sh
+51-0test/readarray.sh
+30-15test/Makefile.in
+20-0src/share/poudriere/include/util.sh
+2-0test/Makefile.am
+338-156 files

FreeBSD/poudriere 79799f7src/share/poudriere/include hash.sh, test stack.sh

stack: Add stack_expand() and stack_set()
DeltaFile
+117-12test/stack.sh
+98-0src/share/poudriere/include/hash.sh
+215-122 files

FreeBSD/poudriere ad76b97src/share/poudriere/include asserts.sh hash.sh, test stack.sh hash_stack.sh

stack: Support spaced values
DeltaFile
+20-42test/stack.sh
+26-0src/share/poudriere/include/asserts.sh
+13-13test/hash_stack.sh
+7-6src/share/poudriere/include/hash.sh
+66-614 files

FreeBSD/poudriere d7cb95bsrc/share/poudriere common.sh, src/share/poudriere/include util.sh hash.sh

SC2295: Avoid expansion becoming a pattern
DeltaFile
+5-5src/share/poudriere/common.sh
+3-3src/share/poudriere/include/util.sh
+1-0src/share/poudriere/include/hash.sh
+9-83 files

FreeBSD/poudriere d1a860esrc/share/poudriere common.sh queue.sh, src/share/poudriere/include cache.sh util.sh

SC2145: Pass $@ properly as its own argument
DeltaFile
+13-11src/share/poudriere/common.sh
+8-8src/share/poudriere/include/cache.sh
+4-4src/share/poudriere/include/util.sh
+1-1src/share/poudriere/queue.sh
+1-1test/logging.sh
+1-1src/share/poudriere/jail.sh
+28-262 files not shown
+30-288 files

FreeBSD/poudriere 9f8bc6esrc/share/poudriere common.sh, src/share/poudriere/include util.sh pkg.sh

SC2254: Fix and document where case globbing is intended
DeltaFile
+38-29src/share/poudriere/common.sh
+4-4src/share/poudriere/include/util.sh
+4-4test/locked_mkdir_waiters_kill.sh
+7-1test/runtests.sh
+2-2test/common.bulk.sh
+1-1src/share/poudriere/include/pkg.sh
+56-412 files not shown
+58-438 files

FreeBSD/poudriere baeda8csrc/share/poudriere common.sh jail.sh, src/share/poudriere/include util.sh fs.sh

case is significantly faster than test(1) for simple string checks.
DeltaFile
+1,512-902src/share/poudriere/common.sh
+188-109src/share/poudriere/include/util.sh
+93-61src/share/poudriere/include/fs.sh
+59-35src/share/poudriere/include/pkg.sh
+56-22src/share/poudriere/jail.sh
+42-24src/share/poudriere/include/pkgqueue.sh
+1,950-1,15315 files not shown
+2,124-1,23921 files

FreeBSD/poudriere 22de977src/share/poudriere/include hash.sh, test stack.sh hash_stack.sh

stack: Add basic push/pop functions stack_*() and for hash_*()
DeltaFile
+222-0src/share/poudriere/include/hash.sh
+149-0test/stack.sh
+91-0test/hash_stack.sh
+16-2test/Makefile.in
+2-0test/Makefile.am
+480-25 files

FreeBSD/poudriere 75f8d05src/share/poudriere jail.sh common.sh, src/share/poudriere/include fs.sh util.sh

Pipefail fixes
DeltaFile
+109-50src/share/poudriere/jail.sh
+53-26src/share/poudriere/common.sh
+27-11src/share/poudriere/bulk.sh
+21-8src/share/poudriere/testport.sh
+14-12src/share/poudriere/include/fs.sh
+18-6src/share/poudriere/include/util.sh
+242-1134 files not shown
+258-12210 files

FreeBSD/poudriere 72bb09fsrc/share/poudriere/include display.sh hash.sh, test display.sh encode_args.sh

Merge branch 'display_encode_args'
DeltaFile
+677-0test/display.sh
+242-53src/share/poudriere/include/display.sh
+84-36src/share/poudriere/include/hash.sh
+49-31src/share/poudriere/include/util.sh
+65-7test/encode_args.sh
+17-9test/Makefile.in
+1,134-1364 files not shown
+1,154-13810 files

FreeBSD/poudriere dc03d6csrc/share/poudriere/include hash.sh

hash: Reduce code duplication
DeltaFile
+4-7src/share/poudriere/include/hash.sh
+4-71 files

FreeBSD/poudriere 1cdbb7bsrc/share/poudriere/include hash.sh

hash: Avoid name collisions with callers
DeltaFile
+43-43src/share/poudriere/include/hash.sh
+43-431 files

FreeBSD/poudriere 6adaaf6src/share/poudriere/include hash.sh, test hash_basic.sh

hash: Add hash_isset_var() and hash_unset_var()
DeltaFile
+51-0src/share/poudriere/include/hash.sh
+17-0test/hash_basic.sh
+68-02 files

FreeBSD/poudriere 6a5a77fsrc/share/poudriere/include hash.sh

hash/list: Hide unhelpful set -x debugging
DeltaFile
+4-0src/share/poudriere/include/hash.sh
+4-01 files