DEMO: add real life use case sandbox/pwieczorek/demo
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 19 Dec 2017 12:04:56 +0000 (13:04 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 5 Jan 2018 14:30:50 +0000 (15:30 +0100)
Change-Id: Icafe861d16c71e522615eeefb4154c1337fed4e6

demo/demo.sh
demo/smoke.yml [new file with mode: 0644]

index 2e5da22..3be599a 100644 (file)
@@ -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 (file)
index 0000000..268c1d5
--- /dev/null
@@ -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