summaryrefslogtreecommitdiffstats
path: root/benchmarks/playbooks/whetstone.yaml
blob: 497797ff80ae870851420e88daffb42a74b1ea87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
 - hosts: demo1

   tasks:
    - name: cleaning
      shell: rm -rf /root/tempT
    - name: cleaning previous results
      file: path=/root/results state=absent
    - name: Installing UnixBench dependencies
      shell: yum install git gcc patch  perl-Time-HiRes -y
    - name: Clone unixbench
      shell: git clone https://github.com/kdlucas/byte-unixbench.git /root/tempT
    - name: make
      shell: make --directory /root/tempT/UnixBench/
    - name: downloading_patch
      shell: cd /root/tempT/UnixBench/ && wget https://www.dropbox.com/s/11z85gfu0trkhus/fix-limitation.patch
    - name: applying_patch
      shell: cd /root/tempT/UnixBench/ &&  patch Run fix-limitation.patch
    - name: Run whetstone
      shell: cd /root/tempT/UnixBench/&&./Run -v whetstone
    - name: making directory
      file: path=/root/results state=directory
    - name: copying result to temp directory
      shell: cp -r /root/tempT/UnixBench/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}}/whetstone
      with_items: files_to_copy.stdout_lines