diff options
author | Nauman Ahad <Nauman_Ahad@dell.com> | 2015-08-14 14:30:41 -0700 |
---|---|---|
committer | Nauman Ahad <Nauman_Ahad@dell.com> | 2015-08-14 14:30:41 -0700 |
commit | 12b2b2c38e01a00c07c09b924a5b62f8ddc74145 (patch) | |
tree | 37ee93a9c36f6aac8e6b12e5e9111af7c99be30d /benchmarks/playbooks/ramspeedbench.yaml | |
parent | be6d041ae8279f7a8e6de4153217108a7b383637 (diff) |
Added automation script, 2 test cases, Heat template for test case, Project INFO files
Structured existing playbooks into directories, added automations scripts and test cases which
were demonstrated in demo1. Basic Directoy structure also introduced. All hard coded values removed.
JIRA: QTIP-3
Change-Id: Icdceb0f125a5275d3dee7845a403e567d729dc26
Signed-off-by: Nauman Ahad <Nauman_Ahad@dell.com>
Diffstat (limited to 'benchmarks/playbooks/ramspeedbench.yaml')
-rw-r--r-- | benchmarks/playbooks/ramspeedbench.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/benchmarks/playbooks/ramspeedbench.yaml b/benchmarks/playbooks/ramspeedbench.yaml new file mode 100644 index 00000000..37ea91a8 --- /dev/null +++ b/benchmarks/playbooks/ramspeedbench.yaml @@ -0,0 +1,38 @@ + + - hosts: demo1 + + tasks: + - name: clean + shell: rm -rf /usr/bin/phoronix-test-suite + shell: rm -rf /usr/share/doc/phoronix-test-suite/ + shell: rm -rf /usr/share/phoronix-test-suite + shell: rm -rf /root/photmp/ + - name: clean previous results + file: path=/root/results path=absent + - name: make direc + file: path=/root/photmp/ state=directory + - name: Fetch Phornonix + shell: cd /root/photmp/ && wget https://www.dropbox.com/s/5kks513ozxy7vvs/phoronix-suite.tar.gz + - name: unarchive Phoronix + shell: cd /root/photmp/ && tar -zxvf phoronix-suite.tar.gz + - name: Phornonix Dependencies + shell: yum install php php-xml php-client php-process -y + - name: Install Phornonix + shell: cd /root/photmp/phoronix-test-suite-master/&&./install-sh + - name: batchSetup + shell: phoronix-test-suite batch-setup + - name: install + shell: phoronix-test-suite batch-install ramspeed + - name: run + shell: phoronix-test-suite batch-run ramspeed + - name: making directory + file: path=/root/results state=directory + - name: copying result to temp directory + shell: cp -r /var/lib/phoronix-test-suite/test-results/* /root/results/ + - name: registering files + shell: (cd /root/results/; find . -maxdepth 1 -type f) | cut -d'/' -f2 + register: files_to_copy + - name: copy results + fetch: src=/root/results/{{item}} dest={{Dest_dir}}/dhrystone + with_items: files_to_copy.stdout_lines + |