diff options
author | 2017-04-20 03:48:59 +0000 | |
---|---|---|
committer | 2017-04-20 03:48:59 +0000 | |
commit | 5da68bf0911e12237a3484e4160f959933f26c9a (patch) | |
tree | 627242af8b68d9f300d37ecee1495840d19e474b /resources/roles/unixbench/tasks/main.yml | |
parent | 48770903149a800d5cc9ddecc490001ffd9688a8 (diff) | |
parent | 31d52cd81cbd143f619d44e113cd6336fc726e40 (diff) |
Merge "Add UnixBench benchmarking role"
Diffstat (limited to 'resources/roles/unixbench/tasks/main.yml')
-rw-r--r-- | resources/roles/unixbench/tasks/main.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/resources/roles/unixbench/tasks/main.yml b/resources/roles/unixbench/tasks/main.yml new file mode 100644 index 00000000..d9d5c8f7 --- /dev/null +++ b/resources/roles/unixbench/tasks/main.yml @@ -0,0 +1,36 @@ +############################################################################# +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################# + +- name: make unixbench working directory + file: + path: "{{ cwd }}" + state: directory + +- name: download unixbench source code + unarchive: + src: https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz + dest: "{{ cwd }}" + remote_src: yes + +- name: build UnixBench + command: "make" + args: + chdir: "{{ cwd }}/byte-unixbench-5.1.3/UnixBench" + +- name: run whetstone and dhrystone + shell: "./Run -i {{ iterations }} -c {{ parallel_copies }} dhrystone whetstone" + args: + chdir: "{{ cwd }}/byte-unixbench-5.1.3/UnixBench" + +- name: synchronize test results to local + synchronize: + mode: pull + src: "{{ cwd }}/byte-unixbench-5.1.3/UnixBench/results" + dest: "{{ qtip_dump }}/{{ inventory_hostname }}/unixbench" + use_ssh_args: yes |