Module Name:    othersrc
Committed By:   dholland
Date:           Tue Mar 18 05:59:44 UTC 2014

Added Files:
        othersrc/external/bsd/bsd-pkg-config/dist/tests: Makefile README.test
            basetest.better basetest.good basetest.sh
            package-query-libtuff-4.better package-query-libtuff-4.good
            package-query-y11.better package-query-y11.good
            package-query-ykbproto.better package-query-ykbproto.good
            package-query-yproto.better package-query-yproto.good
            package-query.sh
        othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles: libtuff-4.pc
            y11.pc ykbproto.pc yproto.pc

Log Message:
Add a test suite.

This needs a bit of work to support running the tests from bin/, but
not much, and it runs ok (just less tidily) in place.

At the moment none of it really works because the bsd-pkg-config
script doesn't honor PKG_CONFIG_PATH.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/Makefile \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/README.test \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.better \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.good \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.sh \
    
othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.better \
    
othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.good \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.better \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.good \
    
othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.better \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.good 
\
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.better 
\
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.good \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query.sh
cvs rdiff -u -r0 -r1.1 \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/libtuff-4.pc \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/y11.pc \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/ykbproto.pc \
    othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/yproto.pc

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

Added files:

Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/Makefile
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/Makefile:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/Makefile	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,47 @@
+PKGCONFIG=../bsd-pkg-config.sh
+#PKGCONFIG=/usr/pkg/bin/pkg-config
+
+ALLTESTS=basetest
+PCFILES=libtuff-4 y11 ykbproto yproto
+
+REFVER.libtuff-4=4.0.1	# less than extant version
+REFVER.y11=1.6.1	# greater than extant version
+REFVER.ykbproto=1.0.6	# same as extant version
+REFVER.yproto=7.0.24	# same as extant version
+
+############################################################
+
+all: run-tests .WAIT show-diffs
+
+.for P in $(PCFILES)
+ALLTESTS+=package-query-$(P)
+package-query-$(P).out: package-query.sh $(PKGCONFIG)
+	./package-query.sh $(PKGCONFIG) $(P) $(REFVER.$(P)) > $@ 2>&1
+.endfor
+
+.for T in $(ALLTESTS)
+.if !target($(T).out)
+$(T).out: $(T).sh $(PKGCONFIG)
+	./$(T).sh $(PKGCONFIG) > $@ 2>&1
+.endif
+
+$(T).diff: $(T).good $(T).out
+	diff -u $(T).good $(T).out > $(T).diff || true
+
+run-tests: $(T).diff
+.endfor
+
+show-diffs:
+.for T in $(ALLTESTS)
+	cat $(T).diff
+.endfor
+
+good:
+.for T in $(ALLTESTS)
+	cp $(T).out $(T).good
+.endfor
+
+clean distclean:
+	rm -f *.out *.diff
+
+.PHONY: all run-tests show-diffs good clean distclean
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/README.test
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/README.test:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/README.test	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,26 @@
+This is some basic test material taken from the original pkg-config's
+man page.
+
+I've included reference .pc files to work from, and given them
+nonstandard names, so the test results will be invariant under
+installed package changes.
+
+The .good files are the output that bsd-pkg-config currently emits;
+the .better files are the output that the original pkg-config emits.
+
+Run "make" to run the tests. If there's any diff output, inspect it
+for correctness relative to intended changes you've made (if any), and
+either fix things or update the .good files as appropriate.
+
+Run "make run-tests" to run everything but not spew the diffs to the
+screen.
+
+You can use "make good" to update the .good files from the current
+.out files; don't do this without thinking.
+
+You can run "make clean" to explicitly delete the test output.
+
+make -j should work but is hardly necessary at the moment.
+
+As of this writing bsd-pkg-config doesn't honor PKG_CONFIG_PATH so it
+can't find the target .pc files yet.
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.better
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.better:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.better	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,33 @@
+*** pattern of version string ***
+0.28
+*** number of lines of help ***
+      36
+*** modversion of many libs ***
+1.6.0
+7.0.24
+4.0.3
+*** cflags and libs together ***
+Unknown option --ldflags
+Exit 1
+*** get prefix A ***
+/usr/Y11R7
+*** get prefix B ***
+/usr/pkg
+*** overriding prefix ***
+Unknown option --ldflags
+Exit 1
+*** list-all ***
+ykbproto  YKBProto - YKB extension headers
+yproto    Yproto - Yproto headers
+libtuff-4 libtuff - Tag Umbrage File Format (TUFF) library.
+y11       Y11 - Y Library
+*** cflags with PKG_CONFIG_SYSROOT_DIR ***
+-D_REENTRANT -I/oops/chroot/usr/Y11R7/include 
+*** libs with PKG_CONFIG_SYSROOT_DIR ***
+-L/oops/chroot/usr/Y11R7/lib -Wl,-rpath,/usr/Y11R7/lib -lY11 
+*** getting own version with modversion ***
+0.28
+*** getting search path ***
+/usr/pkg/lib/pkgconfig:/usr/pkg/share/pkgconfig:/usr/X11R7/lib/pkgconfig:/usr/lib/pkgconfig
+*** explicit .pc file ***
+-D_REENTRANT -I/usr/Y11R7/include 
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.good
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.good:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.good	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,34 @@
+*** pattern of version string ***
+(Date-based version)
+*** number of lines of help ***
+       1
+*** modversion of many libs ***
+Package "y11" not installed
+Exit 1
+*** cflags and libs together ***
+Package "--ldflags" not installed
+Exit 1
+*** get prefix A ***
+Package "y11" not installed
+Exit 1
+*** get prefix B ***
+Package "libtuff-4" not installed
+Exit 1
+*** overriding prefix ***
+
+*** list-all ***
+
+*** cflags with PKG_CONFIG_SYSROOT_DIR ***
+Package "y11" not installed
+Exit 1
+*** libs with PKG_CONFIG_SYSROOT_DIR ***
+Package "y11" not installed
+Exit 1
+*** getting own version with modversion ***
+Package "pkg-config" not installed
+Exit 1
+*** getting search path ***
+
+*** explicit .pc file ***
+Package "./pcfiles/y11.pc" not installed
+Exit 1
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.sh
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.sh:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/basetest.sh	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,87 @@
+#!/bin/sh
+# basetest.sh - some base tests
+# usage: ./basetest.sh pkgconfig-program
+
+if [ $# != 1 ]; then
+    echo "$0: Usage: $0 pkgconfig-program" 1>&2
+    exit
+fi
+
+SCRIPT="$1"
+
+PKG_CONFIG_LIBDIR=/nonexistent
+export PKG_CONFIG_LIBDIR
+PKG_CONFIG_PATH=`pwd`/pcfiles
+export PKG_CONFIG_PATH
+
+############################################################
+
+# usage: runtest desc args
+runtest() {
+    local desc
+
+    desc="$1"; shift
+    echo "*** $desc ***"
+    $SCRIPT "$@"
+    X=$?
+    if [ $X != 0 ]; then
+	echo "Exit $X"
+    fi
+}
+
+# 1. check --version
+runtest "pattern of version string" --version | sed '
+    /^201[0-9][0-9][0-9][0-9][0-9]$/s/.*/(Date-based version)/
+'
+
+# 2. check that --help prints something
+runtest "number of lines of help" --help | awk '
+    BEGIN { first = 1; cmd = "wc -l"; }
+    first { print; first = 0; next; }
+    { print | cmd; }
+    END { close(cmd); }
+'
+
+# 3. --modversion can be used on many packages at once
+runtest "modversion of many libs" --modversion y11 yproto libtuff-4
+
+# 4. you can do both --cflags and --libs together
+runtest "cflags and libs together" --cflags --ldflags y11
+
+# 5. retrieve the prefix
+runtest "get prefix A" --variable=prefix y11
+runtest "get prefix B" --variable=prefix libtuff-4
+
+# 6. --define-variable=prefix=/opt should change the output
+runtest "overriding prefix" --define-variable=prefix=/opt \
+	    --cflags --ldflags y11
+
+# 7. try --list-all
+runtest "list-all" --list-all
+
+# 8. try PKG_CONFIG_SYSROOT_DIR
+PKG_CONFIG_SYSROOT_DIR=/oops/chroot
+export PKG_CONFIG_SYSROOT_DIR
+runtest "cflags with PKG_CONFIG_SYSROOT_DIR" --cflags y11
+runtest "libs with PKG_CONFIG_SYSROOT_DIR" --libs y11
+unset PKG_CONFIG_SYSROOT_DIR
+
+# 9. you are supposed to be able to get the pkg-config version
+# with --modversion pkg-config.
+runtest "getting own version with modversion" --modversion pkg-config
+
+# and similarly, pc_path is supposed to give the search path.
+runtest "getting search path" --variable pc_path pkg-config
+
+# 10. you are supposed to be able to specify .pc files explicitly
+runtest "explicit .pc file" --cflags ./pcfiles/y11.pc
+
+
+# should also try:
+# setting PKG_CONFIG_PATH, PKG_CONFIG_LIBDIR
+# setting PKG_CONFIG_DEBUG_SPEW (maybe)
+# setting PKG_CONFIG_TOP_BUILD_DIR
+# setting PKG_CONFIG_DISABLE_UNINSTALLED
+# setting PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
+# setting PKG_CONFIG_ALLOW_SYSTEM_LIBS
+
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.better
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.better:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.better	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,175 @@
+*** uninstalled ***
+Exit 1
+*** exists ***
+*** modversion ***
+4.0.3
+*** atleast-version=4.0.1 ***
+*** exact-version=4.0.1 ***
+Exit 1
+*** max-version=4.0.1 ***
+Exit 1
+*** cflags ***
+-I/usr/pkg/include 
+*** cflags-only-I ***
+-I/usr/pkg/include 
+*** libs ***
+-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltuff 
+*** libs-only-L ***
+-L/usr/pkg/lib 
+*** libs-only-l ***
+-ltuff 
+*** libs-only-other ***
+-Wl,-R/usr/pkg/lib 
+*** print-variables ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides ***
+libtuff-4 = 4.0.3
+*** print-requires ***
+*** print-requires-private ***
+*** atleast-version using exists ***
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+Exit 1
+*** no explicit op ***
+*** atleast-version with no op ***
+*** exact-version with no op ***
+Exit 1
+*** max-version with no op ***
+Exit 1
+*** uninstalled with --print-errors ***
+Exit 1
+*** exists with --print-errors ***
+*** modversion with --print-errors ***
+4.0.3
+*** atleast-version=4.0.1 with --print-errors ***
+*** exact-version=4.0.1 with --print-errors ***
+Requested 'libtuff-4 = 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** max-version=4.0.1 with --print-errors ***
+Requested 'libtuff-4 <= 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** cflags with --print-errors ***
+-I/usr/pkg/include 
+*** cflags-only-I with --print-errors ***
+-I/usr/pkg/include 
+*** libs with --print-errors ***
+-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltuff 
+*** libs-only-L with --print-errors ***
+-L/usr/pkg/lib 
+*** libs-only-l with --print-errors ***
+-ltuff 
+*** libs-only-other with --print-errors ***
+-Wl,-R/usr/pkg/lib 
+*** print-variables with --print-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --print-errors ***
+libtuff-4 = 4.0.3
+*** print-requires with --print-errors ***
+*** print-requires-private with --print-errors ***
+*** atleast-version using exists with --print-errors ***
+*** exact-version using exists with --print-errors ***
+Requested 'libtuff-4 = 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** max-version using exists with --print-errors ***
+Requested 'libtuff-4 <= 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** no explicit op with --print-errors ***
+*** atleast-version with no op with --print-errors ***
+*** exact-version with no op with --print-errors ***
+Requested 'libtuff-4 = 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** max-version with no op with --print-errors ***
+Requested 'libtuff-4 <= 4.0.1' but version of libtuff is 4.0.3
+Exit 1
+*** uninstalled with --silence-errors ***
+Exit 1
+*** exists with --silence-errors ***
+*** modversion with --silence-errors ***
+4.0.3
+*** atleast-version=4.0.1 with --silence-errors ***
+*** exact-version=4.0.1 with --silence-errors ***
+Exit 1
+*** max-version=4.0.1 with --silence-errors ***
+Exit 1
+*** cflags with --silence-errors ***
+-I/usr/pkg/include 
+*** cflags-only-I with --silence-errors ***
+-I/usr/pkg/include 
+*** libs with --silence-errors ***
+-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltuff 
+*** libs-only-L with --silence-errors ***
+-L/usr/pkg/lib 
+*** libs-only-l with --silence-errors ***
+-ltuff 
+*** libs-only-other with --silence-errors ***
+-Wl,-R/usr/pkg/lib 
+*** print-variables with --silence-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --silence-errors ***
+libtuff-4 = 4.0.3
+*** print-requires with --silence-errors ***
+*** print-requires-private with --silence-errors ***
+*** atleast-version using exists with --silence-errors ***
+*** exact-version using exists with --silence-errors ***
+Exit 1
+*** max-version using exists with --silence-errors ***
+Exit 1
+*** no explicit op with --silence-errors ***
+*** atleast-version with no op with --silence-errors ***
+*** exact-version with no op with --silence-errors ***
+Exit 1
+*** max-version with no op with --silence-errors ***
+Exit 1
+*** uninstalled with --static ***
+Exit 1
+*** exists with --static ***
+*** modversion with --static ***
+4.0.3
+*** atleast-version=4.0.1 with --static ***
+*** exact-version=4.0.1 with --static ***
+Exit 1
+*** max-version=4.0.1 with --static ***
+Exit 1
+*** cflags with --static ***
+-I/usr/pkg/include 
+*** cflags-only-I with --static ***
+-I/usr/pkg/include 
+*** libs with --static ***
+-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltuff -llzma -ljbig -ljpeg -lz 
+*** libs-only-L with --static ***
+-L/usr/pkg/lib 
+*** libs-only-l with --static ***
+-ltuff -llzma -ljbig -ljpeg -lz 
+*** libs-only-other with --static ***
+-Wl,-R/usr/pkg/lib 
+*** print-variables with --static ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --static ***
+libtuff-4 = 4.0.3
+*** print-requires with --static ***
+*** print-requires-private with --static ***
+*** atleast-version using exists with --static ***
+*** exact-version using exists with --static ***
+Exit 1
+*** max-version using exists with --static ***
+Exit 1
+*** no explicit op with --static ***
+*** atleast-version with no op with --static ***
+*** exact-version with no op with --static ***
+Exit 1
+*** max-version with no op with --static ***
+Exit 1
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.good
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.good:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-libtuff-4.good	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,214 @@
+*** uninstalled ***
+
+*** exists ***
+Exit 1
+*** modversion ***
+Package "libtuff-4" not installed
+Exit 1
+*** atleast-version=4.0.1 ***
+
+*** exact-version=4.0.1 ***
+
+*** max-version=4.0.1 ***
+
+*** cflags ***
+Package "libtuff-4" not installed
+Exit 1
+*** cflags-only-I ***
+
+*** libs ***
+Package "libtuff-4" not installed
+Exit 1
+*** libs-only-L ***
+Package "libtuff-4" not installed
+
+*** libs-only-l ***
+Package "libtuff-4" not installed
+
+*** libs-only-other ***
+Package "libtuff-4" not installed
+
+*** print-variables ***
+
+*** print-provides ***
+
+*** print-requires ***
+
+*** print-requires-private ***
+
+*** atleast-version using exists ***
+Exit 1
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+Exit 1
+*** no explicit op ***
+
+*** atleast-version with no op ***
+
+*** exact-version with no op ***
+
+*** max-version with no op ***
+
+*** uninstalled with --print-errors ***
+
+*** exists with --print-errors ***
+
+*** modversion with --print-errors ***
+
+*** atleast-version=4.0.1 with --print-errors ***
+
+*** exact-version=4.0.1 with --print-errors ***
+
+*** max-version=4.0.1 with --print-errors ***
+
+*** cflags with --print-errors ***
+
+*** cflags-only-I with --print-errors ***
+
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+
+*** print-provides with --print-errors ***
+
+*** print-requires with --print-errors ***
+
+*** print-requires-private with --print-errors ***
+
+*** atleast-version using exists with --print-errors ***
+
+*** exact-version using exists with --print-errors ***
+
+*** max-version using exists with --print-errors ***
+
+*** no explicit op with --print-errors ***
+
+*** atleast-version with no op with --print-errors ***
+
+*** exact-version with no op with --print-errors ***
+
+*** max-version with no op with --print-errors ***
+
+*** uninstalled with --silence-errors ***
+
+*** exists with --silence-errors ***
+
+*** modversion with --silence-errors ***
+
+*** atleast-version=4.0.1 with --silence-errors ***
+
+*** exact-version=4.0.1 with --silence-errors ***
+
+*** max-version=4.0.1 with --silence-errors ***
+
+*** cflags with --silence-errors ***
+
+*** cflags-only-I with --silence-errors ***
+
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+
+*** print-provides with --silence-errors ***
+
+*** print-requires with --silence-errors ***
+
+*** print-requires-private with --silence-errors ***
+
+*** atleast-version using exists with --silence-errors ***
+
+*** exact-version using exists with --silence-errors ***
+
+*** max-version using exists with --silence-errors ***
+
+*** no explicit op with --silence-errors ***
+
+*** atleast-version with no op with --silence-errors ***
+
+*** exact-version with no op with --silence-errors ***
+
+*** max-version with no op with --silence-errors ***
+
+*** uninstalled with --static ***
+Package "--uninstalled" not installed
+Exit 1
+*** exists with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** modversion with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** atleast-version=4.0.1 with --static ***
+Package "--atleast-version=4.0.1" not installed
+Exit 1
+*** exact-version=4.0.1 with --static ***
+Package "--exact-version=4.0.1" not installed
+Exit 1
+*** max-version=4.0.1 with --static ***
+Package "--max-version=4.0.1" not installed
+Exit 1
+*** cflags with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** cflags-only-I with --static ***
+Package "--cflags-only-I" not installed
+Exit 1
+*** libs with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** libs-only-L with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** libs-only-l with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** libs-only-other with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** print-variables with --static ***
+Package "--print-variables" not installed
+Exit 1
+*** print-provides with --static ***
+Package "--print-provides" not installed
+Exit 1
+*** print-requires with --static ***
+Package "--print-requires" not installed
+Exit 1
+*** print-requires-private with --static ***
+Package "--print-requires-private" not installed
+Exit 1
+*** atleast-version using exists with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** exact-version using exists with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** max-version using exists with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** no explicit op with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** atleast-version with no op with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** exact-version with no op with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** max-version with no op with --static ***
+Package "libtuff-4" not installed
+Exit 1
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.better
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.better:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.better	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,187 @@
+*** uninstalled ***
+Exit 1
+*** exists ***
+*** modversion ***
+1.6.0
+*** atleast-version=1.6.1 ***
+Exit 1
+*** exact-version=1.6.1 ***
+Exit 1
+*** max-version=1.6.1 ***
+*** cflags ***
+-D_REENTRANT -I/usr/Y11R7/include 
+*** cflags-only-I ***
+-I/usr/Y11R7/include 
+*** libs ***
+-L/usr/Y11R7/lib -Wl,-rpath,/usr/Y11R7/lib -lY11 
+*** libs-only-L ***
+-L/usr/Y11R7/lib 
+*** libs-only-l ***
+-lY11 
+*** libs-only-other ***
+-Wl,-rpath,/usr/Y11R7/lib 
+*** print-variables ***
+exec_prefix
+prefix
+libdir
+includedir
+xthreadlib
+*** print-provides ***
+y11 = 1.6.0
+*** print-requires ***
+yproto
+ykbproto
+*** print-requires-private ***
+*** atleast-version using exists ***
+Exit 1
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+*** no explicit op ***
+*** atleast-version with no op ***
+Exit 1
+*** exact-version with no op ***
+Exit 1
+*** max-version with no op ***
+*** uninstalled with --print-errors ***
+Exit 1
+*** exists with --print-errors ***
+*** modversion with --print-errors ***
+1.6.0
+*** atleast-version=1.6.1 with --print-errors ***
+Requested 'y11 >= 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** exact-version=1.6.1 with --print-errors ***
+Requested 'y11 = 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** max-version=1.6.1 with --print-errors ***
+*** cflags with --print-errors ***
+-D_REENTRANT -I/usr/Y11R7/include 
+*** cflags-only-I with --print-errors ***
+-I/usr/Y11R7/include 
+*** libs with --print-errors ***
+-L/usr/Y11R7/lib -Wl,-rpath,/usr/Y11R7/lib -lY11 
+*** libs-only-L with --print-errors ***
+-L/usr/Y11R7/lib 
+*** libs-only-l with --print-errors ***
+-lY11 
+*** libs-only-other with --print-errors ***
+-Wl,-rpath,/usr/Y11R7/lib 
+*** print-variables with --print-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+xthreadlib
+*** print-provides with --print-errors ***
+y11 = 1.6.0
+*** print-requires with --print-errors ***
+yproto
+ykbproto
+*** print-requires-private with --print-errors ***
+*** atleast-version using exists with --print-errors ***
+Requested 'y11 >= 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** exact-version using exists with --print-errors ***
+Requested 'y11 = 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** max-version using exists with --print-errors ***
+*** no explicit op with --print-errors ***
+*** atleast-version with no op with --print-errors ***
+Requested 'y11 >= 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** exact-version with no op with --print-errors ***
+Requested 'y11 = 1.6.1' but version of Y11 is 1.6.0
+Exit 1
+*** max-version with no op with --print-errors ***
+*** uninstalled with --silence-errors ***
+Exit 1
+*** exists with --silence-errors ***
+*** modversion with --silence-errors ***
+1.6.0
+*** atleast-version=1.6.1 with --silence-errors ***
+Exit 1
+*** exact-version=1.6.1 with --silence-errors ***
+Exit 1
+*** max-version=1.6.1 with --silence-errors ***
+*** cflags with --silence-errors ***
+-D_REENTRANT -I/usr/Y11R7/include 
+*** cflags-only-I with --silence-errors ***
+-I/usr/Y11R7/include 
+*** libs with --silence-errors ***
+-L/usr/Y11R7/lib -Wl,-rpath,/usr/Y11R7/lib -lY11 
+*** libs-only-L with --silence-errors ***
+-L/usr/Y11R7/lib 
+*** libs-only-l with --silence-errors ***
+-lY11 
+*** libs-only-other with --silence-errors ***
+-Wl,-rpath,/usr/Y11R7/lib 
+*** print-variables with --silence-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+xthreadlib
+*** print-provides with --silence-errors ***
+y11 = 1.6.0
+*** print-requires with --silence-errors ***
+yproto
+ykbproto
+*** print-requires-private with --silence-errors ***
+*** atleast-version using exists with --silence-errors ***
+Exit 1
+*** exact-version using exists with --silence-errors ***
+Exit 1
+*** max-version using exists with --silence-errors ***
+*** no explicit op with --silence-errors ***
+*** atleast-version with no op with --silence-errors ***
+Exit 1
+*** exact-version with no op with --silence-errors ***
+Exit 1
+*** max-version with no op with --silence-errors ***
+*** uninstalled with --static ***
+Exit 1
+*** exists with --static ***
+*** modversion with --static ***
+1.6.0
+*** atleast-version=1.6.1 with --static ***
+Exit 1
+*** exact-version=1.6.1 with --static ***
+Exit 1
+*** max-version=1.6.1 with --static ***
+*** cflags with --static ***
+-D_REENTRANT -I/usr/Y11R7/include 
+*** cflags-only-I with --static ***
+-I/usr/Y11R7/include 
+*** libs with --static ***
+-L/usr/Y11R7/lib -Wl,-rpath,/usr/Y11R7/lib -lY11 -lpthread 
+*** libs-only-L with --static ***
+-L/usr/Y11R7/lib 
+*** libs-only-l with --static ***
+-lY11 -lpthread 
+*** libs-only-other with --static ***
+-Wl,-rpath,/usr/Y11R7/lib 
+*** print-variables with --static ***
+exec_prefix
+prefix
+libdir
+includedir
+xthreadlib
+*** print-provides with --static ***
+y11 = 1.6.0
+*** print-requires with --static ***
+yproto
+ykbproto
+*** print-requires-private with --static ***
+*** atleast-version using exists with --static ***
+Exit 1
+*** exact-version using exists with --static ***
+Exit 1
+*** max-version using exists with --static ***
+*** no explicit op with --static ***
+*** atleast-version with no op with --static ***
+Exit 1
+*** exact-version with no op with --static ***
+Exit 1
+*** max-version with no op with --static ***
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.good
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.good:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-y11.good	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,214 @@
+*** uninstalled ***
+
+*** exists ***
+Exit 1
+*** modversion ***
+Package "y11" not installed
+Exit 1
+*** atleast-version=1.6.1 ***
+
+*** exact-version=1.6.1 ***
+
+*** max-version=1.6.1 ***
+
+*** cflags ***
+Package "y11" not installed
+Exit 1
+*** cflags-only-I ***
+
+*** libs ***
+Package "y11" not installed
+Exit 1
+*** libs-only-L ***
+Package "y11" not installed
+
+*** libs-only-l ***
+Package "y11" not installed
+
+*** libs-only-other ***
+Package "y11" not installed
+
+*** print-variables ***
+
+*** print-provides ***
+
+*** print-requires ***
+
+*** print-requires-private ***
+
+*** atleast-version using exists ***
+Exit 1
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+Exit 1
+*** no explicit op ***
+
+*** atleast-version with no op ***
+
+*** exact-version with no op ***
+
+*** max-version with no op ***
+
+*** uninstalled with --print-errors ***
+
+*** exists with --print-errors ***
+
+*** modversion with --print-errors ***
+
+*** atleast-version=1.6.1 with --print-errors ***
+
+*** exact-version=1.6.1 with --print-errors ***
+
+*** max-version=1.6.1 with --print-errors ***
+
+*** cflags with --print-errors ***
+
+*** cflags-only-I with --print-errors ***
+
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+
+*** print-provides with --print-errors ***
+
+*** print-requires with --print-errors ***
+
+*** print-requires-private with --print-errors ***
+
+*** atleast-version using exists with --print-errors ***
+
+*** exact-version using exists with --print-errors ***
+
+*** max-version using exists with --print-errors ***
+
+*** no explicit op with --print-errors ***
+
+*** atleast-version with no op with --print-errors ***
+
+*** exact-version with no op with --print-errors ***
+
+*** max-version with no op with --print-errors ***
+
+*** uninstalled with --silence-errors ***
+
+*** exists with --silence-errors ***
+
+*** modversion with --silence-errors ***
+
+*** atleast-version=1.6.1 with --silence-errors ***
+
+*** exact-version=1.6.1 with --silence-errors ***
+
+*** max-version=1.6.1 with --silence-errors ***
+
+*** cflags with --silence-errors ***
+
+*** cflags-only-I with --silence-errors ***
+
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+
+*** print-provides with --silence-errors ***
+
+*** print-requires with --silence-errors ***
+
+*** print-requires-private with --silence-errors ***
+
+*** atleast-version using exists with --silence-errors ***
+
+*** exact-version using exists with --silence-errors ***
+
+*** max-version using exists with --silence-errors ***
+
+*** no explicit op with --silence-errors ***
+
+*** atleast-version with no op with --silence-errors ***
+
+*** exact-version with no op with --silence-errors ***
+
+*** max-version with no op with --silence-errors ***
+
+*** uninstalled with --static ***
+Package "--uninstalled" not installed
+Exit 1
+*** exists with --static ***
+Package "y11" not installed
+Exit 1
+*** modversion with --static ***
+Package "y11" not installed
+Exit 1
+*** atleast-version=1.6.1 with --static ***
+Package "--atleast-version=1.6.1" not installed
+Exit 1
+*** exact-version=1.6.1 with --static ***
+Package "--exact-version=1.6.1" not installed
+Exit 1
+*** max-version=1.6.1 with --static ***
+Package "--max-version=1.6.1" not installed
+Exit 1
+*** cflags with --static ***
+Package "y11" not installed
+Exit 1
+*** cflags-only-I with --static ***
+Package "--cflags-only-I" not installed
+Exit 1
+*** libs with --static ***
+Package "y11" not installed
+Exit 1
+*** libs-only-L with --static ***
+Package "y11" not installed
+Exit 1
+*** libs-only-l with --static ***
+Package "y11" not installed
+Exit 1
+*** libs-only-other with --static ***
+Package "y11" not installed
+Exit 1
+*** print-variables with --static ***
+Package "--print-variables" not installed
+Exit 1
+*** print-provides with --static ***
+Package "--print-provides" not installed
+Exit 1
+*** print-requires with --static ***
+Package "--print-requires" not installed
+Exit 1
+*** print-requires-private with --static ***
+Package "--print-requires-private" not installed
+Exit 1
+*** atleast-version using exists with --static ***
+Package "y11" not installed
+Exit 1
+*** exact-version using exists with --static ***
+Package "y11" not installed
+Exit 1
+*** max-version using exists with --static ***
+Package "y11" not installed
+Exit 1
+*** no explicit op with --static ***
+Package "y11" not installed
+Exit 1
+*** atleast-version with no op with --static ***
+Package "y11" not installed
+Exit 1
+*** exact-version with no op with --static ***
+Package "y11" not installed
+Exit 1
+*** max-version with no op with --static ***
+Package "y11" not installed
+Exit 1
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.better
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.better:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.better	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,145 @@
+*** uninstalled ***
+Exit 1
+*** exists ***
+*** modversion ***
+1.0.6
+*** atleast-version=1.0.6 ***
+*** exact-version=1.0.6 ***
+*** max-version=1.0.6 ***
+*** cflags ***
+-I/usr/Y11R7/include 
+*** cflags-only-I ***
+-I/usr/Y11R7/include 
+*** libs ***
+
+*** libs-only-L ***
+
+*** libs-only-l ***
+
+*** libs-only-other ***
+
+*** print-variables ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides ***
+ykbproto = 1.0.6
+*** print-requires ***
+*** print-requires-private ***
+*** atleast-version using exists ***
+*** exact-version using exists ***
+*** max-version using exists ***
+*** no explicit op ***
+*** atleast-version with no op ***
+*** exact-version with no op ***
+*** max-version with no op ***
+*** uninstalled with --print-errors ***
+Exit 1
+*** exists with --print-errors ***
+*** modversion with --print-errors ***
+1.0.6
+*** atleast-version=1.0.6 with --print-errors ***
+*** exact-version=1.0.6 with --print-errors ***
+*** max-version=1.0.6 with --print-errors ***
+*** cflags with --print-errors ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --print-errors ***
+-I/usr/Y11R7/include 
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --print-errors ***
+ykbproto = 1.0.6
+*** print-requires with --print-errors ***
+*** print-requires-private with --print-errors ***
+*** atleast-version using exists with --print-errors ***
+*** exact-version using exists with --print-errors ***
+*** max-version using exists with --print-errors ***
+*** no explicit op with --print-errors ***
+*** atleast-version with no op with --print-errors ***
+*** exact-version with no op with --print-errors ***
+*** max-version with no op with --print-errors ***
+*** uninstalled with --silence-errors ***
+Exit 1
+*** exists with --silence-errors ***
+*** modversion with --silence-errors ***
+1.0.6
+*** atleast-version=1.0.6 with --silence-errors ***
+*** exact-version=1.0.6 with --silence-errors ***
+*** max-version=1.0.6 with --silence-errors ***
+*** cflags with --silence-errors ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --silence-errors ***
+-I/usr/Y11R7/include 
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --silence-errors ***
+ykbproto = 1.0.6
+*** print-requires with --silence-errors ***
+*** print-requires-private with --silence-errors ***
+*** atleast-version using exists with --silence-errors ***
+*** exact-version using exists with --silence-errors ***
+*** max-version using exists with --silence-errors ***
+*** no explicit op with --silence-errors ***
+*** atleast-version with no op with --silence-errors ***
+*** exact-version with no op with --silence-errors ***
+*** max-version with no op with --silence-errors ***
+*** uninstalled with --static ***
+Exit 1
+*** exists with --static ***
+*** modversion with --static ***
+1.0.6
+*** atleast-version=1.0.6 with --static ***
+*** exact-version=1.0.6 with --static ***
+*** max-version=1.0.6 with --static ***
+*** cflags with --static ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --static ***
+-I/usr/Y11R7/include 
+*** libs with --static ***
+
+*** libs-only-L with --static ***
+
+*** libs-only-l with --static ***
+
+*** libs-only-other with --static ***
+
+*** print-variables with --static ***
+exec_prefix
+prefix
+libdir
+includedir
+*** print-provides with --static ***
+ykbproto = 1.0.6
+*** print-requires with --static ***
+*** print-requires-private with --static ***
+*** atleast-version using exists with --static ***
+*** exact-version using exists with --static ***
+*** max-version using exists with --static ***
+*** no explicit op with --static ***
+*** atleast-version with no op with --static ***
+*** exact-version with no op with --static ***
+*** max-version with no op with --static ***
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.good
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.good:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-ykbproto.good	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,214 @@
+*** uninstalled ***
+
+*** exists ***
+Exit 1
+*** modversion ***
+Package "ykbproto" not installed
+Exit 1
+*** atleast-version=1.0.6 ***
+
+*** exact-version=1.0.6 ***
+
+*** max-version=1.0.6 ***
+
+*** cflags ***
+Package "ykbproto" not installed
+Exit 1
+*** cflags-only-I ***
+
+*** libs ***
+Package "ykbproto" not installed
+Exit 1
+*** libs-only-L ***
+Package "ykbproto" not installed
+
+*** libs-only-l ***
+Package "ykbproto" not installed
+
+*** libs-only-other ***
+Package "ykbproto" not installed
+
+*** print-variables ***
+
+*** print-provides ***
+
+*** print-requires ***
+
+*** print-requires-private ***
+
+*** atleast-version using exists ***
+Exit 1
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+Exit 1
+*** no explicit op ***
+
+*** atleast-version with no op ***
+
+*** exact-version with no op ***
+
+*** max-version with no op ***
+
+*** uninstalled with --print-errors ***
+
+*** exists with --print-errors ***
+
+*** modversion with --print-errors ***
+
+*** atleast-version=1.0.6 with --print-errors ***
+
+*** exact-version=1.0.6 with --print-errors ***
+
+*** max-version=1.0.6 with --print-errors ***
+
+*** cflags with --print-errors ***
+
+*** cflags-only-I with --print-errors ***
+
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+
+*** print-provides with --print-errors ***
+
+*** print-requires with --print-errors ***
+
+*** print-requires-private with --print-errors ***
+
+*** atleast-version using exists with --print-errors ***
+
+*** exact-version using exists with --print-errors ***
+
+*** max-version using exists with --print-errors ***
+
+*** no explicit op with --print-errors ***
+
+*** atleast-version with no op with --print-errors ***
+
+*** exact-version with no op with --print-errors ***
+
+*** max-version with no op with --print-errors ***
+
+*** uninstalled with --silence-errors ***
+
+*** exists with --silence-errors ***
+
+*** modversion with --silence-errors ***
+
+*** atleast-version=1.0.6 with --silence-errors ***
+
+*** exact-version=1.0.6 with --silence-errors ***
+
+*** max-version=1.0.6 with --silence-errors ***
+
+*** cflags with --silence-errors ***
+
+*** cflags-only-I with --silence-errors ***
+
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+
+*** print-provides with --silence-errors ***
+
+*** print-requires with --silence-errors ***
+
+*** print-requires-private with --silence-errors ***
+
+*** atleast-version using exists with --silence-errors ***
+
+*** exact-version using exists with --silence-errors ***
+
+*** max-version using exists with --silence-errors ***
+
+*** no explicit op with --silence-errors ***
+
+*** atleast-version with no op with --silence-errors ***
+
+*** exact-version with no op with --silence-errors ***
+
+*** max-version with no op with --silence-errors ***
+
+*** uninstalled with --static ***
+Package "--uninstalled" not installed
+Exit 1
+*** exists with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** modversion with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** atleast-version=1.0.6 with --static ***
+Package "--atleast-version=1.0.6" not installed
+Exit 1
+*** exact-version=1.0.6 with --static ***
+Package "--exact-version=1.0.6" not installed
+Exit 1
+*** max-version=1.0.6 with --static ***
+Package "--max-version=1.0.6" not installed
+Exit 1
+*** cflags with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** cflags-only-I with --static ***
+Package "--cflags-only-I" not installed
+Exit 1
+*** libs with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** libs-only-L with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** libs-only-l with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** libs-only-other with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** print-variables with --static ***
+Package "--print-variables" not installed
+Exit 1
+*** print-provides with --static ***
+Package "--print-provides" not installed
+Exit 1
+*** print-requires with --static ***
+Package "--print-requires" not installed
+Exit 1
+*** print-requires-private with --static ***
+Package "--print-requires-private" not installed
+Exit 1
+*** atleast-version using exists with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** exact-version using exists with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** max-version using exists with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** no explicit op with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** atleast-version with no op with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** exact-version with no op with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** max-version with no op with --static ***
+Package "ykbproto" not installed
+Exit 1
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.better
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.better:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.better	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,149 @@
+*** uninstalled ***
+Exit 1
+*** exists ***
+*** modversion ***
+7.0.24
+*** atleast-version=7.0.24 ***
+*** exact-version=7.0.24 ***
+*** max-version=7.0.24 ***
+*** cflags ***
+-I/usr/Y11R7/include 
+*** cflags-only-I ***
+-I/usr/Y11R7/include 
+*** libs ***
+
+*** libs-only-L ***
+
+*** libs-only-l ***
+
+*** libs-only-other ***
+
+*** print-variables ***
+exec_prefix
+prefix
+libdir
+includedir
+includex11dir
+*** print-provides ***
+yproto = 7.0.24
+*** print-requires ***
+*** print-requires-private ***
+*** atleast-version using exists ***
+*** exact-version using exists ***
+*** max-version using exists ***
+*** no explicit op ***
+*** atleast-version with no op ***
+*** exact-version with no op ***
+*** max-version with no op ***
+*** uninstalled with --print-errors ***
+Exit 1
+*** exists with --print-errors ***
+*** modversion with --print-errors ***
+7.0.24
+*** atleast-version=7.0.24 with --print-errors ***
+*** exact-version=7.0.24 with --print-errors ***
+*** max-version=7.0.24 with --print-errors ***
+*** cflags with --print-errors ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --print-errors ***
+-I/usr/Y11R7/include 
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+includex11dir
+*** print-provides with --print-errors ***
+yproto = 7.0.24
+*** print-requires with --print-errors ***
+*** print-requires-private with --print-errors ***
+*** atleast-version using exists with --print-errors ***
+*** exact-version using exists with --print-errors ***
+*** max-version using exists with --print-errors ***
+*** no explicit op with --print-errors ***
+*** atleast-version with no op with --print-errors ***
+*** exact-version with no op with --print-errors ***
+*** max-version with no op with --print-errors ***
+*** uninstalled with --silence-errors ***
+Exit 1
+*** exists with --silence-errors ***
+*** modversion with --silence-errors ***
+7.0.24
+*** atleast-version=7.0.24 with --silence-errors ***
+*** exact-version=7.0.24 with --silence-errors ***
+*** max-version=7.0.24 with --silence-errors ***
+*** cflags with --silence-errors ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --silence-errors ***
+-I/usr/Y11R7/include 
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+exec_prefix
+prefix
+libdir
+includedir
+includex11dir
+*** print-provides with --silence-errors ***
+yproto = 7.0.24
+*** print-requires with --silence-errors ***
+*** print-requires-private with --silence-errors ***
+*** atleast-version using exists with --silence-errors ***
+*** exact-version using exists with --silence-errors ***
+*** max-version using exists with --silence-errors ***
+*** no explicit op with --silence-errors ***
+*** atleast-version with no op with --silence-errors ***
+*** exact-version with no op with --silence-errors ***
+*** max-version with no op with --silence-errors ***
+*** uninstalled with --static ***
+Exit 1
+*** exists with --static ***
+*** modversion with --static ***
+7.0.24
+*** atleast-version=7.0.24 with --static ***
+*** exact-version=7.0.24 with --static ***
+*** max-version=7.0.24 with --static ***
+*** cflags with --static ***
+-I/usr/Y11R7/include 
+*** cflags-only-I with --static ***
+-I/usr/Y11R7/include 
+*** libs with --static ***
+
+*** libs-only-L with --static ***
+
+*** libs-only-l with --static ***
+
+*** libs-only-other with --static ***
+
+*** print-variables with --static ***
+exec_prefix
+prefix
+libdir
+includedir
+includex11dir
+*** print-provides with --static ***
+yproto = 7.0.24
+*** print-requires with --static ***
+*** print-requires-private with --static ***
+*** atleast-version using exists with --static ***
+*** exact-version using exists with --static ***
+*** max-version using exists with --static ***
+*** no explicit op with --static ***
+*** atleast-version with no op with --static ***
+*** exact-version with no op with --static ***
+*** max-version with no op with --static ***
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.good
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.good:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query-yproto.good	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,214 @@
+*** uninstalled ***
+
+*** exists ***
+Exit 1
+*** modversion ***
+Package "yproto" not installed
+Exit 1
+*** atleast-version=7.0.24 ***
+
+*** exact-version=7.0.24 ***
+
+*** max-version=7.0.24 ***
+
+*** cflags ***
+Package "yproto" not installed
+Exit 1
+*** cflags-only-I ***
+
+*** libs ***
+Package "yproto" not installed
+Exit 1
+*** libs-only-L ***
+Package "yproto" not installed
+
+*** libs-only-l ***
+Package "yproto" not installed
+
+*** libs-only-other ***
+Package "yproto" not installed
+
+*** print-variables ***
+
+*** print-provides ***
+
+*** print-requires ***
+
+*** print-requires-private ***
+
+*** atleast-version using exists ***
+Exit 1
+*** exact-version using exists ***
+Exit 1
+*** max-version using exists ***
+Exit 1
+*** no explicit op ***
+
+*** atleast-version with no op ***
+
+*** exact-version with no op ***
+
+*** max-version with no op ***
+
+*** uninstalled with --print-errors ***
+
+*** exists with --print-errors ***
+
+*** modversion with --print-errors ***
+
+*** atleast-version=7.0.24 with --print-errors ***
+
+*** exact-version=7.0.24 with --print-errors ***
+
+*** max-version=7.0.24 with --print-errors ***
+
+*** cflags with --print-errors ***
+
+*** cflags-only-I with --print-errors ***
+
+*** libs with --print-errors ***
+
+*** libs-only-L with --print-errors ***
+
+*** libs-only-l with --print-errors ***
+
+*** libs-only-other with --print-errors ***
+
+*** print-variables with --print-errors ***
+
+*** print-provides with --print-errors ***
+
+*** print-requires with --print-errors ***
+
+*** print-requires-private with --print-errors ***
+
+*** atleast-version using exists with --print-errors ***
+
+*** exact-version using exists with --print-errors ***
+
+*** max-version using exists with --print-errors ***
+
+*** no explicit op with --print-errors ***
+
+*** atleast-version with no op with --print-errors ***
+
+*** exact-version with no op with --print-errors ***
+
+*** max-version with no op with --print-errors ***
+
+*** uninstalled with --silence-errors ***
+
+*** exists with --silence-errors ***
+
+*** modversion with --silence-errors ***
+
+*** atleast-version=7.0.24 with --silence-errors ***
+
+*** exact-version=7.0.24 with --silence-errors ***
+
+*** max-version=7.0.24 with --silence-errors ***
+
+*** cflags with --silence-errors ***
+
+*** cflags-only-I with --silence-errors ***
+
+*** libs with --silence-errors ***
+
+*** libs-only-L with --silence-errors ***
+
+*** libs-only-l with --silence-errors ***
+
+*** libs-only-other with --silence-errors ***
+
+*** print-variables with --silence-errors ***
+
+*** print-provides with --silence-errors ***
+
+*** print-requires with --silence-errors ***
+
+*** print-requires-private with --silence-errors ***
+
+*** atleast-version using exists with --silence-errors ***
+
+*** exact-version using exists with --silence-errors ***
+
+*** max-version using exists with --silence-errors ***
+
+*** no explicit op with --silence-errors ***
+
+*** atleast-version with no op with --silence-errors ***
+
+*** exact-version with no op with --silence-errors ***
+
+*** max-version with no op with --silence-errors ***
+
+*** uninstalled with --static ***
+Package "--uninstalled" not installed
+Exit 1
+*** exists with --static ***
+Package "yproto" not installed
+Exit 1
+*** modversion with --static ***
+Package "yproto" not installed
+Exit 1
+*** atleast-version=7.0.24 with --static ***
+Package "--atleast-version=7.0.24" not installed
+Exit 1
+*** exact-version=7.0.24 with --static ***
+Package "--exact-version=7.0.24" not installed
+Exit 1
+*** max-version=7.0.24 with --static ***
+Package "--max-version=7.0.24" not installed
+Exit 1
+*** cflags with --static ***
+Package "yproto" not installed
+Exit 1
+*** cflags-only-I with --static ***
+Package "--cflags-only-I" not installed
+Exit 1
+*** libs with --static ***
+Package "yproto" not installed
+Exit 1
+*** libs-only-L with --static ***
+Package "yproto" not installed
+Exit 1
+*** libs-only-l with --static ***
+Package "yproto" not installed
+Exit 1
+*** libs-only-other with --static ***
+Package "yproto" not installed
+Exit 1
+*** print-variables with --static ***
+Package "--print-variables" not installed
+Exit 1
+*** print-provides with --static ***
+Package "--print-provides" not installed
+Exit 1
+*** print-requires with --static ***
+Package "--print-requires" not installed
+Exit 1
+*** print-requires-private with --static ***
+Package "--print-requires-private" not installed
+Exit 1
+*** atleast-version using exists with --static ***
+Package "yproto" not installed
+Exit 1
+*** exact-version using exists with --static ***
+Package "yproto" not installed
+Exit 1
+*** max-version using exists with --static ***
+Package "yproto" not installed
+Exit 1
+*** no explicit op with --static ***
+Package "yproto" not installed
+Exit 1
+*** atleast-version with no op with --static ***
+Package "yproto" not installed
+Exit 1
+*** exact-version with no op with --static ***
+Package "yproto" not installed
+Exit 1
+*** max-version with no op with --static ***
+Package "yproto" not installed
+Exit 1
+*** end ***
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query.sh
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query.sh:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/package-query.sh	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,72 @@
+#!/bin/sh
+# package-query.sh - do package query tests on a single package
+# usage: ./package-query.sh pkgconfig-program libname reference-version
+
+if [ $# != 3 ]; then
+    echo "$0: Usage: $0 pkgconfig-program libname reference-version" 1>&2
+    exit
+fi
+
+SCRIPT="$1"
+LIBNAME="$2"
+REFVERSION="$3"
+
+PKG_CONFIG_LIBDIR=/nonexistent
+export PKG_CONFIG_LIBDIR
+PKG_CONFIG_PATH=`pwd`/pcfiles
+export PKG_CONFIG_PATH
+
+############################################################
+
+# dotest desc option [moreargs]
+dotest() {
+    if [ "x$MOREOPTS" = x ]; then
+	echo "*** $1 ***"
+    else
+	echo "*** $1 with $MOREOPTS ***"
+    fi
+    $SCRIPT $MOREOPTS $2 $LIBNAME $3
+    X=$?
+    if [ $X != 0 ]; then
+	echo "Exit $X"
+    fi
+}
+
+# for now we do not test these modes:
+#   --errors-to-stdout
+#   --debug
+
+# or these actions, which are tested by basetest.sh:
+#   --version
+#   --help
+#   --list-all
+
+# or these actions, which need more specific per-package testing
+#   --variable=VAR
+#   --define-variable=VAR=VALUE
+
+for MOREOPTS in "" --print-errors --silence-errors --static; do
+    for op in \
+	uninstalled \
+	exists modversion \
+	atleast-version=$REFVERSION exact-version=$REFVERSION \
+	max-version=$REFVERSION \
+	cflags cflags-only-I \
+	libs libs-only-L libs-only-l libs-only-other \
+	print-variables \
+	print-provides print-requires print-requires-private \
+	; do
+	    dotest "$op" "--$op"
+    done
+    dotest "atleast-version using exists" "--exists" ">= $REFVERSION"
+    dotest "exact-version using exists" "--exists" "= $REFVERSION"
+    dotest "max-version using exists" "--exists" "<= $REFVERSION"
+
+    dotest "no explicit op" ""
+    dotest "atleast-version with no op" "" ">= $REFVERSION"
+    dotest "exact-version with no op" "" "= $REFVERSION"
+    dotest "max-version with no op" "" "<= $REFVERSION"
+done
+
+echo "*** end ***"
+exit 0

Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/libtuff-4.pc
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/libtuff-4.pc:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/libtuff-4.pc	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,11 @@
+prefix=/usr/pkg
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libtuff
+Description:  Tag Umbrage File Format (TUFF) library.
+Version: 4.0.3
+Libs: -Wl,-R${libdir} -L${libdir} -ltuff
+Libs.private: -llzma -ljbig -ljpeg -lz 
+Cflags: -I${includedir}
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/y11.pc
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/y11.pc:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/y11.pc	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,15 @@
+prefix=/usr/Y11R7
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+xthreadlib=-lpthread
+
+Name: Y11
+Description: Y Library
+Version: 1.6.0
+Requires: yproto ykbproto
+Requires.private: 
+Cflags: -I${includedir} -D_REENTRANT
+Libs: -Wl,-rpath,${libdir} -L${libdir} -lY11
+Libs.private: -lpthread
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/ykbproto.pc
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/ykbproto.pc:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/ykbproto.pc	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,9 @@
+prefix=/usr/Y11R7
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+ 
+Name: YKBProto
+Description: YKB extension headers
+Version: 1.0.6
+Cflags: -I${includedir}
Index: othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/yproto.pc
diff -u /dev/null othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/yproto.pc:1.1
--- /dev/null	Tue Mar 18 05:59:44 2014
+++ othersrc/external/bsd/bsd-pkg-config/dist/tests/pcfiles/yproto.pc	Tue Mar 18 05:59:44 2014
@@ -0,0 +1,10 @@
+prefix=/usr/Y11R7
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+includex11dir=${prefix}/include/Y11
+ 
+Name: Yproto
+Description: Yproto headers
+Version: 7.0.24
+Cflags: -I${includedir}

Reply via email to