#15 Try to separate gating tests, add a non-gating test
Closed 2 years ago by mcermak. Opened 2 years ago by mcermak.
Unknown source rawhide  into  rawhide

file modified
+1 -1
@@ -1,7 +1,7 @@

  summary: CI Gating Plan

  discover:

      how: fmf

-     directory: tests

+     directory: tests/gating

  prepare:

      how: install

      exclude:

tests/gating/Regression/python-probing/list.stp tests/Regression/python-probing/list.stp
file renamed
file was moved with no change to the file
tests/gating/Regression/python-probing/main.fmf tests/Regression/python-probing/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Regression/python-probing/runtest.sh tests/Regression/python-probing/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Regression/python-probing/test.py tests/Regression/python-probing/test.py
file renamed
file was moved with no change to the file
tests/gating/Regression/python-probing/top.stp tests/Regression/python-probing/top.stp
file renamed
file was moved with no change to the file
tests/gating/Regression/small-tests/main.fmf tests/Regression/small-tests/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Regression/small-tests/runtest.sh tests/Regression/small-tests/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/byteman-java-methods-probing/ThreadedExample.java tests/Sanity/byteman-java-methods-probing/ThreadedExample.java
file renamed
file was moved with no change to the file
tests/gating/Sanity/byteman-java-methods-probing/ThreadedExample.stp tests/Sanity/byteman-java-methods-probing/ThreadedExample.stp
file renamed
file was moved with no change to the file
tests/gating/Sanity/byteman-java-methods-probing/main.fmf tests/Sanity/byteman-java-methods-probing/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Sanity/byteman-java-methods-probing/runtest.sh tests/Sanity/byteman-java-methods-probing/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/kernel-modules/Makefile.template tests/Sanity/kernel-modules/Makefile.template
file renamed
file was moved with no change to the file
tests/gating/Sanity/kernel-modules/main.fmf tests/Sanity/kernel-modules/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Sanity/kernel-modules/module.c tests/Sanity/kernel-modules/module.c
file renamed
file was moved with no change to the file
tests/gating/Sanity/kernel-modules/runtest.sh tests/Sanity/kernel-modules/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/quick-smoke-test/main.fmf tests/Sanity/quick-smoke-test/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Sanity/quick-smoke-test/runtest.sh tests/Sanity/quick-smoke-test/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/stap-server-basic-sanity/main.fmf tests/Sanity/stap-server-basic-sanity/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Sanity/stap-server-basic-sanity/runtest.sh tests/Sanity/stap-server-basic-sanity/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/userspace-probes/hello.c tests/Sanity/userspace-probes/hello.c
file renamed
file was moved with no change to the file
tests/gating/Sanity/userspace-probes/main.fmf tests/Sanity/userspace-probes/main.fmf
file renamed
file was moved with no change to the file
tests/gating/Sanity/userspace-probes/runtest.sh tests/Sanity/userspace-probes/runtest.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/userspace-probes/testcase1.sh tests/Sanity/userspace-probes/testcase1.sh
file renamed
file was moved with no change to the file
tests/gating/Sanity/userspace-probes/testcase2.sh tests/Sanity/userspace-probes/testcase2.sh
file renamed
file was moved with no change to the file
@@ -0,0 +1,14 @@

+ summary: Test for bz711976 (Systemtap does not remove directory of debugfs)

+ description: Bug summary: Systemtap does not remove directory of debugfs when out of memory occurs

+ contact: Petr Muller <pmuller@redhat.com>

+ component:

+   - systemtap

+ test: ./runtest.sh

+ framework: beakerlib

+ recommend:

+   - systemtap

+ duration: 10m

+ link:

+   - relates: https://bugzilla.redhat.com/show_bug.cgi?id=711976

+ extra-summary: /tools/systemtap/Regression/bz711976-debugfs-dir-removal-after-OOM

+ extra-task: /tools/systemtap/Regression/bz711976-debugfs-dir-removal-after-OOM

@@ -0,0 +1,79 @@

+ #!/bin/bash

+ # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   runtest.sh of /tools/systemtap/Regression/bz711976-debugfs-dir-removal-after-OOM

+ #   Description: Test for bz711976 (Systemtap does not remove directory of debugfs)

+ #   Author: Petr Muller <pmuller@redhat.com>

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ #

+ #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

+ #

+ #   This copyrighted material is made available to anyone wishing

+ #   to use, modify, copy, or redistribute it subject to the terms

+ #   and conditions of the GNU General Public License version 2.

+ #

+ #   This program is distributed in the hope that it will be

+ #   useful, but WITHOUT ANY WARRANTY; without even the implied

+ #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

+ #   PURPOSE. See the GNU General Public License for more details.

+ #

+ #   You should have received a copy of the GNU General Public

+ #   License along with this program; if not, write to the Free

+ #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

+ #   Boston, MA 02110-1301, USA.

+ #

+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ 

+ 

+ # Include Beaker environment

+ . /usr/share/beakerlib/beakerlib.sh

+ 

+ PACKAGE="systemtap"

+ 

+ rlJournalStart

+   rlPhaseStartSetup "Determining system suitability"

+     CPUS=$(grep processor /proc/cpuinfo | wc -l)

+     MEMNEEDED=$(($CPUS * 4094))

+     MEMKB=$(grep MemTotal /proc/meminfo | tr -c -d '[[:digit:]]')

+     MEMMB=$(($MEMKB / 1024))

+ 

+     rlLog "CPU count:         $CPUS"

