diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/pqueue/Makefile | 7 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/pqueue/expected.txt | 3 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/pqueue/pq_test.c | 1 |
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 | ||
3 | PROG= pq_test | 3 | PROG= pq_test |
4 | CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto | 4 | CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto |
@@ -7,4 +7,9 @@ CFLAGS+= -I${CRYPTO}/pqueue | |||
7 | LDADD= -lcrypto | 7 | LDADD= -lcrypto |
8 | DPADD= ${LIBCRYPTO} | 8 | DPADD= ${LIBCRYPTO} |
9 | 9 | ||
10 | REGRESS_TARGETS= regress-pq_test | ||
11 | |||
12 | regress-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 @@ | |||
1 | item 6966726167696c69 | ||
2 | item 7374696365787069 | ||
3 | 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 @@ | |||
59 | 59 | ||
60 | #include "pqueue.h" | 60 | #include "pqueue.h" |
61 | 61 | ||
62 | /* remember to change expected.txt if you change these values */ | ||
62 | unsigned char prio1[8] = "supercal"; | 63 | unsigned char prio1[8] = "supercal"; |
63 | unsigned char prio2[8] = "ifragili"; | 64 | unsigned char prio2[8] = "ifragili"; |
64 | unsigned char prio3[8] = "sticexpi"; | 65 | unsigned char prio3[8] = "sticexpi"; |