The script (Perl) needs to be developed and tested on Linux, deployed on OSX. There is no way to test on the OSX server (don't have 2 of them)
If I chroot, then I can simulate the OSX path system w/o disrupting my own. Here is the sequence that needs to happen 1. create/restore simulated OSX rooted filesystem from some media (file, ISO image etc.) 2. run setup/create script (w/some params) (the one that works now.) # At this point more dirs and files will exist there and some files will have changed. run restore/uncreate script (w/same params) # at this point the simulated OSX filesystem should look exacly the same as it did after step 1 To check the above, I can compare it to the file or ISO image I built it from. Ed On 10/11/06, AgentM <[EMAIL PROTECTED]> wrote: > The last comment gives away the fact that the server is OS X. Does > the process you request need to be cross-platform? On OS X, you > should look at hdiutil to mount loopback images (dmg). But why do you > have a script to restore the mount to the pristine state? You can > just duplicate the original, make your changes, diff them, and throw > the changed mount away. > > -M > > On Oct 11, 2006, at 16:29 , Ed Howland wrote: > > > Hi, Everyone! > > > > I have a test scenario that might pose a challenge or might be > > extremely easy. > > > > Test Setup: > > I want to setup a filesystem (?) of some sort (?) that has a number of > > directories and files in it. This can be a directory or mount point > > anywhere. I am going to chroot my process to that dir/mount point and > > run a script which will create/modifiy files and directories therein. > > Script exists* and works now. > > > > Test > > I will run another script that restores the above filesystem (?) to > > the original, pristine state. > > > > I want to recreate the above pristine filesystem (?) over and over > > again. I also want to diff the directories after my test to be sure > > the resulting reverted filesystem (?) is exactly the same as > > the original pristine one. > > > > What got me thing along these lines was VMWare images. But the same > > thing for a directory. Should I use a filesystem created in an ISO > > image, and then I can mount it in loopback mode? > > Are there easier ways to accomplish this? What about user-mode file > > systems. What about must using dd on a filesystem to initial backup > > and restore for retest and checking. > > Any other thing I have not thought of? Going for Q&D here. > > > > Thanks for all your help. > > Ed > > > > * I should point out that this script exists on one server and I am > > testing on another server. The OS and built-in pathnames are not the > > same : /home v. /Users; /lib v. /Library, etc. Hence the chroot. > > The script is in Perl, but that isn't relevant. > > > > -- > > Ed Howland > > http://greenprogrammer.blogspot.com > > > > > > _______________________________________________ > > CWE-LUG mailing list > > [email protected] > > http://www.cwelug.org/ > > http://www.cwelug.org/archives/ > > http://www.cwelug.org/mailinglist/ > > > > _______________________________________________ > CWE-LUG mailing list > [email protected] > http://www.cwelug.org/ > http://www.cwelug.org/archives/ > http://www.cwelug.org/mailinglist/ > -- Ed Howland http://greenprogrammer.blogspot.com _______________________________________________ CWE-LUG mailing list [email protected] http://www.cwelug.org/ http://www.cwelug.org/archives/ http://www.cwelug.org/mailinglist/