+     rlLog "Needed memory:     $(($MEMNEEDED)) MB"

+     rlLog "Available memory:  $(($MEMMB)) MB"

+ 

+     if [ $MEMNEEDED -lt $MEMMB ]

+     then

+       rlLog "The system has more memory than we need"

+       rlPhaseEnd

+       rlJournalPrintText

+       rlJournalEnd

+       exit 0

+     else

+       rlPass "System has sufficiently low memory"

+     fi

+   rlPhaseEnd

+ 

+   rlPhaseStartSetup "Preparations"

+     rlRun "swapoff --all"

+     rlRun "stap -p4 -b -e 'global a probe begin {a=1} probe timer.ms(2000){if (a==1) exit()}' -m bz711976"

+   rlPhaseEnd

+ 

+   rlPhaseStartTest

+     rlRun "staprun -R -L -b 4095 bz711976.ko" 1

+     sleep 5

+     rlAssertNotExists /sys/kernel/debug/systemtap/bz711976

+     tmplog=$(mktemp)

+     rlRun "staprun -R -L -b 1 bz711976.ko |& tee $tmplog"

+     modname=$(cat $tmplog | tr -d '"' | awk '/To reconnect, type/ {print $NF}')

+     sleep 10

+     rlRun "staprun -A $modname"

+   rlPhaseEnd

+ 

+   rlPhaseStartCleanup

+     rlRun "swapon --all"

+     rlRun "rm -f bz711976.ko $tmplog"

+   rlPhaseEnd

+ rlJournalPrintText

+ rlJournalEnd

Try to separate gating tests, add a non-gating test

Pull-Request has been closed by mcermak

2 years ago
Metadata
Changes Summary 27
+1 -1
file changed
plans/ci.fmf
+0 -0
file renamed
tests/Regression/python-probing/list.stp
tests/gating/Regression/python-probing/list.stp
+0 -0
file renamed
tests/Regression/python-probing/main.fmf
tests/gating/Regression/python-probing/main.fmf
+0 -0
file renamed
tests/Regression/python-probing/runtest.sh
tests/gating/Regression/python-probing/runtest.sh
+0 -0
file renamed
tests/Regression/python-probing/test.py
tests/gating/Regression/python-probing/test.py
+0 -0
file renamed
tests/Regression/python-probing/top.stp
tests/gating/Regression/python-probing/top.stp
+0 -0
file renamed
tests/Regression/small-tests/main.fmf
tests/gating/Regression/small-tests/main.fmf
+0 -0
file renamed
tests/Regression/small-tests/runtest.sh
tests/gating/Regression/small-tests/runtest.sh
+0 -0
file renamed
tests/Sanity/byteman-java-methods-probing/ThreadedExample.java
tests/gating/Sanity/byteman-java-methods-probing/ThreadedExample.java
+0 -0
file renamed
tests/Sanity/byteman-java-methods-probing/ThreadedExample.stp
tests/gating/Sanity/byteman-java-methods-probing/ThreadedExample.stp
+0 -0
file renamed
tests/Sanity/byteman-java-methods-probing/main.fmf
tests/gating/Sanity/byteman-java-methods-probing/main.fmf
+0 -0
file renamed
tests/Sanity/byteman-java-methods-probing/runtest.sh
tests/gating/Sanity/byteman-java-methods-probing/runtest.sh
+0 -0
file renamed
tests/Sanity/kernel-modules/Makefile.template
tests/gating/Sanity/kernel-modules/Makefile.template
+0 -0
file renamed
tests/Sanity/kernel-modules/main.fmf
tests/gating/Sanity/kernel-modules/main.fmf
+0 -0
file renamed
tests/Sanity/kernel-modules/module.c
tests/gating/Sanity/kernel-modules/module.c
+0 -0
file renamed
tests/Sanity/kernel-modules/runtest.sh
tests/gating/Sanity/kernel-modules/runtest.sh
+0 -0
file renamed
tests/Sanity/quick-smoke-test/main.fmf
tests/gating/Sanity/quick-smoke-test/main.fmf
+0 -0
file renamed
tests/Sanity/quick-smoke-test/runtest.sh
tests/gating/Sanity/quick-smoke-test/runtest.sh
+0 -0
file renamed
tests/Sanity/stap-server-basic-sanity/main.fmf
tests/gating/Sanity/stap-server-basic-sanity/main.fmf
+0 -0
file renamed
tests/Sanity/stap-server-basic-sanity/runtest.sh
tests/gating/Sanity/stap-server-basic-sanity/runtest.sh
+0 -0
file renamed
tests/Sanity/userspace-probes/hello.c
tests/gating/Sanity/userspace-probes/hello.c
+0 -0
file renamed
tests/Sanity/userspace-probes/main.fmf
tests/gating/Sanity/userspace-probes/main.fmf
+0 -0
file renamed
tests/Sanity/userspace-probes/runtest.sh
tests/gating/Sanity/userspace-probes/runtest.sh
+0 -0
file renamed
tests/Sanity/userspace-probes/testcase1.sh
tests/gating/Sanity/userspace-probes/testcase1.sh
+0 -0
file renamed
tests/Sanity/userspace-probes/testcase2.sh
tests/gating/Sanity/userspace-probes/testcase2.sh
+14
file added
tests/other/Regression/debugfs-dir-removal-after-OOM/main.fmf
+79
file added
tests/other/Regression/debugfs-dir-removal-after-OOM/runtest.sh