Bug#869645: ssss: Please add simple autopkgtest

2017-08-11 Thread Chris Lamb
Dear Tomasz,

> Thank you Chris and late congrats for becoming our DPL. :)
> I'm about to upload a new version of  with your patch.

Great stuff; thanks for uploading and your kind congratulations :)


Best wishes,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#869645: ssss: Please add simple autopkgtest

2017-08-11 Thread Tomasz Buchert
On 25/07/17 11:00, Chris Lamb wrote:
> Hi,
>
> > Patch attached.
>
> Somehow this got dropped initially. Attaching now.
>
>
> Regards,
>

Thank you Chris and late congrats for becoming our DPL. :)
I'm about to upload a new version of  with your patch.

Tomasz


signature.asc
Description: PGP signature


Bug#869645: ssss: Please add simple autopkgtest

2017-07-25 Thread Chris Lamb
Hi,

> Patch attached.

Somehow this got dropped initially. Attaching now.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb, Debian Project Leader
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diff --git a/debian/tests/01-smoketest b/debian/tests/01-smoketest
new file mode 100755
index 000..1862958
--- /dev/null
+++ b/debian/tests/01-smoketest
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -eux
+
+SUBSET="10"
+SHARES="50"
+PASSWORD="SRBIvXGJzYc6pUlW2eoOWKry9e6fW5HmiS4HydrU"
+SPLIT_TEMP="$(mktemp)"
+COMBINE_TEMP="$(mktemp)"
+
+trap 'rm -f ${SPLIT_TEMP} ${COMBINE_TEMP}' EXIT
+
+echo "${PASSWORD}" | \
+   -split -t "${SUBSET}" -n "${SHARES}" >"${SPLIT_TEMP}" 2>&1
+
+grep -E '^[0-9]' "${SPLIT_TEMP}" | \
+   head -n "${SUBSET}" | \
+   -combine -t "${SUBSET}" >"${COMBINE_TEMP}" 2>&1
+
+test "$(awk '/^Resulting secret:/ { print $3 }' "${COMBINE_TEMP}")" = 
"${PASSWORD}"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 000..9f0e9cc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: 01-smoketest
+Restrictions: allow-stderr


Bug#869645: ssss: Please add simple autopkgtest

2017-07-25 Thread Chris Lamb
Source: 
Version: 0.5-3
Severity: wishlist
Tags: patch

Hi,

It would be nice if we had a simple smoke autopkgtest for this package.

Patch attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb, Debian Project Leader
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-