"Fossies" - the Fresh Open Source Software Archive

Member "statist-1.4.2/tests/test_4_1.sh" (22 Aug 2005, 752 Bytes) of package /linux/privat/old/statist-1.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # integration test
    3 # testing menu item 4-1
    4 # using the --bernhard option the table is language independent
    5 
    6 expected1="
    7 #Result general statistical information in a table
    8 #n  mean    m-conf  m+conf  median  me_c_lo me_c_up quar_lo quar_up sdv varc(%) sdv_err min max
    9 9   5   2.89512 7.10488 5   2   8   2.5 7.5 2.73861 54.772256   0.912871    1   9   "
   10 
   11 
   12 menu="4
   13 1
   14 "
   15 
   16 exitprogram="0
   17 0
   18 "
   19 
   20 
   21 parameter1="a
   22 
   23 
   24 
   25 "
   26 string1="${menu}${parameter1}${exitprogram}"
   27 
   28 
   29 actual=`echo "${string1}" | ./run_statist.sh --bernhard --silent t1.dat | sed -e 1d`
   30 
   31     if [ x"${expected1}" != x"${actual}" ]; then
   32         echo "Problem with menu 4-1" ;
   33         echo "Expected:";
   34         echo "${expected1}";
   35         echo "Got:";
   36         echo "${actual}";
   37         exit 1;
   38     fi
   39     
   40 
   41 
   42 exit 0