#!/bin/bash Xnest -geometry 1000x700 -ac :1 & # start up the test and give it some time to appear export DISPLAY=:1 mono /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 result xwd -display :1 -root -out result.xwd # kill Xnest kill %1 if 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