Skip to content

Commit

Permalink
Unit tests for crypto/stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulidale committed Mar 15, 2017
1 parent 5e047eb commit 4f8bcf3
Show file tree
Hide file tree
Showing 3 changed files with 412 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ IF[{- !$disabled{tests} -}]
evp_test evp_extra_test igetest v3nametest v3ext \
crltest danetest bad_dtls_test \
constant_time_test verify_extra_test clienthellotest \
packettest asynctest secmemtest srptest memleaktest \
packettest asynctest secmemtest srptest memleaktest stack_test \
dtlsv1listentest ct_test threadstest afalgtest d2i_test \
ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
Expand Down Expand Up @@ -210,6 +210,10 @@ IF[{- !$disabled{tests} -}]
INCLUDE[memleaktest]=../include
DEPEND[memleaktest]=../libcrypto

SOURCE[stack_test]=stack_test.c testutil.c test_main.c
INCLUDE[stack_test]=.. ../include
DEPEND[stack_test]=../libcrypto

SOURCE[dtlsv1listentest]=dtlsv1listentest.c
INCLUDE[dtlsv1listentest]=.. ../include
DEPEND[dtlsv1listentest]=../libssl
Expand Down
14 changes: 14 additions & 0 deletions test/recipes/02-test-stack.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /usr/bin/env perl
# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
#
# ======================================================================
# Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.

use OpenSSL::Test::Simple;

simple_test("test_stack", "stack_test");

0 comments on commit 4f8bcf3

Please sign in to comment.