Personal tools
You are here: Home Team Members Scott Glaser AKA Sonar_Guy ISO_Testing Idea for Automated ISO Testing Script

Idea for Automated ISO Testing Script

by scott_glaser last modified Jan 10, 2007 05:32 PM

These are my current ramblings for building the script to automate the process of testing the ISOs.

  1. Start with the freshly built ISO.
  2. Verify the sha1sum is good.
    1. Check the sha1sum of the ISO against the SHA1SUM file
    2. If good continue to step 3.
  3. Prepare the ISO.
    1. Move the ISO to /iso_rebuild this is the location where we will prepare the ISO for testing.
    2. Mount the ISO to /iso_rebuild/pre_test, this is a temp location so we can open the ISO.
    3. Copy the mounted ISO to /iso_rebuild/test_prep, this will allow us to modify the ISO for testing.
    4. Replace the file /isolinux/isolinux.cfg in the copy of the ISO to be tested with the modified file for testing
    5. 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, . . .)
    6. 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.
    7. 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.
    8. Unmout the unmodified ISO.
    9. Move the modified ISO to the directory /ISO_testing.
    10. Clean up the directory /iso_rebuild/test_prep.
  4. Prepare the vmware test guest for the new ISO to be tested
    1. 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).
    2. 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).
  5. Start the test
    1. The test is started by issuing the command /usr/bin/vmware-cmd /var/lib/vmware/Virtual\ Machines/Test_Builder/Test_Builder.vmx start.
    2. Once the test is complete record the results in an ISO status location.
    3. Based on the results, move the unmodified ISO to either a PASSED or FAILED directory with a copy of the results.
  6. Clean Up
    1. Remove the modified ISO from the ISO_Testing directory.
    2. Remove the vmware guest test environment.
  7. Repeat for each ISO to be tested.
Document Actions
Log in


Forgot your password?
New user?