Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.2  rillig # $NetBSD: opt-version.mk,v 1.2 2022/05/08 07:27:50 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the command line option '--version', which may be expected to
      4  1.2  rillig # output the version number of make.  NetBSD's make does not have a version
      5  1.2  rillig # number, but the bmake distribution created from it has.
      6  1.1  rillig 
      7  1.1  rillig # As of 2021-12-23, the output is a single empty line since the '--' does not
      8  1.1  rillig # end the command line options.  Command line parsing then continues as if
      9  1.1  rillig # nothing had happened, and the '-version' is split into '-v ersion', which is
     10  1.1  rillig # interpreted as "print the expanded variable named 'ersion'".
     11  1.1  rillig 
     12  1.1  rillig .MAKEFLAGS: --version
     13