pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/regress/infra-unittests



Module Name:    pkgsrc
Committed By:   rillig
Date:           Tue Aug  4 21:35:01 UTC 2020

Modified Files:
        pkgsrc/regress/infra-unittests: help.sh

Log Message:
regress/infra-unittests: add test for help, topic followed by comma


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/regress/infra-unittests/help.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/regress/infra-unittests/help.sh
diff -u pkgsrc/regress/infra-unittests/help.sh:1.5 pkgsrc/regress/infra-unittests/help.sh:1.6
--- pkgsrc/regress/infra-unittests/help.sh:1.5  Sat May 16 20:22:41 2020
+++ pkgsrc/regress/infra-unittests/help.sh      Tue Aug  4 21:35:01 2020
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: help.sh,v 1.5 2020/05/16 20:22:41 rillig Exp $
+# $NetBSD: help.sh,v 1.6 2020/08/04 21:35:01 rillig Exp $
 #
 # Test cases for "bmake help", mainly implemented in mk/help/help.awk.
 #
@@ -142,3 +142,24 @@ if test_case_begin 'commented variables 
 
        test_case_end
 fi
+
+
+if test_case_begin 'variable name followed by comma'; then
+
+       create_file 'fetch.mk' <<-EOF
+               #
+               # FETCH_USE_IPV4_ONLY, if defined, will ...
+               #       ...
+               #       ...
+       EOF
+
+       TOPIC='fetch_use_ipv4_only' awk -f "$pkgsrcdir/mk/help/help.awk" \
+               'fetch.mk' >'out'
+
+       assert_that 'out' --file-is-lines \
+               'No help found for fetch_use_ipv4_only, but it appears in:' \
+               '' \
+               'fetch.mk'
+
+       test_case_end
+fi



Home | Main Index | Thread Index | Old Index