summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/pqueue/Makefile7
-rw-r--r--src/regress/lib/libcrypto/pqueue/expected.txt3
-rw-r--r--src/regress/lib/libcrypto/pqueue/pq_test.c1
3 files changed, 10 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/pqueue/Makefile b/src/regress/lib/libcrypto/pqueue/Makefile
index 02a1816b0a..b817169a7f 100644
--- a/src/regress/lib/libcrypto/pqueue/Makefile
+++ b/src/regress/lib/libcrypto/pqueue/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.1 2014/05/06 20:27:19 miod Exp $ 1# $OpenBSD: Makefile,v 1.2 2014/05/06 20:40:26 miod Exp $
2 2
3PROG= pq_test 3PROG= pq_test
4CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto 4CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto
@@ -7,4 +7,9 @@ CFLAGS+= -I${CRYPTO}/pqueue
7LDADD= -lcrypto 7LDADD= -lcrypto
8DPADD= ${LIBCRYPTO} 8DPADD= ${LIBCRYPTO}
9 9
10REGRESS_TARGETS= regress-pq_test
11
12regress-pq_test: ${PROG}
13 ${.OBJDIR}/pq_test | cmp -s ${.CURDIR}/expected.txt /dev/stdin
14
10.include <bsd.regress.mk> 15.include <bsd.regress.mk>
diff --git a/src/regress/lib/libcrypto/pqueue/expected.txt b/src/regress/lib/libcrypto/pqueue/expected.txt
new file mode 100644
index 0000000000..c59d6cd838
--- /dev/null
+++ b/src/regress/lib/libcrypto/pqueue/expected.txt
@@ -0,0 +1,3 @@
1item 6966726167696c69
2item 7374696365787069
3item 737570657263616c
diff --git a/src/regress/lib/libcrypto/pqueue/pq_test.c b/src/regress/lib/libcrypto/pqueue/pq_test.c
index 22e3beae42..32c39cd507 100644
--- a/src/regress/lib/libcrypto/pqueue/pq_test.c
+++ b/src/regress/lib/libcrypto/pqueue/pq_test.c
@@ -59,6 +59,7 @@
59 59
60#include "pqueue.h" 60#include "pqueue.h"
61 61
62/* remember to change expected.txt if you change these values */
62unsigned char prio1[8] = "supercal"; 63unsigned char prio1[8] = "supercal";
63unsigned char prio2[8] = "ifragili"; 64unsigned char prio2[8] = "ifragili";
64unsigned char prio3[8] = "sticexpi"; 65unsigned char prio3[8] = "sticexpi";