Changeset 4124 for zzuf/trunk


Ignore:
Timestamp:
Dec 14, 2009, 5:10:15 PM (11 years ago)
Author:
Sam Hocevar
Message:

Make the check-utils output slightly clearer.

Location:
zzuf/trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test

    • Property svn:ignore
      •  

        old new  
        66zzcat
        77zzero
         8zznop
        89*.exe
        910.deps
  • zzuf/trunk/test/check-utils

    r4121 r4124  
    2121            check "$ZZOPTS" "< $file" "zzuf"
    2222        fi
    23         for n in \
    24           "fread(1,33000)" \
    25           "repeat(33,fread(1,1000))" \
    26           "repeat(1000,fread(1,33))" \
    27           "getc() fread(1,33000)" \
    28           "getc_unlocked() fread(1,33000)" \
    29           "fgetc() fread(1,33000)" \
    30           "fgetc_unlocked() fread(1,33000)" \
    31           "getc() ungetc() fread(1,33000)" \
    32           "getc_unlocked() ungetc() fread(1,33000)" \
    33           "fgetc() ungetc() fread(1,33000)" \
    34           "fgetc_unlocked() ungetc() fread(1,33000)" \
    35           "repeat(33000,getc())" \
    36           "repeat(33000,getc_unlocked())" \
    37           "repeat(33000,fgetc())" \
    38           "repeat(33000,fgetc_unlocked())" \
    39           "repeat(8000,getc()) fread(1,33000)" \
    40           "repeat(8000,getc_unlocked()) fread(1,33000)" \
    41           "repeat(8000,fgetc()) fread(1,33000)" \
    42           "repeat(8000,fgetc_unlocked()) fread(1,33000)" \
    43           "repeat(10,getline()) fread(1,33000)" \
    44           "repeat(10,getdelim(0)) fread(1,33000)" \
    45           "repeat(10,getdelim(' ')) fread(1,33000)" \
    46           "fread(1,100) fseek(50,SEEK_SET) fread(1,33000)" \
    47           "fread(1,100) rewind() fseek(50,SEEK_CUR) fread(1,33000)" \
    48           "fread(1,33000) rewind() repeat(10000,fseek(2,SEEK_CUR) fread(1,2))" \
    49           "repeat(33000,getc() ungetc() getline())" \
    50           "repeat(33000,fgetc() ungetc() getline())" \
    51           "repeat(33000,getc_unlocked() ungetc() getline())" \
    52           "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,fread(1,2))" \
    53           "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,getc())" \
    54           "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,fgetc())" \
    55           "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,getc_unlocked())" \
    56           ; do
    57             check "$ZZOPTS" "$ZZCAT \"$n\" $file" "zzcat $n"
    58         done
    5923        if [ "$STATIC_CAT" = "" ]; then
    6024            check "$ZZOPTS" "cat $file" "cat"
     
    9054            ;;
    9155        esac
     56        for n in \
     57          "fread(1,33000)" \
     58          "repeat(33,fread(1,1000))" \
     59          "repeat(1000,fread(1,33))" \
     60          "getc() fread(1,33000)" \
     61          "getc_unlocked() fread(1,33000)" \
     62          "fgetc() fread(1,33000)" \
     63          "fgetc_unlocked() fread(1,33000)" \
     64          "getc() ungetc() fread(1,33000)" \
     65          "getc_unlocked() ungetc() fread(1,33000)" \
     66          "fgetc() ungetc() fread(1,33000)" \
     67          "fgetc_unlocked() ungetc() fread(1,33000)" \
     68          "repeat(33000,getc())" \
     69          "repeat(33000,getc_unlocked())" \
     70          "repeat(33000,fgetc())" \
     71          "repeat(33000,fgetc_unlocked())" \
     72          "repeat(8000,getc()) fread(1,33000)" \
     73          "repeat(8000,getc_unlocked()) fread(1,33000)" \
     74          "repeat(8000,fgetc()) fread(1,33000)" \
     75          "repeat(8000,fgetc_unlocked()) fread(1,33000)" \
     76          "repeat(10,getline()) fread(1,33000)" \
     77          "repeat(10,getdelim(0)) fread(1,33000)" \
     78          "repeat(10,getdelim(' ')) fread(1,33000)" \
     79          "fread(1,100) fseek(50,SEEK_SET) fread(1,33000)" \
     80          "fread(1,100) rewind() fseek(50,SEEK_CUR) fread(1,33000)" \
     81          "fread(1,33000) rewind() repeat(10000,fseek(1,SEEK_CUR) fread(1,1))" \
     82          "fread(1,33000) rewind() repeat(10000,fseek(2,SEEK_CUR) fread(1,2))" \
     83          "fread(1,33000) rewind() repeat(10000,fseek(3,SEEK_CUR) fread(1,3))" \
     84          "fread(1,33000) rewind() repeat(10000,fseek(4,SEEK_CUR) fread(1,4))" \
     85          "repeat(33000,getc() ungetc() getline())" \
     86          "repeat(33000,fgetc() ungetc() getline())" \
     87          "repeat(33000,getc_unlocked() ungetc() getline())" \
     88          "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,fread(1,2))" \
     89          "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,getc())" \
     90          "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,fgetc())" \
     91          "fread(1,33000) fseek(1000,SEEK_CUR) repeat(10000,getc_unlocked())" \
     92          ; do
     93            check "$ZZOPTS" "$ZZCAT \"$n\" $file" "$n"
     94        done
    9295    done
    9396}
Note: See TracChangeset for help on using the changeset viewer.