Debian Codegraph @

tests/scripts/its-all

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2024 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15
16 SHTOOL="$SRCDIR/../build/shtool"
17
18 TB="" TN=""
19 if testscip-shell system . . test. -t 1 ; then
20 TB=`$SHTOOL echo -e "%B" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
21 TN=`$SHTOOL echo -e "%b" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
22 fi
23
24 echoscip-shell system . . echo. "#######################################################################"
25 echoscip-shell system . . echo. "### ###"
26 echoscip-shell system . . echo. "### regression tests ###"
27 echoscip-shell system . . echo. "### ###"
28 echoscip-shell system . . echo. "#######################################################################"
29 echoscip-shell system . . echo. "###"
30
31 echoscip-shell system . . echo. ">>>>> Executing all LDAP ITS regression tests"
32
33 for CMD in $SRCDIR/data/regressions/its*/its*; do
34 # remove cruft from prior test
35 if testscip-shell system . . test. $PRESERVE = yes ; then
36 /bin/rmscip-shell filesystem . . `/bin/rm`. -rf testrun/db.*
37 else
38 /bin/rmscip-shell filesystem . . `/bin/rm`. -rf testrun
39 fi
40
41 echoscip-shell system . . echo. ">>>>> Starting ${TB}`basenamescip-shell system . . basename. $CMD`${TN} ..."
42 $CMD
43 RC=$?
44 if testscip-shell system . . test. $RC -eq 0 ; then
45 echoscip-shell system . . echo. ">>>>> $CMD completed ${TB}OK${TN}."
46 else
47 echoscip-shell system . . echo. ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
48 exit $RC
49 fi
50
51 echoscip-shell system . . echo. ""
52 done