|
From: doug s. <hig...@ho...> - 2013-05-23 18:46:53
|
> >> I'm on native win32, so the x-window and /usr environment stuff doesn't work for me. >> I can run perl though - a .bat with: >> "E:\Perl\bin\perl.exe" hudson.sh >> pause >> but just generic crossplatform stuff, as in the freex3d/codegen folder. >> So I'm not sure where the boundary between perl and C could be, so that everyone can run. >> . > . > How about something like this: > 1. Record > 2. Playback > 3. Compare > 4. TestAll > . . Paulo, I implemented and checked in 3 new command line options: -R (or --record) - records to a .fwplay ASCII file, with frame#,dtime,keystrokes,mouseActions -F (or --fixture) - plays back the .fwplay file, and saves snapshots with a 'fixture' name -P (or --playback) -plays back the .fwplay file, and saves snapshots with a 'playback' name . -R and -F can be combined on the command line to save a step: generate .fwplay and fixture snapshots during the same run . In the code I have 3 ways to save the files, and have it set at 1 (folder method) //0=default: recording.fwplay, fixture.bmp playback.bmp - will overwrite for each scene //1=folders: 1_wrl/recording.fwplay, 1_wrl/fixture/17.bmp, 1_wrl/playback/17.bmp //2=flattened: 1_wrl.fwplay, 1_wrl_fixture_17.bmp, 1_wrl_playback_17.bmp (17 is frame#) namingMethod = 1; I don't know if the folder method works on linux - it uses a mkdir() method which is slightly different than windows, so I abstracted with an fw_mkdir() function and a #ifdef. . I didn't do any work on the snapshot file type for linux - I think it will save to a .snap file? - someone on linux will need to fix this, for example if you want .rgb snapshot files. . I've only run compare on a few sample snapshot files - works so far. I haven't done the statusbarHud menubar mouse coordinate save and replay yet, so I don't know if there are problems there. . Q. what's best of the fwplay and snapshot naming methods: default, folders or flattened, OR should it be a commandline option, and if so with which method as default? . -Doug |