www.linuxbase.org -> Application Battery -> LSB 4 Functional Verification Test for lsb-python

Functional Verification Test for lsb-python

Install & Setup

  1. Download the lsb-python application package that corresponds to the LSB version and processor architecture for which certification is being sought from the Download Page.
  2. Install package on system. Example command line:
    rpm -ivh lsb-python-2.4.5-1.lsb4.i486.rpm
    NOTE: Application MUST be installed without use of --nodeps option, the dependency checks are part of the test.
    - Expected result: application should be installed to
    /opt/lsb/appbat
  3. Change to the python library directory:
    cd /opt/lsb/appbat/lib/python2.4
  4. Change permissions on the test directory to allow non-root write access
    chmod 777 test
  5. Create a non-root user called "python4lsb"
    useradd -m python4lsb
  6. Change to the python4lsb user to run the tests
    su - python4lsb
  7. Change to the python test directory
    cd /opt/lsb/appbat/lib/python2.4/test
  8. Move aside the pre-compiled python scripts by running the following command sequence:
    mkdir SAVE
    mv *.pyc *.pyo SAVE

Functional Verification Test (FVT)

  Expected result  
achieved?
Test case scenerio
1. Yes No Run the command: /opt/lsb/appbat/bin/python -E regrtest.py -u curses | tee /tmp/python.out && reset
- Expected result: After several minutes all the tests will be completed with the results going to the /tmp/python.out file.
2. Yes No Run the command: tail -n 20 /tmp/python.out to view the last twenty lines of the output file.
- Expected result: There should not be any test failures and the bottom lines of the output file should look something like this (the precise list of skips is not critical).
256 tests OK.
35 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_gl test_imgfile test_ioctl test_largefile test_linuxaudiodev
    test_macfs test_macostools test_nis test_normalization
    test_ossaudiodev test_pep277 test_plistlib test_scriptpackages
    test_socket_ssl test_socketserver test_sunaudiodev test_tcl
    test_timeout test_urllib2net test_urllibnet test_winreg
    test_winsound
2 skips unexpected on linux2:
    test_tcl test_ioctl
    

Results

1. Yes No Were there any errors recorded above?
2. Yes No Were there any deviations in the install, setup, or test described above?
If yes, please describe.

Cleanup

  1. Restore the original pre-compiled python scripts by running the following command sequence:
    cd /opt/lsb/appbat/lib/python2.4/test
    rm -f *.pyc *.pyo
    mv SAVE/* .
    rmdir SAVE
    (Note: in the mv command, the final argument is a dot)
  2. Remove the test output file from the /tmp directory by running the following command:
    rm /tmp/python.out
  3. Exit from the python4lsb login session
    exit
  4. Remove the python4lsb user and its home directory
    userdel -r python4lsb
  5. Restore the original permissions to the python test directory
    chmod 755 /opt/lsb/appbat/lib/python2.4/test

Reporting Test Results

Include the results of testing this application in the Conformance Statement submitted to the LSB Certification Authority when seeking LSB Runtime Environment Certification. Note this is not a submittable form, instead you affirm on the certification form that you have followed these steps.


last change 2008-03-18 Stew Benedict