cross-implementation test suite was relicensed to 3-clause BSD
[gnutls:gnutls.git] / tests / suite / testcompat-polarssl
1 #!/bin/sh
2
3 # Copyright (c) 2010-2015, Free Software Foundation, Inc.
4 # Copyright (c) 2012-2015, Nikos Mavrogiannopoulos
5 # All rights reserved.
6 #
7 # Author: Nikos Mavrogiannopoulos
8 #
9 # This file is part of GnuTLS.
10 #
11 # Redistribution and use in source and binary forms, with or without modification,
12 # are permitted provided that the following conditions are met:
13 #
14 # 1. Redistributions of source code must retain the above copyright notice, this 
15 # list of conditions and the following disclaimer.
16 # 2. Redistributions in binary form must reproduce the above copyright notice, 
17 # this list of conditions and the following disclaimer in the documentation and/or
18 # other materials provided with the distribution.
19 # 3. Neither the name of the copyright holder nor the names of its contributors may
20 # be used to endorse or promote products derived from this software without specific
21 # prior written permission.
22 #
23 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
24 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
26 # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
27 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
28 # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
31 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33 # Check for datefudge
34 TSTAMP=`datefudge "2006-09-23 00:00 UTC" date -u +%s 2>/dev/null`
35 if test "$TSTAMP" != "1158969600"; then
36     echo "You need datefudge to run this test"
37     exit 77
38 fi
39
40 datefudge "2012-09-2" ./testcompat-main-polarssl