delete test
This commit is contained in:
parent
24d746dd12
commit
e870832503
3 changed files with 0 additions and 106 deletions
|
|
@ -1,20 +0,0 @@
|
|||
summary: Smoke test for php-pecl-rdd package.
|
||||
description: |
|
||||
Smoke test for php-pecl-rrd. Creates a database and creates graph from it.
|
||||
contact: None <icesalov@redhat.com>
|
||||
component: []
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- php
|
||||
- php-pecl-rrd
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tier: '1'
|
||||
relevancy: |
|
||||
distro = rhel-alt: False
|
||||
distro < rhel-8: False
|
||||
# Only available since 8.2
|
||||
distro < rhel-8.2: False
|
||||
extra-summary: /CoreOS/php/Sanity/php-pecl-rdd-smoke
|
||||
extra-task: /CoreOS/php/Sanity/php-pecl-rdd-smoke
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
$rrdFile = dirname(__FILE__) . "/speed.rrd";
|
||||
|
||||
//create rrd file
|
||||
rrd_create($rrdFile,
|
||||
array(
|
||||
"--start",920804400,
|
||||
"DS:speed:COUNTER:600:U:U",
|
||||
"RRA:AVERAGE:0.5:1:24",
|
||||
"RRA:AVERAGE:0.5:6:10"
|
||||
)
|
||||
);
|
||||
|
||||
//update rrd file
|
||||
rrd_update($rrdFile,
|
||||
array(
|
||||
"920804700:12345",
|
||||
"920805000:12357"
|
||||
)
|
||||
);
|
||||
|
||||
//graph output
|
||||
rrd_graph(dirname(__FILE__) . "/speed.png",
|
||||
array(
|
||||
"--start", "920804400",
|
||||
"--end", "920808000",
|
||||
"--vertical-label", "m/s",
|
||||
"DEF:myspeed=$rrdFile:speed:AVERAGE",
|
||||
"CDEF:realspeed=myspeed,1000,*",
|
||||
"LINE2:realspeed#FF0000"
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/php/Sanity/php-pecl-rdd-smoke
|
||||
# Description: Smoke test for php-pecl-rdd package.
|
||||
# Author: Jakub Heger <jheger@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# 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, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="php"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "cp rrd.php $TmpDir" 0 "Copying reproducer to TmpDir"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "php rrd.php" 0 "Creating rrd file and graph output"
|
||||
rlAssertExists "./speed.rrd"
|
||||
rlAssertExists "./speed.png"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue