-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
summary: Check that essential documentation is working | ||
coverage: /stories/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Include Beaker environment | ||
. /usr/share/beakerlib/beakerlib.sh || exit 1 | ||
|
||
PACKAGE="tmt" | ||
EXAMPLES="/usr/share/doc/tmt/examples" | ||
|
||
rlJournalStart | ||
rlPhaseStartSetup | ||
rlAssertRpm $PACKAGE | ||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" | ||
rlRun "pushd $TmpDir" | ||
rlRun "set -o pipefail" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest "help" | ||
rlRun "tmt --help | tee help" 0 "Run help" | ||
rlAssertGrep "Test Metadata Tool" "help" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest "man" | ||
rlRun "man tmt | tee man" 0 "Check man page" | ||
rlAssertGrep "usage is straightforward" "man" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest "examples" | ||
rlRun "ls $EXAMPLES | tee examples" 0 "Check examples" | ||
rlAssertGrep "mini" "examples" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartCleanup | ||
rlRun "popd" | ||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory" | ||
rlPhaseEnd | ||
rlJournalEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/basic/smoke: | ||
summary: "Basic smoke test" | ||
test: tmt --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/smoke: | ||
discover: | ||
how: fmf | ||
execute: | ||
how: shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
summary: List available tests and testsets | ||
description: Make sure that 'tmt test ls' and 'tmt testset ls' work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Include Beaker environment | ||
. /usr/share/beakerlib/beakerlib.sh || exit 1 | ||
|
||
examples="/usr/share/doc/tmt/examples/systemd" | ||
|
||
rlJournalStart | ||
rlPhaseStartSetup | ||
rlAssertRpm "tmt" | ||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" | ||
rlRun "cp example-test.txt $TmpDir/test.fmf" | ||
rlRun "cp example-testset.txt $TmpDir/testset.fmf" | ||
rlRun "pushd $TmpDir" | ||
rlRun "fmf init" | ||
rlRun "set -o pipefail" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest "Test listing available tests" | ||
rlRun "tmt test ls | tee output" | ||
rlAssertGrep "/test/basic/smoke" "output" | ||
rlAssertNotGrep "/testset/smoke" "output" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest "Test listing available testsets" | ||
rlRun "tmt testset ls | tee output" | ||
rlAssertGrep "/testset/smoke" "output" | ||
rlAssertNotGrep "/test/basic/smoke" "output" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartCleanup | ||
rlRun "popd" | ||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory" | ||
rlPhaseEnd | ||
rlJournalEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
test: ./test.sh | ||
contact: Petr Šplíchal <psplicha@redhat.com> | ||
duration: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
summary: | ||
Essential command line features | ||
discover: | ||
how: fmf | ||
repository: https://github.com/psss/fmf | ||
execute: | ||
how: beakerlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
summary: | ||
Just a basic smoke test | ||
execute: | ||
script: tmt --help |