From bddee32ed9e1e535ffb281127f5e6d0592ab124a Mon Sep 17 00:00:00 2001 From: miod <> Date: Tue, 6 May 2014 20:40:26 +0000 Subject: Make sure the stdout output is check, to confirm proper sorting. --- src/regress/lib/libcrypto/pqueue/Makefile | 7 ++++++- src/regress/lib/libcrypto/pqueue/expected.txt | 3 +++ src/regress/lib/libcrypto/pqueue/pq_test.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/regress/lib/libcrypto/pqueue/expected.txt (limited to 'src') 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 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/06 20:27:19 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/05/06 20:40:26 miod Exp $ PROG= pq_test CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto @@ -7,4 +7,9 @@ CFLAGS+= -I${CRYPTO}/pqueue LDADD= -lcrypto DPADD= ${LIBCRYPTO} +REGRESS_TARGETS= regress-pq_test + +regress-pq_test: ${PROG} + ${.OBJDIR}/pq_test | cmp -s ${.CURDIR}/expected.txt /dev/stdin + .include 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 @@ +item 6966726167696c69 +item 7374696365787069 +item 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 @@ #include "pqueue.h" +/* remember to change expected.txt if you change these values */ unsigned char prio1[8] = "supercal"; unsigned char prio2[8] = "ifragili"; unsigned char prio3[8] = "sticexpi"; -- cgit v1.2.3-55-g6feb