Compare commits

..

No commits in common. "rawhide" and "f41" have entirely different histories.

5 changed files with 15 additions and 22 deletions

View file

@ -1 +0,0 @@
1

View file

@ -1,5 +0,0 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1,12 +0,0 @@
summary: test of functionality of crontabs
description: ''
contact: Petr Sklenar <psklenar@redhat.com>
component:
- crontabs
test: ./runtest.sh
framework: beakerlib
recommend:
- crontabs
duration: 30m
extra-summary: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
extra-task: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs

7
tests/test-of-functionality-of-crontabs/runtest.sh Executable file → Normal file
View file

@ -27,7 +27,8 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include rhts environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
. /usr/bin/rhts-environment.sh
. /usr/lib/beakerlib/beakerlib.sh
PACKAGE="crontabs"
#how long should we wait:
@ -38,7 +39,6 @@ rlJournalStart
user="petr$RANDOM"
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "useradd $user"
rlRun "rlServiceStart crond"
rlFileBackup /etc/crontab
rlPhaseEnd
@ -76,8 +76,7 @@ rlJournalStart
rlPhaseStartCleanup
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "userdel -rf $user"
rlRun "rlServiceRestore crond"
rlRun "userdel -r $user"
rlFileRestore
rlPhaseEnd
rlJournalPrintText

12
tests/tests.yml Normal file
View file

@ -0,0 +1,12 @@
---
# This first play always runs on the local staging system
- hosts: localhost
roles:
- role: standard-test-beakerlib
tags:
- classic
tests:
- test-of-functionality-of-crontabs
required_packages:
- crontabs # test-of-functionality-of-crontabs needs crontabs
- findutils # beakerlib needs find command