Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update restraint and cki_lib environment part 2 of 2 (#483)
Browse files Browse the repository at this point in the history
Updated cki beaker tests including sub-tests:
networking  pciutils          sound      storage    test     tracepoints
packages    power-management  rt-tests   standards  stress   trace  vm

Co-authored-by: Rachel Sibley <[email protected]>
  • Loading branch information
ftjahjad and rasibley authored Mar 31, 2020
1 parent 1b8eaa7 commit 43e7165
Show file tree
Hide file tree
Showing 122 changed files with 116 additions and 204 deletions.
1 change: 0 additions & 1 deletion networking/bridge/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# Boston, MA 02110-1301, USA.
#

. /usr/bin/rhts_environment.sh

log()
{
Expand Down
3 changes: 1 addition & 2 deletions networking/bridge/sanity_check/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ $(METADATA): Makefile
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)
@echo "repoRequires: networking/bridge/common" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2 or above" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)

rhts-lint $(METADATA)
1 change: 1 addition & 0 deletions networking/bridge/sanity_check/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ CDIR=$(dirname $FILE)
RPATH=${RELATIVE_PATH:-"networking/bridge/sanity_check"}

# Include Beaker environment
. ../../../cki_lib/libcki.sh || exit 1
source ${CDIR%/$RPATH}/networking/common/include.sh || exit 1
source ${CDIR%/$RPATH}/networking/bridge/common/lib.sh || exit 1

Expand Down
4 changes: 0 additions & 4 deletions networking/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,3 @@ $(METADATA): Makefile
@echo "Requires: expect pexpect python3-pexpect" >> $(METADATA)
@echo "Requires: bc wget bzip2 gcc" >> $(METADATA)
@echo "Requires: git patch rsync" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
3 changes: 1 addition & 2 deletions networking/common/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ NETWORK_COMMONLIB_DIR=$(dirname $(readlink -f $BASH_SOURCE))
networkLib=$NETWORK_COMMONLIB_DIR

# include beaker default environmnet
. /usr/bin/rhts_environment.sh
. /usr/share/beakerlib/beakerlib.sh || . /usr/lib/beakerlib/beakerlib.sh
. /usr/share/beakerlib/beakerlib.sh || exit 1

# select tool to manage package, which could be "yum" or "dnf"
function select_yum_tool() {
Expand Down
4 changes: 1 addition & 3 deletions networking/driver/sanity/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,4 @@ $(METADATA): Makefile
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)

rhts-lint $(METADATA)

@echo "repoRequires: cki_lib" >> $(METADATA)
2 changes: 1 addition & 1 deletion networking/driver/sanity/runtest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

. /usr/bin/rhts_environment.sh
. ../../../cki_lib/libcki.sh || exit 1

COUNT=0

Expand Down
3 changes: 0 additions & 3 deletions networking/firewall/000infralib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,3 @@ $(METADATA): Makefile
@echo "RhtsRequires: beakerlib" >> $(METADATA)
@echo "RhtsRequires: beakerlib-redhat" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
1 change: 0 additions & 1 deletion networking/firewall/000infralib/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include Beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1

#
Expand Down
3 changes: 1 addition & 2 deletions networking/firewall/netfilter/target/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ $(METADATA): Makefile
@echo "Requires: tree" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)
@echo "repoRequires: networking/firewall/000infralib" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)

rhts-lint $(METADATA)
2 changes: 1 addition & 1 deletion networking/firewall/netfilter/target/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ NAME=$(basename $FILE)
CDIR=$(dirname $FILE)

# Include Beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1

###########################################################
Expand Down
2 changes: 0 additions & 2 deletions networking/igmp/conformance/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ $(METADATA): Makefile
@echo "Requires: kernel-modules-extra" >> $(METADATA)
@echo "Requires: tcpdump" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)

rhts-lint $(METADATA)
3 changes: 1 addition & 2 deletions networking/igmp/conformance/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include common and beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. ../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
. ./common/include.sh || exit 1
. ./common/network.sh || exit 1
. ./common/service.sh || exit 1
. ../../../cki_lib/libcki.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
6 changes: 1 addition & 5 deletions networking/ipsec/ipsec_basic/ipsec_basic_netns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,4 @@ $(METADATA): Makefile
@echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA)
# add any other packages for which your test ought to run here
@echo "Requires: socat" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)

@echo "repoRequires: cki_lib" >> $(METADATA)
2 changes: 1 addition & 1 deletion networking/ipsec/ipsec_basic/ipsec_basic_netns/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ destructive=no
[restraint]
entry_point=make run
dependencies=socat;iproute
repoRequires=networking/common
repoRequires=networking/common;cki_lib
1 change: 1 addition & 0 deletions networking/ipsec/ipsec_basic/ipsec_basic_netns/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Global parameters
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. ../../../../cki_lib/libcki.sh || exit 1
. ../../../common/include.sh

ipsec_stat(){
Expand Down
3 changes: 1 addition & 2 deletions networking/macsec/sanity_check/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ $(METADATA): Makefile
@echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA)
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2 or above" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)

rhts-lint $(METADATA)
1 change: 1 addition & 0 deletions networking/macsec/sanity_check/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ CDIR=$(dirname $FILE)
RPATH=${RELATIVE_PATH:-"networking/macsec/sanity_check"}

# Include Beaker environment
. ../../../cki_lib/libcki.sh || exit 1
source ${CDIR%/$RPATH}/networking/common/include.sh || exit 1

KEY_0=81818181818181818181818181816161
Expand Down
4 changes: 0 additions & 4 deletions networking/route/pmtu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,3 @@ $(METADATA): Makefile
@echo "RhtsRequires: kernel-kernel-networking-common" >> $(METADATA)
@echo "RhtsRequires: library(kernel/network)" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
3 changes: 1 addition & 2 deletions networking/route/pmtu/common/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ NETWORK_COMMONLIB_DIR=$(dirname $(readlink -f $BASH_SOURCE))
networkLib=$NETWORK_COMMONLIB_DIR

# include beaker default environmnet
. /usr/bin/rhts_environment.sh
. /usr/share/beakerlib/beakerlib.sh || . /usr/lib/beakerlib/beakerlib.sh
. /usr/share/beakerlib/beakerlib.sh || exit 1

# variables to control some default action
NM_CTL=${NM_CTL:-"no"}
Expand Down
2 changes: 1 addition & 1 deletion networking/route/pmtu/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include Beaker environment
. ../../../cki_lib/libcki.sh || exit 1
. ./common/include.sh || exit 1
. ./common/network.sh || exit 1
. ./common/service.sh || exit 1
. ./common/install.sh || exit 1
. ../../../cki_lib/libcki.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
5 changes: 1 addition & 4 deletions networking/route/route_func/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,4 @@ $(METADATA): Makefile
# add any other packages for which your test ought to run here
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "Requires: net-tools" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
3 changes: 1 addition & 2 deletions networking/route/route_func/common/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ NETWORK_COMMONLIB_DIR=$(dirname $(readlink -f $BASH_SOURCE))
networkLib=$NETWORK_COMMONLIB_DIR

# include beaker default environmnet
. /usr/bin/rhts_environment.sh
. /usr/share/beakerlib/beakerlib.sh || . /usr/lib/beakerlib/beakerlib.sh
. /usr/share/beakerlib/beakerlib.sh || exit 1

# select tool to manage package, which could be "yum" or "dnf"
function select_yum_tool() {
Expand Down
2 changes: 1 addition & 1 deletion networking/route/route_func/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ destructive=no
[restraint]
entry_point=make run
dependencies=net-tools
repoRequires=networking/common
repoRequires=networking/common;cki_lib
1 change: 1 addition & 0 deletions networking/route/route_func/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include internal libray
. ../../../cki_lib/libcki.sh || exit 1
. ../../common/include.sh || exit 1

TEST_TYPE=${TEST_TYPE:-"netns"}
Expand Down
1 change: 0 additions & 1 deletion networking/sctp/auth/sockopts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ $(METADATA): Makefile
@echo "Requires: python3-lxml" >> $(METADATA)
@echo "Requires: kernel-modules-extra" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
rhts-lint $(METADATA)
3 changes: 1 addition & 2 deletions networking/sctp/auth/sockopts/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
# Jianwen Ji: <[email protected]>

# include common and Beaker environments
. /usr/bin/rhts-environment.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
. ./common/include.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1

rlJournalStart

Expand Down
5 changes: 1 addition & 4 deletions networking/socket/fuzz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,4 @@ $(METADATA): Makefile
# add any other packages for which your test ought to run here
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "Requires: gcc lksctp-tools-devel" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
2 changes: 1 addition & 1 deletion networking/socket/fuzz/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ destructive=no

[restraint]
entry_point=make run
repoRequires=networking/common
repoRequires=networking/common;cki_lib
1 change: 1 addition & 0 deletions networking/socket/fuzz/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include Beaker environment
. ../../../cki_lib/libcki.sh || exit 1
. ../../common/include.sh || exit 1

disable_avc_check
Expand Down
4 changes: 0 additions & 4 deletions networking/tcp/tcp_keepalive/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,3 @@ $(METADATA): Makefile
@echo "Requires: python3-lxml" >> $(METADATA)
@echo "Requires: kernel-modules-extra" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)

