From da6320933a8a6b11840949b35c86942453fe2e6f Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Tue, 19 Dec 2017 13:04:56 +0100 Subject: [PATCH] DEMO: add real life use case Change-Id: Icafe861d16c71e522615eeefb4154c1337fed4e6 --- demo/demo.sh | 6 ++++++ demo/smoke.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 demo/smoke.yml diff --git a/demo/demo.sh b/demo/demo.sh index 2e5da22..3be599a 100644 --- a/demo/demo.sh +++ b/demo/demo.sh @@ -59,3 +59,9 @@ next colordiff mini.yml parts.yml ./job.sh 'parts.yml' cat /tmp/weles/$(cat id)/TESTFILE/results* + +next +#real life use case +cat smoke.yml +./job.sh 'smoke.yml' +tail -f /tmp/weles/$(cat id)/TESTFILE/results* diff --git a/demo/smoke.yml b/demo/smoke.yml new file mode 100644 index 0000000..268c1d5 --- /dev/null +++ b/demo/smoke.yml @@ -0,0 +1,54 @@ +device_type: rpi3 +job_name: rpi3-smoke-tits +priority: low + +actions: + - deploy: + images: + - uri: http://106.120.51.24/dwn/115486/iot-boot-arm64-rpi3/tizen-unified_20171218.2_iot-boot-arm64-rpi3.tar.gz + compression: gz + checksum_uri: http://106.120.51.24/dwn/115486/iot-boot-arm64-rpi3/MD5SUMS + checksum_type: md5 + - uri: http://106.120.51.24/dwn/115486/iot-headless-2parts-armv7l-rpi3/tizen-unified_20171218.2_iot-headless-2parts-armv7l-rpi3.tar.gz + compression: gz + checksum_uri: http://106.120.51.24/dwn/115486/iot-headless-2parts-armv7l-rpi3/MD5SUMS + checksum_type: md5 + partition_layout: + - id: 1 + image_name: boot.img + - id: 6 + image_name: modules.img + - id: 2 + image_name: rootfs.img + - id: 3 + image_name: system-data.img + - id: 7 + image_name: ramdisk.img + - id: 8 + image_name: ramdisk-recovery.img + - boot: + login: root + password: tizen + - test: + name: smoke + test_cases: + - case_name: top-processes + test_actions: + - run: + name: ps -eo cputime,rss,vsz,pmem,command --sort -cputime | head -n 10 + - case_name: journal + test_actions: + - run: + name: journalctl --no-pager -p err + - case_name: opt_crash + test_actions: + - run: + name: find /opt/usr/share/crash -maxdepth 2 + - case_name: systemctl-failed + test_actions: + - run: + name: systemctl --no-pager --state=failed | cat + - case_name: systemctl-activating + test_actions: + - run: + name: systemctl --no-pager --state=activating | cat -- 2.7.4