#!/bin/bashXnest -geometry 1000x700 -ac :1 &# start up the test and give it some time to appearexport DISPLAY=:1mono /home/toshok/src/mono/winforms/textbox/swf-textboxes.exe &sleep 3# replay the recorded data/opt/xnee/bin/cnee -display :1 --replay -f textbox.xnr -rwp# take a screendump of the end resultxwd -display :1 -root -out result.xwd# kill Xnestkill %1if diff result.xwd expected.xwd; then echo files are the same;else xwdtopnm result.xwd | pnmtopng > result.png; convert result.png expected.png -compose difference -composite difference.png;fi