Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/magick/testlibs.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

MAGICK_CONFIGURE_PATH=./config

TYPES=(bilevel gray pallette truecolor)

CONSTITUTE_STORAGETYPES=(char short integer long float double)

CONSTITUTE_MAPS=(bgr bgro bgrp rgb rgba rgbo prgb cmy cmyk i)

BLOB_FORMATS=(AVS BMP  DIB  DPX  EPDF  EPT  FAX  FPX  G3  FITS  GIF  GIF87  JBIG  JPEG  JP2  MIFF  MNG  MTV  PAM  PBM  PCD  PCDS  PCX  PGM  PICON  PICT  PNG  PNM  PPM  PSD  PTIF  RAS  SGI  SUN TGA TIFF VDA VICAR VIFF VST WBMP XBM XPM XWD)

FILE_FORMATS=(AVS  BMP  DIB  DPX  EPDF  EPSF  EPSI  EPI  EPS  EPT  FAX  FITS  FPX  GIF  GRAY  ICB  JBIG  JPEG  JP2  MIFF  MNG  MTV  PAM  PNM  PBM  PCD  PCDS  PCX  PGM  PICON  PICT  PNG  PNM  PPM  PS  PSD  PTIF  RAS  SGI  SUN  TGA  TIFF  VDA  VICAR  VIFF  VST  WBMP  XBM  XPM  XWD)

SIZED_BLOB_FORMATS=(CMYK  GRAY  MONO  PAL  RGB  RGBA  UYVY  YUV)

SIZED_FILE_FORMATS=(CMYK  GRAY  MONO  PAL  RGB  RGBA  UYVY  YUV)

MIFF_FILE_COMPRESS=(none  bzip  zip  rle)

DEEP_TYPES=(truecolor10 truecolor12 truecolor16)

for(i in $CONSTITUTE_STORAGETYPES)
	for(j in $CONSTITUTE_MAPS)
		./tests/$O.constitute -storagetype $i wand/input_truecolor.miff $j 

for(i in $BLOB_FORMATS)
	for(j in $TYPES)
		./tests/$O.rwblob wand/input_$j.miff $i 

for(i in $FILE_FORMATS)
	for(j in $TYPES)
		./tests/$O.rwfile wand/input_$j.miff $i 

for(i in $SIZED_BLOB_FORMATS)
	./tests/$O.rwblob -size 70x46 wand/input_truecolor_70x46.miff $i 

for(i in $SIZED_FILE_FORMATS)
	./tests/$O.rwfile -size 70x46 wand/input_truecolor_70x46.miff $i 

for(i in $MIFF_FILE_COMPRESS)
	for(j in $TYPES)
		./tests/$O.rwfile -compress $i wand/input_$j.miff MIFF

for(i in $FILE_FORMATS)
	for(j in $DEEP_TYPES)
		./tests/$O.rwfile wand/input_$j.pam $i

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].