From bb208192872c841cafdb27769f3680a56b18fa65 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Sat, 22 Apr 2017 09:06:05 +0800 Subject: Rename folders * copy -> defaults * render -> custom * roles -> ansible_roles Change-Id: Ia96214691873f3bd8e6c5f9f433292fd912ac46e Signed-off-by: Yujun Zhang --- resources/roles/unixbench/defaults/main.yml | 12 ------ resources/roles/unixbench/tasks/main.yml | 46 ---------------------- .../roles/unixbench/templates/floating-point.j2 | 2 - resources/roles/unixbench/templates/integer.j2 | 2 - 4 files changed, 62 deletions(-) delete mode 100644 resources/roles/unixbench/defaults/main.yml delete mode 100644 resources/roles/unixbench/tasks/main.yml delete mode 100644 resources/roles/unixbench/templates/floating-point.j2 delete mode 100644 resources/roles/unixbench/templates/integer.j2 (limited to 'resources/roles/unixbench') diff --git a/resources/roles/unixbench/defaults/main.yml b/resources/roles/unixbench/defaults/main.yml deleted file mode 100644 index d1facef5..00000000 --- a/resources/roles/unixbench/defaults/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -############################################################################# -# 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 -############################################################################# - -cwd: "{{ ansible_env.HOME }}/qtip/unixbench" -iterations: 1 -parallel_copies: 1 \ No newline at end of file diff --git a/resources/roles/unixbench/tasks/main.yml b/resources/roles/unixbench/tasks/main.yml deleted file mode 100644 index 4c01609a..00000000 --- a/resources/roles/unixbench/tasks/main.yml +++ /dev/null @@ -1,46 +0,0 @@ -############################################################################# -# 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_results }}/{{ inventory_hostname }}/unixbench" - use_ssh_args: yes - -- name: create integer and floating point report - template: - src: "{{ item }}.j2" - dest: "{{ qtip_results }}/{{ inventory_hostname }}/{{ item }}" - with_items: - - floating-point - - integer - delegate_to: localhost - tags: [report] diff --git a/resources/roles/unixbench/templates/floating-point.j2 b/resources/roles/unixbench/templates/floating-point.j2 deleted file mode 100644 index 5989d77c..00000000 --- a/resources/roles/unixbench/templates/floating-point.j2 +++ /dev/null @@ -1,2 +0,0 @@ -Floating Point -============== \ No newline at end of file diff --git a/resources/roles/unixbench/templates/integer.j2 b/resources/roles/unixbench/templates/integer.j2 deleted file mode 100644 index b494515f..00000000 --- a/resources/roles/unixbench/templates/integer.j2 +++ /dev/null @@ -1,2 +0,0 @@ -Integer -======= \ No newline at end of file -- cgit 1.2.3-korg