forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let's move `tags` test script from selftests to examples. With such change we can use this test in other places, for example in tags documentation. Signed-off-by: Jan Richter <[email protected]>
- Loading branch information
Showing
3 changed files
with
86 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import time | ||
|
||
from avocado import Test | ||
|
||
|
||
class DisabledTest(Test): | ||
""" | ||
:avocado: disable | ||
:avocado: tags=fast,net | ||
""" | ||
|
||
def test_disabled(self): | ||
pass | ||
|
||
|
||
class FastTest(Test): | ||
""" | ||
:avocado: tags=fast | ||
""" | ||
|
||
def test_fast(self): | ||
""" | ||
:avocado: tags=net | ||
""" | ||
|
||
def test_fast_other(self): | ||
""" | ||
:avocado: tags=net | ||
""" | ||
|
||
|
||
class SlowTest(Test): | ||
""" | ||
:avocado: tags=slow,disk | ||
""" | ||
|
||
def test_slow(self): | ||
time.sleep(1) | ||
|
||
|
||
class SlowUnsafeTest(Test): | ||
""" | ||
:avocado: tags=slow,disk,unsafe | ||
""" | ||
|
||
def test_slow_unsafe(self): | ||
time.sleep(1) | ||
|
||
|
||
class SafeTest(Test): | ||
""" | ||
:avocado: tags=safe | ||
""" | ||
|
||
def test_safe(self): | ||
pass | ||
|
||
|
||
class SafeX86Test(Test): | ||
""" | ||
:avocado: tags=safe,arch:x86_64 | ||
""" | ||
|
||
def test_safe_x86(self): | ||
pass | ||
|
||
|
||
class NoTagsTest(Test): | ||
def test_no_tags(self): | ||
pass | ||
|
||
|
||
class SafeAarch64Test(Test): | ||
""" | ||
:avocado: tags=safe,arch:aarch64 | ||
""" | ||
|
||
def test_safe_aarch64(self): | ||
pass |
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