shithub: cursexp

ref: 044014910f2ffded4bebadbd729d76aa4dea2111
dir: /test/inc.rc/

View raw version
#!/bin/rc

# test cursor include generation
../$O.out <in.img >out.inc
../$O.out -c <out.inc >out.img
cmp in.img out.img


# test template generation
expected='gen.img: Compressed plan 9 image or subfont, depth 2, size 16x16'

../$O.out -g >gen.img
cap=`{file gen.img}
~ $"cap $"expected || echo 'invalid file format'