"Fossies" - the Fresh Open Source Software Archive

Member "c_count-7.20/testing/run_test.bat" (21 May 1995, 1483 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) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 rem $Id: run_test.bat,v 7.1 1995/05/21 00:21:48 tom Exp $
    3 rem MSDOS script for exercising C_COUNT
    4 
    5 if exist run_test.log  erase run_test.log
    6 
    7 if exist count.in  erase count.in
    8 if exist count.out erase count.out
    9 
   10 rem
   11 rem Case 1: Count lines in test-files (which have both unbalanced quotes and
   12 rem     "illegal" characters:
   13 rem
   14 ..\c_count test1.c test2.c >count.out
   15 call .\showdiff 1 count.out normal.ref
   16 
   17 rem
   18 rem Case 2: Suppressing unbalanced-quote:
   19 rem
   20 ..\c_count -qLEFT test1.c test2.c >count.out
   21 call .\showdiff 2 count.out quotes.ref
   22 
   23 rem
   24 rem Case 3: Counting by names given in standard-input:
   25 rem
   26 echo test1.c >count.in
   27 echo test2.c >>count.in
   28 type count.in | ..\c_count >count.out
   29 call .\showdiff 3 count.out list.ref
   30 
   31 rem
   32 rem Case 4: Counting bulk text piped in standard-input:
   33 rem
   34 type test1.c >count.in
   35 type test2.c >>count.in
   36 type count.in | ..\c_count -v - >count.out
   37 call .\showdiff 4 count.out cat.ref
   38 
   39 rem
   40 rem Case 5: Counting history-comments
   41 rem
   42 ..\c_count test3.c >count.out
   43 call .\showdiff 5 count.out history.ref
   44 
   45 rem
   46 rem Case 6: Display as a spreadsheet
   47 rem
   48 ..\c_count -t -qLEFT test1.c test2.c test3.c >count.out
   49 call .\showdiff 6 count.out table.ref
   50 
   51 rem
   52 rem Case 7: Display as a spreadsheet (per-file)
   53 rem
   54 ..\c_count -pt -qLEFT test1.c test2.c test3.c >count.out
   55 call .\showdiff 7 count.out table_p.ref
   56 
   57 if exist count.in  erase count.in
   58 if exist count.out erase count.out
   59 
   60 type run_test.log