git: dfregress: Add 'interpreter' option

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Thu Nov 26 14:53:19 PST 2020


commit 0d575305999842dc2a129c71e822ce56833ec74d
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Thu Nov 26 23:40:00 2020 +0100

    dfregress: Add 'interpreter' option
    
      - Allows to specify the interpreter that will run the testcase file.
        Some test cases just provide a file without execution permissions or no
        shebang, etc. In some cases it is not desirable to modify the test case
        files (i.e. contrib stuff).
    
        Taking the example below, the previous behavior was to execvp() the file
        'builtins/alias.0' but with 'interpreter' option, now you can specify
        the shell you want to use to run it.
    
        # Testcase            type        Options                   Args
        builtins/alias.0      userland    nobuild,interpreter=sh    myarg1 myarg2

Summary of changes:
 usr.bin/dfregress/dfregress.8 | 12 ++++++++-
 usr.bin/dfregress/runlist.c   |  5 +++-
 usr.bin/dfregress/testcase.c  | 62 ++++++++++++++++++++++++++++++++++++++++++-
 usr.bin/dfregress/testcase.h  |  4 +++
 usr.bin/dfregress/userland.c  | 50 +++++++++++++++++++++++++++++-----
 usr.bin/dfregress/userland.h  |  6 ++---
 6 files changed, 127 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d575305999842dc2a129c71e822ce56833ec74d


-- 
DragonFly BSD source repository



More information about the Commits mailing list