"Fossies" - the Fresh Open Source Software Archive

Member "argbash-2.10.0/tests/regressiontests/test-prog.m4" (22 Sep 2020, 428 Bytes) of package /linux/privat/argbash-2.10.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash -e
    2 
    3 # ARG_VERSION([echo "$0 FOO"])
    4 # ARG_USE_PROGRAM([fulala], [FULALA], [fulala doesnt exist], [Testing program m4_fatal(BOOM!)])
    5 # ARG_HELP([Testing program m4_fatal(BOOM!)], [m4_fatal([CRASH!])])
    6 # ARGBASH_GO()
    7 
    8 # [ <-- needed because of Argbash
    9 
   10 "$FULALA" --version > /dev/null || die "fulala doesnt work"
   11 
   12 # ] <-- needed because of Argbash
   13 m4_ifdef([m4_esyscmd], [m4_fatal([The m4_esyscmd macro is enabled!])])