From 8a97fc3dfec42e03f72b528b3cfc48136ab6690d Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 7 Jun 2022 21:50:06 -0400 Subject: [PATCH] Add missing file for autotest snippet test. The test for --disable-dependency-tracking depends on a mock autotest command but I apparently failed to commit that script. --- t/autotest.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 t/autotest.sh diff --git a/t/autotest.sh b/t/autotest.sh new file mode 100755 index 0000000..d563ab2 --- /dev/null +++ b/t/autotest.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright © 2022 Nick Bowler +# +# Fake autotest program for testing the autotest snippets. +# +# License WTFPL2: Do What The Fuck You Want To Public License, version 2. +# This is free software: you are free to do what the fuck you want to. +# There is NO WARRANTY, to the extent permitted by law. + +argv0=$0 + +outfile= +for arg +do + arg=${lastarg:+"$lastarg="}$arg + lastarg= + + save_IFS=$IFS; IFS='=' + set x $arg; shift; shift; optarg=$* + IFS=$save_IFS + + case $arg in + -o|--output) lastarg=--output ;; + --output=*) outfile=$optarg ;; + esac +done + +test x"$outfile" = x || exec 1>"$outfile" -- 2.43.2