components/imagemagick/TESTING
changeset 7470 c8a35bc3a99c
parent 7032 d064e0405780
child 7596 83b4091f7969
equal deleted inserted replaced
7469:422c29c822ab 7470:c8a35bc3a99c
     1 cd /var/tmp
     1 cd /var/tmp
     2 
     2 
     3 convert -list font | wc -l  # ~ 200 lines of output
     3 convert -list font | wc -l  # ~ 200 lines of output
       
     4 
       
     5 # Make sure that all the config files can be found. The next line should print
       
     6 # no output
       
     7 for i in $(convert -list list); do convert -list $i; done 2>&1 | grep 'convert: unable to access'
       
     8 
       
     9 # List all xml files opened during the operation. Both files found and not
       
    10 # found
       
    11 A=$(
       
    12    for i in $(convert -list list); do
       
    13       truss -'t!all' -t open convert -list $i
       
    14    done 2>&1 |
       
    15    grep ".xml\"," |
       
    16    sed -e 's,.*/,,' |
       
    17    sort -u
       
    18 )
       
    19 
       
    20 # Sort the files to found ones and not found ones
       
    21 FOUND=$( ggrep -P '\d$' <<<"$A" | sed -e 's/".*//' )
       
    22 NOT_FOUND=$( ggrep -v -P '\d$' <<<"$A" | sed -e 's/".*//' )
       
    23 
       
    24 # Now for every not_found file there has to be the same file found, else
       
    25 # display it's name. The output should be empty
       
    26 ggrep -F -x -v -f <(echo "$FOUND") <(echo "$NOT_FOUND")
     4 
    27 
     5 convert -size 170x100 xc:black \
    28 convert -size 170x100 xc:black \
     6    -fill white -draw 'circle 50,50 13,50' \
    29    -fill white -draw 'circle 50,50 13,50' \
     7    -draw 'circle 120,50 157,50' \
    30    -draw 'circle 120,50 157,50' \
     8    -draw 'rectangle 50,13 120,87' \
    31    -draw 'rectangle 50,13 120,87' \