Test suite: don't use "mkdir -p"
"mkdir -p" is not supported on all platforms. Tested with Apple A/UX 3.1.x.
This commit is contained in:
parent
19ce256a95
commit
cf9f9e1f30
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# ngIRCd Test Suite
|
# ngIRCd Test Suite
|
||||||
# Copyright (c)2002-2004 by Alexander Barton (alex@barton.de)
|
# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -9,8 +9,6 @@
|
||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
# Please read the file COPYING, README and AUTHORS for more information.
|
# Please read the file COPYING, README and AUTHORS for more information.
|
||||||
#
|
#
|
||||||
# $Id: stress-server.sh,v 1.16 2005/12/30 22:13:21 alex Exp $
|
|
||||||
#
|
|
||||||
|
|
||||||
# detect source directory
|
# detect source directory
|
||||||
[ -z "$srcdir" ] && srcdir=`dirname $0`
|
[ -z "$srcdir" ] && srcdir=`dirname $0`
|
||||||
|
@ -23,7 +21,8 @@
|
||||||
name=`basename $0`
|
name=`basename $0`
|
||||||
|
|
||||||
# create directories
|
# create directories
|
||||||
mkdir -p logs tests
|
[ -d logs ] || mkdir logs
|
||||||
|
[ -d tests ] || mkdir tests
|
||||||
|
|
||||||
# test for required external tools
|
# test for required external tools
|
||||||
type expect > /dev/null 2>&1
|
type expect > /dev/null 2>&1
|
||||||
|
|
|
@ -1,13 +1,21 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
# ngIRCd Test Suite
|
# ngIRCd Test Suite
|
||||||
# $Id: tests.sh,v 1.7 2004/09/06 22:04:06 alex Exp $
|
# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
# Please read the file COPYING, README and AUTHORS for more information.
|
||||||
|
#
|
||||||
|
|
||||||
# detect source directory
|
# detect source directory
|
||||||
[ -z "$srcdir" ] && srcdir=`dirname $0`
|
[ -z "$srcdir" ] && srcdir=`dirname $0`
|
||||||
|
|
||||||
name=`basename $0`
|
name=`basename $0`
|
||||||
test=`echo ${name} | cut -d '.' -f 1`
|
test=`echo ${name} | cut -d '.' -f 1`
|
||||||
mkdir -p logs
|
[ -d logs ] || mkdir logs
|
||||||
|
|
||||||
if [ ! -r "$test" ]; then
|
if [ ! -r "$test" ]; then
|
||||||
echo " ${name}: test \"$test\" not found!"; exit 77
|
echo " ${name}: test \"$test\" not found!"; exit 77
|
||||||
|
|
Loading…
Reference in New Issue