"Fossies" - the Fresh Open Source Software Archive

Member "c_count-7.20/testing/run_test.sh" (14 May 1995, 1069 Bytes) of package /linux/privat/c_count-7.20.tgz:


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 # $Id: run_test.sh,v 7.2 1995/05/14 21:13:53 tom Exp $
    3 #
    4 PROG=../c_count
    5 TMP=/tmp/c_count$$
    6 rm -f $TMP
    7 #
    8 cat <<EOF/
    9 **
   10 **  Case 1: Count lines in test-files (which have both unbalanced quotes and
   11 **      "illegal" characters:
   12 EOF/
   13 $PROG test[12].c >$TMP
   14 ./showdiff.sh $TMP normal.ref
   15 #
   16 cat <<EOF/
   17 **
   18 **  Case 2: Suppressing unbalanced-quote:
   19 EOF/
   20 $PROG -qLEFT test[12].c >$TMP
   21 ./showdiff.sh $TMP quotes.ref
   22 #
   23 cat <<EOF/
   24 **
   25 **  Case 3: Counting by names given in standard-input:
   26 EOF/
   27 $PROG >$TMP <<EOF/
   28 test1.c
   29 test2.c
   30 EOF/
   31 ./showdiff.sh $TMP list.ref
   32 #
   33 cat <<EOF/
   34 **
   35 **  Case 4: Counting bulk text piped in standard-input:
   36 EOF/
   37 cat test[12].c | $PROG -v - >$TMP
   38 ./showdiff.sh $TMP cat.ref
   39 #
   40 cat <<EOF/
   41 **
   42 **  Case 5: Counting history-comments
   43 EOF/
   44 $PROG test3.c >$TMP
   45 ./showdiff.sh $TMP history.ref
   46 #
   47 cat <<EOF/
   48 **
   49 **  Case 6: Display as a spreadsheet
   50 EOF/
   51 $PROG -t -qLEFT test[123].c >$TMP
   52 ./showdiff.sh $TMP table.ref
   53 #
   54 cat <<EOF/
   55 **
   56 **  Case 7: Display as a spreadsheet (per-file)
   57 EOF/
   58 $PROG -pt -qLEFT test[123].c >$TMP
   59 ./showdiff.sh $TMP table_p.ref
   60 #
   61 #
   62 rm -f $TMP