# You may need other fields here; see the documentation
rhts-lint $(METADATA)

3 changes: 1 addition & 2 deletions networking/tcp/tcp_keepalive/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
#

# include common and Beaker environments
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
. ../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
4 changes: 0 additions & 4 deletions networking/tunnel/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,3 @@ $(METADATA): Makefile
@echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA)
# add any other packages for which your test ought to run here
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
2 changes: 1 addition & 1 deletion networking/tunnel/common/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ destructive=no
[restraint]
entry_point=make run
dependencies=net-tools;iproute;tcpdump;ethtool
repoRequires=networking/common
repoRequires=networking/common;cki_lib
1 change: 1 addition & 0 deletions networking/tunnel/geneve/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ $(METADATA): Makefile
@echo "Requires: python3-lxml" >> $(METADATA)
@echo "Requires: kernel-modules-extra" >> $(METADATA)
@echo "Requires: tcpdump" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
3 changes: 1 addition & 2 deletions networking/tunnel/geneve/basic/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@


# include common and beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
. ../../../common/include.sh || exit 1
. ../../common/include.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
5 changes: 1 addition & 4 deletions networking/tunnel/gre/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,4 @@ $(METADATA): Makefile
@echo "Requires: net-tools socat" >> $(METADATA)
@echo "Requires: python3-lxml" >> $(METADATA)
@echo "Requires: kernel-modules-extra" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
3 changes: 1 addition & 2 deletions networking/tunnel/gre/basic/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include Common and Beaker environments
. /usr/bin/rhts-environment.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
. ../../../common/include.sh || exit 1
. ../../common/include.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
5 changes: 1 addition & 4 deletions networking/tunnel/l2tp/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,4 @@ $(METADATA): Makefile
@echo "Requires: net-tools" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)
@echo "repoRequires: networking/tunnel/common" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
1 change: 1 addition & 0 deletions networking/tunnel/l2tp/basic/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Include Beaker environment
. ../../../../cki_lib/libcki.sh || exit 1
. ../../../common/include.sh || exit 1
. ../../common/include.sh || exit 1

Expand Down
5 changes: 1 addition & 4 deletions networking/tunnel/vxlan/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,4 @@ $(METADATA): Makefile
# add any other packages for which your test ought to run here
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "Requires: net-tools" >> $(METADATA)
# add any other requirements for the script to run here

# You may need other fields here; see the documentation
rhts-lint $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
2 changes: 1 addition & 1 deletion networking/tunnel/vxlan/basic/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
# for CKI
[ ! -f /usr/local/bin/netns_clean.sh ] && rm /dev/shm/network_common_initalized -f

. ../../../../cki_lib/libcki.sh || exit 1
. ../../../common/include.sh || exit 1
. ../../common/include.sh || exit 1
. ../../../../cki_lib/libcki.sh || exit 1

YUM=$(cki_get_yum_tool)

Expand Down
3 changes: 1 addition & 2 deletions networking/udp/udp_socket/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ $(METADATA): Makefile
@echo "Requires: make" >> $(METADATA)
@echo "Requires: gcc" >> $(METADATA)
@echo "repoRequires: networking/common" >> $(METADATA)
@echo "repoRequires: cki_lib" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)

rhts-lint $(METADATA)
1 change: 1 addition & 0 deletions networking/udp/udp_socket/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# Boston, MA 02110-1301, USA.
#

. ../../../cki_lib/libcki.sh || exit 1
source ../../common/include.sh || exit 1

ns1="ip netns exec ha"
Expand Down
Loading

0 comments on commit 43e7165

Please sign in to comment.