diff --git a/tests/scripts/test017-syncreplication-refresh b/tests/scripts/test017-syncreplication-refresh
index df50ef97781786a30b4170f4a2baaf7a90e4c048..3e0d6d875eee676c71f4230429a6d9807a6f25a6 100755
--- a/tests/scripts/test017-syncreplication-refresh
+++ b/tests/scripts/test017-syncreplication-refresh
@@ -13,6 +13,11 @@
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
+if test "$BACKEND" != "bdb" -o "$BACKEND" != "hdb" -o ; then
+	echo "Test does not support $BACKEND"
+	exit 0
+fi
+
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
diff --git a/tests/scripts/test018-syncreplication-persist b/tests/scripts/test018-syncreplication-persist
index 0fdbfb74ac6c29b11a4a0f169614fc57ede43c44..9241aa7eb8f3b80f60457bf9e7f49ff039b48ec3 100755
--- a/tests/scripts/test018-syncreplication-persist
+++ b/tests/scripts/test018-syncreplication-persist
@@ -13,6 +13,11 @@
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
+if test "$BACKEND" != "bdb" -o "$BACKEND" != "hdb" -o ; then
+	echo "Test does not support $BACKEND"
+	exit 0
+fi
+
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
diff --git a/tests/scripts/test019-syncreplication-cascade b/tests/scripts/test019-syncreplication-cascade
index b00c5f80e3b20c7dc3387278f45d820d90a11043..87d0ca063e43ffd3d7a9a678a1e98244a0e0e0bc 100755
--- a/tests/scripts/test019-syncreplication-cascade
+++ b/tests/scripts/test019-syncreplication-cascade
@@ -13,6 +13,11 @@
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
+if test "$BACKEND" != "bdb" -o "$BACKEND" != "hdb" -o ; then
+	echo "Test does not support $BACKEND"
+	exit 0
+fi
+
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh