From 1d1b05e518b082160974096433b4f450292ff9f7 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 7 Jan 2008 22:50:01 +0000 Subject: [PATCH] More ITS#5265: Disable unsupported back-ldif tests --- tests/scripts/test025-limits | 7 ++++++- tests/scripts/test037-manage | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/scripts/test025-limits b/tests/scripts/test025-limits index 036c798a2a..4dedbd11d8 100755 --- a/tests/scripts/test025-limits +++ b/tests/scripts/test025-limits @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2007 The OpenLDAP Foundation. +## Copyright 1998-2008 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -496,6 +496,8 @@ case $RC in ;; esac +case $BACKEND in bdb | hdb) + echo "Testing higher than unchecked limit requested for unchecked limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \ @@ -547,6 +549,9 @@ case $RC in exit $RC ;; esac +;; +*) echo "Skipping test for unchecked limit with $BACKEND backend." ;; +esac echo "Testing no limits requested for limited regex..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ diff --git a/tests/scripts/test037-manage b/tests/scripts/test037-manage index 7527e122e0..84a6d1fc8f 100755 --- a/tests/scripts/test037-manage +++ b/tests/scripts/test037-manage @@ -16,6 +16,11 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh +if test $BACKEND = "ldif" ; then + echo "LDIF backend does not support manageDIT control, test skipped" + exit 0 +fi + mkdir -p $TESTDIR $DBDIR1 echo "Running slapadd to build slapd database..." -- 2.39.5