openenvutils/commandshell/shell/test/scripts/dottest.sh
changeset 0 2e3d3ce01487
child 1 0fdb7f6b0309
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of the License "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 #
       
    15 
       
    16 init()
       
    17     {
       
    18     let totalno=0;
       
    19     let passno=0;
       
    20     let failno=0;
       
    21     }
       
    22 
       
    23 #Test: Using dot, try running a script file
       
    24 test_dot1()
       
    25 {
       
    26     let totalno=totalno+1
       
    27     echo "Test $totalno: Test dirs with -v and +n option"
       
    28 
       
    29     . ./util_dot1.sh
       
    30     ret=$?
       
    31 
       
    32     if [ $ret = 0 ]
       
    33     then
       
    34                 echo "PASS"
       
    35                 let passno=passno+1
       
    36             else
       
    37                 #echo "dirs failed with -v and  option"
       
    38                 echo "FAIL"
       
    39                 let failno=failno+1
       
    40             fi
       
    41 
       
    42 }
       
    43 
       
    44 report()
       
    45     {
       
    46     echo "#############################################################################"
       
    47     echo "Total tests : $totalno"
       
    48     echo "Passed      : $passno"
       
    49     echo "Failed      : $failno"
       
    50     echo "#############################################################################"
       
    51     }
       
    52 
       
    53 
       
    54 init
       
    55  test_dot1
       
    56 report
       
    57 
       
    58