I'm not sure you'll have much luck finding a free gui test
solution that works across the win32 gui and X11.
Here's a few that are platform specific:
Win32
X11
- Android - done in *cough* tcl/tk
- xremote - not integrated with any scripting language, but it can record/playback actions
There's a pretty good summary listing of GUI test tools
here (some free/some not).