Remove hard dependencies of tests to rhts system
But keep optional support for it. It if is installed, make use of it. It it is not installed, allow running of tests.
This commit is contained in:
parent
fbaeef6765
commit
edc1ed1623
1 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Remove RHTS dependencies from beakerlib test
|
||||
# Do not remove them hard way, just make it possible running test without them installed
|
||||
|
||||
find -name Makefile -exec sed -e 's|include /usr/share/rhts/lib/rhts-make.include||' -e 's|rhts-lint $(METADATA)||' -e 'T' -e 'd' -i '{}' ';'
|
||||
find -name runtest.sh -exec sed -e 's|. /usr/bin/rhts-environment.sh||' -e 'T' -e 'd' -i '{}' ';'
|
||||
find -name runtest.sh -exec sed -e 's|. /usr/lib/beakerlib/beakerlib.sh|. /usr/share/beakerlib/beakerlib.sh|' -e 'T' -e 'd' -i '{}' ';'
|
||||
find -name Makefile -exec sed -e 's|include \(/usr/share/rhts/lib/rhts-make.include\)|include $(realpath \1)|' -e 's|rhts-lint $(METADATA)|[ -x /usr/bin/rhts-lint ] \&\& &|' -i '{}' ';'
|
||||
find -name runtest.sh -exec sed -e 's,\. /usr/bin/rhts-environment.sh || exit 1,if [ -r /usr/bin/rhts-environment.sh ]; then &; fi,' -i '{}' ';'
|
||||
find -name runtest.sh -exec sed -e 's|\. /usr/lib/beakerlib/beakerlib.sh|for LIB in /usr/{lib,share}/beakerlib/beakerlib.sh; do [ -r "$LIB" ] \&\& . $LIB \&\& break; done|' -i '{}' ';'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue