From 0ee07d00231258d5bbf8a2102b84de5c91354c68 Mon Sep 17 00:00:00 2001 From: Michael Goulish Date: Thu, 28 Oct 2010 04:39:43 +0000 Subject: Add a small executable that prints out the sasl version number in integer form. Use it in the sasl_fed test to determine whether that test can run. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028180 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/sasl_fed | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'cpp/src/tests/sasl_fed') diff --git a/cpp/src/tests/sasl_fed b/cpp/src/tests/sasl_fed index b57c57f89a..e65adae171 100755 --- a/cpp/src/tests/sasl_fed +++ b/cpp/src/tests/sasl_fed @@ -19,11 +19,20 @@ # under the License. # -# disable this test for all sasl verisons temporarily until TODO, below, is completed. -exit 0 - source test_env.sh +# This minimum value corresponds to sasl version 2.1.22 +minimum_sasl_version=131350 + +sasl_version=`$QPID_TEST_EXEC_DIR/sasl_version` + +# This test is necessary becasue this sasl version is the first one that permits +# redirection of the sasl config file path. +if [ "$sasl_version" -lt "$minimum_sasl_version" ]; then + echo "sasl_fed: must have sasl version 2.1.22 or greater. Version is: $sasl_version" + exit 0 +fi + sasl_config_file=$builddir/sasl_config my_random_number=$RANDOM -- cgit v1.2.1