Idea for Automated ISO Testing Script
by
scott_glaser
—
last modified
Jan 10, 2007 02:32 PM
These are my current ramblings for building the script to automate the process of testing the ISOs.
- Start with the freshly built ISO.
- Verify the sha1sum is good.
- Check the sha1sum of the ISO against the SHA1SUM file
- If good continue to step 3.
- Prepare the ISO.
- Move the ISO to /iso_rebuild this is the location where we will prepare the ISO for testing.
- Mount the ISO to /iso_rebuild/pre_test, this is a temp location so we can open the ISO.
- Copy the mounted ISO to /iso_rebuild/test_prep, this will allow us to modify the ISO for testing.
- Replace the file /isolinux/isolinux.cfg in the copy of the ISO to be tested with the modified file for testing
- Insert the file /ks.cfg to allow the ISO to be tested, this file will vary by the type of ISO to be tested (i.e. SERVER, GNOME, KDE, . . .)
- Insert the file /test_package.sh based on the tests to be run on that iso image. This file must also be called in the %post section of the ks.cfg. To be provided by testing personnel.
- Rebuild the ISO with the modified files, label as ISOFILENAME-TESTING.iso, this new ISO will be the one that gets tested in the vmware test guest.
- Unmout the unmodified ISO.
- Move the modified ISO to the directory /ISO_testing.
- Clean up the directory /iso_rebuild/test_prep.
- Prepare the vmware test guest for the new ISO to be tested
- Copy a clean vmware guest test environment into the location on the vmware test server(NOTE: This is
required as vmware will only default to the cd/iso the first time it is
powered on, if it is always set to cd/iso when we reboot after the build completes it will overwrite itself).
- Modify the clean vmware guest test environment, this requires changing the guest .vmx file. The line ide1:0.fileName = will have to be changed each time to reflect the proper name of the ISO to be tested (i.e. ide1:0.fileName = "/ISO_Testing/FC-6-i386-DVD-TESTING.iso).
- Start the test
- The test is started by issuing the command /usr/bin/vmware-cmd /var/lib/vmware/Virtual\ Machines/Test_Builder/Test_Builder.vmx start.
- Once the test is complete record the results in an ISO status location.
- Based on the results, move the unmodified ISO to either a PASSED or FAILED directory with a copy of the results.
- Clean Up
- Remove the modified ISO from the ISO_Testing directory.
- Remove the vmware guest test environment.
- Repeat for each ISO to be tested.

