Import c99types.h and related probes from cdecl99.
[dxcommon.git] / t / autotest.sh
blobbbb8360976b3c49f25d274e8edfba183634d5162
1 #!/bin/sh
3 # Copyright © 2022-2023 Nick Bowler
5 # Fake autotest program for testing the autotest macros and snippets.
7 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 # This is free software: you are free to do what the fuck you want to.
9 # There is NO WARRANTY, to the extent permitted by law.
11 argv0=$0
13 outfile=
14 for arg
16 arg=${lastarg:+"$lastarg="}$arg
17 lastarg=
19 save_IFS=$IFS; IFS='='
20 set x $arg; shift; shift; optarg=$*
21 IFS=$save_IFS
23 case $arg in
24 -o|--output) lastarg=--output ;;
25 --output=*) outfile=$optarg ;;
26 esac
27 done
29 test x"$outfile" = x || exec 1>"$outfile"
30 echo "echo 'testsuite (mypackage)'"