<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    On 02/20/2012 05:08 PM, José Valim wrote:
    <blockquote
cite="mid:CAGnRm4K5Q3S_tCKdmVbDjn=1Q4XLjPbLvxR2vr6UjVtDSQyrPQ@mail.gmail.com"
      type="cite">Hello everyone,
      <div><br>
      </div>
      <div>In order to contribute to Erlang, I was trying to run tests.</div>
      <div>The first issue I found was that the wiki page about Running
        tests was out of date:</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
          href="https://github.com/erlang/otp/wiki/Running-tests">https://github.com/erlang/otp/wiki/Running-tests</a></div>
      <div><br>
      </div>
      <div>With the help of #erlounge folks, I was able to update the
        command to use the new ./otp_build:</div>
      <div><br>
      </div>
      <blockquote style="margin: 0pt 0pt 0pt 40px; border: medium none;
        padding: 0px;">
        <div><font face="'courier new', monospace">ERL_LIBS=`pwd`/lib;
            ERL_TOP=`pwd`; ./otp_build all -a && ./otp_build
            tests -a</font></div>
      </blockquote>
    </blockquote>
    <br>
    The ERL_LIBS should not be needed, and the -a for ./otp_build tests
    is not needed <br>
    <br>
    <br>
    <blockquote
cite="mid:CAGnRm4K5Q3S_tCKdmVbDjn=1Q4XLjPbLvxR2vr6UjVtDSQyrPQ@mail.gmail.com"
      type="cite">
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
      </blockquote>
      <div>
        <div><br>
        </div>
        <div>I've updated the wiki page to use this new command. Could
          you please validate the command above is the correct one?</div>
        <div><br>
        </div>
        <div>In any case, after running the command above, I moved
          further to run tests with:</div>
        <div><br>
        </div>
      </div>
      <blockquote style="margin: 0pt 0pt 0pt 40px; border: medium none;
        padding: 0px;">
        <div>
          <div><font face="'courier new', monospace">cd
              release/tests/test_server</font></div>
        </div>
        <div>
          <div><font face="'courier new', monospace">$ERL_TOP/bin/ct_run
              -suite ../compiler_test/andor_SUITE -case t_orelse</font></div>
        </div>
      </blockquote>
    </blockquote>
    <br>
    <blockquote
cite="mid:CAGnRm4K5Q3S_tCKdmVbDjn=1Q4XLjPbLvxR2vr6UjVtDSQyrPQ@mail.gmail.com"
      type="cite">
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
        <div>
        </div>
      </blockquote>
      <div>
        <div><br>
        </div>
        <div>But then I got the following failure:</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true" href="http://pastie.org/3421228">http://pastie.org/3421228</a></div>
      </div>
    </blockquote>
    Looks like you have not run ts:install(). check the wiki for details
    :D<br>
    <blockquote
cite="mid:CAGnRm4K5Q3S_tCKdmVbDjn=1Q4XLjPbLvxR2vr6UjVtDSQyrPQ@mail.gmail.com"
      type="cite">
      <div>
        <div><br>
        </div>
        <div>I was ultimately able to run tests related to my patch, but
          it would be nice if we could make the instructions in the wiki
          page work out of the box for other developers. I am running on
          Mac OS X, Snow Leopard.</div>
      </div>
    </blockquote>
    The use of "./otp_build tests" ,  instead of "make release_tests"
    should facilitate this, as it makes sure we use gmake/make<br>
    <blockquote
cite="mid:CAGnRm4K5Q3S_tCKdmVbDjn=1Q4XLjPbLvxR2vr6UjVtDSQyrPQ@mail.gmail.com"
      type="cite">
      <div>
        <div><br>
        </div>
        <span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span
style="border-collapse:separate;font-family:arial;font-weight:normal">
              <div><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José
                    Valim</b></span></div>
              <div><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">
                  <div><span
                      style="font-family:verdana,sans-serif;font-size:x-small"><a
                        moz-do-not-send="true"
                        href="http://www.plataformatec.com.br/"
                        style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div>
                  <div><span
                      style="font-family:verdana,sans-serif;font-size:x-small">Founder
                      and Lead Developer</span></div>
                </span></div>
            </span></b></span><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-patches mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-patches@erlang.org">erlang-patches@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-patches">http://erlang.org/mailman/listinfo/erlang-patches</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
/Henrik Nord Erlang/OTP</pre>
  </body>
</html>