From 066b35bd070d22f59e5f3fd5be29614d34517721 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 10 Mar 2017 00:32:24 +0100 Subject: main/lua-ldap: fix segfault, iteration error and run tests --- ...ipt-to-run-test.lua-against-a-dummy-slapd.patch | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 main/lua-ldap/script-to-run-test.lua-against-a-dummy-slapd.patch (limited to 'main/lua-ldap/script-to-run-test.lua-against-a-dummy-slapd.patch') diff --git a/main/lua-ldap/script-to-run-test.lua-against-a-dummy-slapd.patch b/main/lua-ldap/script-to-run-test.lua-against-a-dummy-slapd.patch new file mode 100644 index 0000000000..36c70180de --- /dev/null +++ b/main/lua-ldap/script-to-run-test.lua-against-a-dummy-slapd.patch @@ -0,0 +1,101 @@ +From 847bbf5dbd8053ce21c90dd808ed98ff4b6e742a Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Mon, 30 Jun 2014 11:27:56 +1000 +Subject: [PATCH] script to run test.lua against a dummy slapd + +Source: https://src.fedoraproject.org/cgit/rpms/lua-ldap.git/tree/0002-script-to-run-test.lua-against-a-dummy-slapd.patch +--- a/Makefile ++++ b/Makefile +@@ -26,3 +26,6 @@ install: src/$(LIBNAME) + + clean: + rm -f $(OBJS) src/$(LIBNAME) ++ ++check: ++ LUA_CPATH="src/?.so.$V" bash tests/run-tests.sh +new file mode 100755 +--- /dev/null ++++ b/tests/run-tests.sh +@@ -0,0 +1,79 @@ ++#!/bin/bash ++set -ex ++ ++d=$(readlink -f "$(dirname $0)") ++password=thepassword ++ ++rm -rf "$d/slapd-config" "$d/slapd-data" ++mkdir "$d/slapd-config" "$d/slapd-data" ++ ++# populate slapd config ++slapadd -F "$d/slapd-config" -n0 <