1 | The canon-a1100 machine can be used with the Barebox firmware. The | 1 | The canon-a1100 machine can be used with the Barebox firmware. The |
---|---|---|---|
2 | QEMU Advent Calendar 2018 features a pre-compiled image which we | 2 | QEMU Advent Calendar 2018 features a pre-compiled image which we |
3 | can use for testing. | 3 | can use for testing. |
4 | 4 | ||
5 | Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> | ||
6 | Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> | ||
7 | Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> | ||
8 | Tested-by: Wainer dos Santos Moschetta <wainersm@redhat.com> | ||
5 | Signed-off-by: Thomas Huth <thuth@redhat.com> | 9 | Signed-off-by: Thomas Huth <thuth@redhat.com> |
6 | --- | 10 | --- |
7 | tests/acceptance/machine_arm_canon-a1100.py | 33 +++++++++++++++++++++ | 11 | v2: |
8 | 1 file changed, 33 insertions(+) | 12 | - Rename file and add class docstring to please pylint |
9 | create mode 100644 tests/acceptance/machine_arm_canon-a1100.py | 13 | - Add entry to MAINTAINERS |
14 | - Add :avocado: tags=device:pflash_cfi02 | ||
10 | 15 | ||
11 | diff --git a/tests/acceptance/machine_arm_canon-a1100.py b/tests/acceptance/machine_arm_canon-a1100.py | 16 | MAINTAINERS | 1 + |
17 | tests/acceptance/machine_arm_canona1100.py | 35 ++++++++++++++++++++++ | ||
18 | 2 files changed, 36 insertions(+) | ||
19 | create mode 100644 tests/acceptance/machine_arm_canona1100.py | ||
20 | |||
21 | diff --git a/MAINTAINERS b/MAINTAINERS | ||
22 | index XXXXXXX..XXXXXXX 100644 | ||
23 | --- a/MAINTAINERS | ||
24 | +++ b/MAINTAINERS | ||
25 | @@ -XXX,XX +XXX,XX @@ S: Odd Fixes | ||
26 | F: include/hw/arm/digic.h | ||
27 | F: hw/*/digic* | ||
28 | F: include/hw/*/digic* | ||
29 | +F: tests/acceptance/machine_arm_canona1100.py | ||
30 | |||
31 | Gumstix | ||
32 | M: Peter Maydell <peter.maydell@linaro.org> | ||
33 | diff --git a/tests/acceptance/machine_arm_canona1100.py b/tests/acceptance/machine_arm_canona1100.py | ||
12 | new file mode 100644 | 34 | new file mode 100644 |
13 | index XXXXXXX..XXXXXXX | 35 | index XXXXXXX..XXXXXXX |
14 | --- /dev/null | 36 | --- /dev/null |
15 | +++ b/tests/acceptance/machine_arm_canon-a1100.py | 37 | +++ b/tests/acceptance/machine_arm_canona1100.py |
16 | @@ -XXX,XX +XXX,XX @@ | 38 | @@ -XXX,XX +XXX,XX @@ |
17 | +# Functional test that boots the canon-a1100 machine with firmware | 39 | +# Functional test that boots the canon-a1100 machine with firmware |
18 | +# | 40 | +# |
19 | +# Copyright (c) 2020 Red Hat, Inc. | 41 | +# Copyright (c) 2020 Red Hat, Inc. |
20 | +# | 42 | +# |
... | ... | ||
27 | +from avocado_qemu import Test | 49 | +from avocado_qemu import Test |
28 | +from avocado_qemu import wait_for_console_pattern | 50 | +from avocado_qemu import wait_for_console_pattern |
29 | +from avocado.utils import archive | 51 | +from avocado.utils import archive |
30 | + | 52 | + |
31 | +class CanonA1100Machine(Test): | 53 | +class CanonA1100Machine(Test): |
54 | + """Boots the barebox firmware and checks that the console is operational""" | ||
32 | + | 55 | + |
33 | + timeout = 90 | 56 | + timeout = 90 |
34 | + | 57 | + |
35 | + def test_arm_canona1100(self): | 58 | + def test_arm_canona1100(self): |
36 | + """ | 59 | + """ |
37 | + :avocado: tags=arch:arm | 60 | + :avocado: tags=arch:arm |
38 | + :avocado: tags=machine:canon-a1100 | 61 | + :avocado: tags=machine:canon-a1100 |
62 | + :avocado: tags=device:pflash_cfi02 | ||
39 | + """ | 63 | + """ |
40 | + tar_url = ('https://www.qemu-advent-calendar.org' | 64 | + tar_url = ('https://www.qemu-advent-calendar.org' |
41 | + '/2018/download/day18.tar.xz') | 65 | + '/2018/download/day18.tar.xz') |
42 | + tar_hash = '068b5fc4242b29381acee94713509f8a876e9db6' | 66 | + tar_hash = '068b5fc4242b29381acee94713509f8a876e9db6' |
43 | + file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) | 67 | + file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) |
... | ... | diff view generated by jsdifflib |