Red Hat Bugzilla – Bug 175761
ltp needs to be packaged better
Last modified: 2008-07-17 18:03:23 EDT
The ltp 'make install' is terribly stupid - it hardlinks all the binaries into
the testcases/bin directory.
Because a few of the tests depend on other files that are in their *build*
directory, they must be run from there. So we have to package the build dirs as
well as the binary dirs. So we package a lot of unnecessary stuff.
In addition, since the /bin/ dir is full of hardlinks, the files in there get
the wrong SELinux context - they should be bin_t but the files they link to are
outside /bin/, so they then get labeled lib_t. This causes rpm -V to complain a
lot about mismatched contexts during TPS runs.
Another thing: the scripts that should run chmod refuse to run as non-root. This
is unnecessary and just plain silly, and probably causes us to have improper
permissions on certain files.
Solution: Fix Makefiles and scripts to install binaries to a more reasonable
location, and fix binaries/scripts to not require files from the build dirs. Fix
chmod scripts to not demand root user.
rhr2 has been deprecated, closing these remaining bugs as WONTFIX. Future bugs
against the "hts" test suite should be opened agains the "Red Hat Hardware
Certification Program" product selecting either "Test Suite (harness)" or "Test
Suite (tests)" components.