diff options
Diffstat (limited to 'benchmarks/playbooks/dhrystone.yaml')
-rw-r--r-- | benchmarks/playbooks/dhrystone.yaml | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/benchmarks/playbooks/dhrystone.yaml b/benchmarks/playbooks/dhrystone.yaml index 82b24dd1..d4fe07ea 100644 --- a/benchmarks/playbooks/dhrystone.yaml +++ b/benchmarks/playbooks/dhrystone.yaml @@ -1,23 +1,27 @@ - - hosts: 127.0.0.1 + - hosts: localhost connection: local + gather_facts: no + tasks: - name: making dhrystone directory - file: path={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp state=directory + file: path={{workingdir}}/{{Dest_dir}}/dhrystone state=directory + - name: making temporary dhrystone directory file: path={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp state=directory - hosts: "{{role}}" become: yes remote_user: "{{username}}" + tasks: - - name: checking_home directory - shell: sudo echo $HOME + - name: checking home directory + shell: echo $HOME register: home_dir - name: cleaning tempT shell: sudo rm -rf $HOME/tempT - - name: cleaning_qtip_result + - name: cleaning qtip_result shell: sudo rm -rf $HOME/qtip_result - name: make directory @@ -40,7 +44,8 @@ - include: ./git_proxy_pbook.yaml - name: Clone unixbench - shell: git clone https://github.com/kdlucas/byte-unixbench.git $HOME/tempT + git: repo=https://github.com/kdlucas/byte-unixbench.git + dest=$HOME/tempT - name: make shell: sudo make --directory $HOME/tempT/UnixBench/ @@ -77,7 +82,7 @@ - name: copy results fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp - with_items: files_to_copy.stdout_lines + with_items: "{{files_to_copy.stdout_lines}}" - name: registering log files shell: (cd $HOME/qtip_result/log/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2 @@ -85,7 +90,7 @@ - name: copying log results fetch: src={{home_dir.stdout}}/qtip_result/log/{{item}} dest={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp - with_items: copy_log_results.stdout_lines + with_items: "{{copy_log_results.stdout_lines}}" - name: cleaning tempT shell: sudo rm -rf $HOME/tempT @@ -94,14 +99,19 @@ shell: sudo rm -rf $HOME/qtip_result - - hosts: 127.0.0.1 + - hosts: localhost connection: local + gather_facts: no + tasks: - name: extracting_json shell: ( find {{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/dhrystone/) + - name: making_logs_folder shell: mkdir -p {{workingdir}}/{{Dest_dir}}/dhrystone/logs + - name: extracting_log shell: ( find {{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/dhrystone/logs) + - name: removing dhrystone_temp shell: rm -rf {{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp |