[PATCH 3/3] iwg20m: add a test that boots a cip-core ramdisk


Daniel Sangorrin <daniel.sangorrin@...>
 

Signed-off-by: Daniel Sangorrin <daniel.sangorrin@...>
---
tests/iwg20m-test-ramdisk.yaml | 76 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
create mode 100644 tests/iwg20m-test-ramdisk.yaml

diff --git a/tests/iwg20m-test-ramdisk.yaml b/tests/iwg20m-test-ramdisk.yaml
new file mode 100644
index 0000000..f016ea7
--- /dev/null
+++ b/tests/iwg20m-test-ramdisk.yaml
@@ -0,0 +1,76 @@
+# Copyright (C) 2017, Codethink, Ltd., Robert Marshall <robert.marshall@...>
+# Copyright (C) 2017, Toshiba corp., Daniel Sangorrin <daniel.sangorrin@...>
+# SPDX-License-Identifier: AGPL-3.0
+# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3.
+# 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 Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+device_type: renesas-iwg20m
+job_name: Kernel version test
+timeouts:
+ job:
+ minutes: 10
+ action:
+ minutes: 5
+ connection:
+ minutes: 2
+priority: medium
+visibility: public
+
+
+# ACTION_BLOCK
+actions:
+- deploy:
+ timeout:
+ minutes: 4
+ to: tftp
+ os: oe
+ kernel:
+ url: http://localhost:8010/iwg20m/uImage
+ type: uImage
+ ramdisk:
+ url: http://localhost:8010/iwg20m/core-image-minimal-iwg20m.cpio.gz
+ compression: gz
+ # the bootloader needs a u-boot header on the modified ramdisk
+ add-header: u-boot
+ #modules:
+ # url: http://localhost:8010/iwg20m/modules-iwg20m.tgz
+ # compression: gz
+ dtb:
+ url: http://localhost:8010/iwg20m/r8a7743-iwg20d-q7.dtb
+
+# BOOT_BLOCK
+- boot:
+ auto_login:
+ login_prompt: '\(none\) login: '
+ username: root
+ prompts:
+ - 'cip# '
+ method: u-boot
+ commands: ramdisk
+ type: uimage
+ timeout:
+ minutes: 1
+
+# TEST_BLOCK
+- test:
+ timeout:
+ minutes: 5
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: kernel-version-basic
+ version: "1.0"
+ description: "check kernel version"
+ os:
+ - oe
+ scope:
+ - functional
+ run:
+ steps:
+ - lava-test-case uname --shell uname -a
+ from: inline
+ name: kernel-version-inline
+ path: inline/kernel-version-basic.yaml
--
2.7.4

Join {cip-dev@lists.cip-project.org to automatically receive all group messages.