guile: Fix dependencies to be parallel-safe.
[gnutls.git] / tests / cert-tests / pathlen
blob5bfdbc9b3fa4b027c035155743b5a13e886ac673
1 #!/bin/sh
3 # Copyright (C) 2006-2008, 2010, 2012 Free Software Foundation, Inc.
5 # Author: Simon Josefsson
7 # This file is part of GnuTLS.
9 # GnuTLS is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the
11 # Free Software Foundation; either version 3 of the License, or (at
12 # your option) any later version.
14 # GnuTLS is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with GnuTLS; if not, write to the Free Software Foundation,
21 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 set -e
25 srcdir=${srcdir:-.}
26 CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT}
28 $CERTTOOL --certificate-info --infile $srcdir/ca-no-pathlen.pem \
29 --outfile new-ca-no-pathlen.pem
30 $CERTTOOL --certificate-info --infile $srcdir/no-ca-or-pathlen.pem \
31 --outfile new-no-ca-or-pathlen.pem
33 diff $srcdir/ca-no-pathlen.pem new-ca-no-pathlen.pem
34 rc1=$?
35 diff $srcdir/no-ca-or-pathlen.pem new-no-ca-or-pathlen.pem
36 rc2=$?
39 # We're done.
40 if test "$rc1" != "0"; then
41 exit $rc1
44 rm -f new-ca-no-pathlen.pem new-no-ca-or-pathlen.pem
46 exit $rc2