title: RISCV testing emulator
body: <p>When I'm trying to run riscv emulator asm tests I faced with below error:</p>
  
  <pre><code>./emulator-DefaultCPPConfig +dramsim +max-cycles=100000000 +verbose +loadmem=output/rv64ui-p-amoand_d.hex none 2&gt; output/rv64ui-p-amoand_d.out &amp;&amp; [ $PIPESTATUS -eq 0 ]
  /bin/sh: 1: [: -eq: unexpected operator
  make: *** [output/rv64ui-p-amoand_d.out] Error 2
  </code></pre>
  
  <p>I followed your instruction in your <a href="https://github.com/ucb-bar/rocket-chip#what" rel="nofollow">git</a>. It can build emulator without any error, but problem happens when it's trying to run tests.</p>
  
  <p>I added <code>bash</code> behind of the command in the makefile and the first error solved but when I did that I got a new error:</p>
  
  <pre><code>bash ./emulator-DefaultCPPConfig +dramsim +max-cycles=100000000 +verbose +loadmem=output/rv64ui-p-amoswap_d.hex none 2&gt; output/rv64ui-p-amoswap_d.out &amp;&amp; [ $PIPESTATUS -eq 0 ]
  make: *** [output/rv64ui-p-amoswap_d.out] Error 126
  </code></pre>