Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testtimesrv.sh

    r19 r30  
    11#! /bin/sh
     2
     3#
     4# Copyright Rainer Wichmann (2006)
     5#
     6# License Information:
     7# This program is free software; you can redistribute it and/or modify
     8# it under the terms of the GNU General Public License as published by
     9# the Free Software Foundation; either version 2 of the License, or
     10# (at your option) any later version.
     11#
     12# This program is distributed in the hope that it will be useful,
     13# but WITHOUT ANY WARRANTY; without even the implied warranty of
     14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15# GNU General Public License for more details.
     16#
     17# You should have received a copy of the GNU General Public License
     18# along with this program; if not, write to the Free Software
     19# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     20#
    221
    322RCFILE="$PW_DIR/testrc_1.dyn";  export RCFILE
     
    1130prep_testdata ()
    1231{
    13     chmod -R 0700 "${BASE}" || {
    14         [ -z "$quiet" ] &&   log_msg_fail "chmod -R 0700 ${BASE}";
    15         return 1;
    16     }
     32    if test -d "$BASE"; then
     33        chmod -R 0700 "${BASE}" || {
     34            [ -z "$quiet" ] &&   log_msg_fail "chmod -R 0700 ${BASE}";
     35            return 1;
     36        }
     37    fi
    1738
    1839    rm -rf "${BASE}" || {
     
    121142        # standalone compilation
    122143        #
    123         [ -z "$verbose" ] || { echo; echo "${S}Building standalone agent w/timeserver${E}"; echo; }
     144        [ -z "$verbose" ] || { echo; echo "${S}Building standalone agent${E}"; echo; }
    124145        #
    125146        if test -r "Makefile"; then
     
    131152        if test x$? = x0; then
    132153                [ -z "$verbose" ] ||     log_msg_ok "configure...";
    133                 $MAKE  > /dev/null
     154                $MAKE  > /dev/null 2>>test_log
    134155                if test x$? = x0; then
    135156                    [ -z "$verbose" ] || log_msg_ok "make...";
Note: See TracChangeset for help on using the changeset viewer.