Source: nss
Version: 2:3.21-1
Severity: wishlist
Tags: patch

Hi,
attached patch enables running parts of the internal test suite. I hope
to run all.sh at one point but for now this covers quit some ground and
helps to detect errors when backporting.
It be great to have this applied.

In case you prefer to cherry-pick I have a temporary repo at:

    https://github.com/agx/nss-debian

Cheers,
 -- Guido
>From 87bf710006832565cfd173ccb8e9bc7a2b678994 Mon Sep 17 00:00:00 2001
Message-Id: <87bf710006832565cfd173ccb8e9bc7a2b678994.1448817454.git....@sigxcpu.org>
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org>
Date: Sat, 28 Nov 2015 17:52:32 +0100
Subject: [PATCH] Run standard cycle of nss's testsuite

---
 debian/rules | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/debian/rules b/debian/rules
index c7b3488..4964b49 100755
--- a/debian/rules
+++ b/debian/rules
@@ -187,6 +187,20 @@ override_dh_gencontrol:
 	dh_gencontrol -- -Vmisc:Multi-Arch=same
 endif
 
+override_dh_auto_test:
+	# Create .chk files for FIPS mode tests
+	$(foreach lib,libsoftokn3.so libfreebl3.so libnssdbm3.so, \
+	  $(call cmd,cd $(DISTDIR)/lib; LD_LIBRARY_PATH=$(DISTDIR)/lib $(DISTDIR)/bin/shlibsign -v -i $(lib)))
+	# Run tests
+	export DIST=$(CURDIR)         &&\
+	export OBJDIR=dist            &&\
+	export IP_ADDRESS=127.0.0.1   &&\
+	export USE_IP=TRUE            &&\
+	export NSS_CYCLES=standard    &&\
+	cd $(CURDIR)/nss/tests        && ./all.sh
+	# Cleanup
+	rm -f dist/lib/*.chk
+
 override_dh_builddeb:
 	dh_builddeb -- -Zxz
 
-- 
2.6.2

Reply via email to