From e3663f8e727860a4e80b1873f6d3ef9c909f033a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 4 Aug 2016 13:00:20 +0300 Subject: Update bpkg test to be able to specify C++ compiler --- tests/test.sh | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) (limited to 'tests/test.sh') diff --git a/tests/test.sh b/tests/test.sh index 5f92c7c..e6d3033 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -15,6 +15,9 @@ # local test in order to create the repositories, then publish them (see # pkg/publish.sh), and finally run the remote test. # +# -c +# Use the compiler specified to configure cxx module. +# # --valgrind # Run under valgrind (takes forever). # @@ -54,6 +57,7 @@ fi verbose=n remote=n options= +cxx_options= while [ $# -gt 0 ]; do case $1 in @@ -69,6 +73,11 @@ while [ $# -gt 0 ]; do bpkg="valgrind -q $bpkg" shift ;; + -c) + shift + cxx_options="config.cxx=$1" + shift + ;; *) # If this is the --verbose bpkg option, switch to the verbose # mode as well. @@ -297,6 +306,7 @@ sha256sum: d09700602ff78ae405b6d4850e34660e939d27676e015a23b549884497c8bb45 EOF hello_fp=`rep_cert_fp pkg/1/build2.org/common/hello` + test rep-info -m -p --trust $hello_fp $rep/common/hello <