Functional Verification Test for lsb-python
Install & Setup
- 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.
- Install package on system. Example command line:
rpm -ivh lsb-python-2.4.3-3.lsb3.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
- Change to the python library directory:
cd /opt/lsb/appbat/lib/python2.4
- Change permissions on the test directory to allow non-root write access
chmod 777 test
- Create a non-root user called "python4lsb"
useradd -m python4lsb
- Change to the python4lsb user to run the tests
su - python4lsb
- Change to the python test directory
cd /opt/lsb/appbat/lib/python2.4/test
- Move aside the pre-compiled python scripts by running the following
command sequence:
mkdir SAVE
mv *.pyc *.pyo SAVE
Functional Verification Test (FVT)
Results
Cleanup
- 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)
- Remove the test output file from the /tmp directory by
running the following command:
rm /tmp/python.out
- Exit from the python4lsb login session
exit
- Remove the python4lsb user and its home directory
userdel -r python4lsb
- 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.
|