unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: Running the tests - on FreeBSD
Date: Mon, 9 Nov 2009 10:27:04 -0800	[thread overview]
Message-ID: <20091109182704.GB816@dcvr.yhbt.net> (raw)
In-Reply-To: <B8E84A26-BBF3-4046-814D-FFFAC750DAD5@berlin.ccc.de>

John-Paul Bader <hukl@berlin.ccc.de> wrote:
> Hi,
>
> I just read that the FreeBSD support was improved which is great news  
> for me as I am deploying almost exclusively on unicorn and made already 
> good experiences with it on 7.2
>
> Now I'd love to run the tests by myself but somehow fail to do so.
>
> I cloned the git repo and adjusted my local.mk, then i ran make test in 
> the unicorn directory but I'm just getting a "`test' is up to date."
>
> Is there something obvious missing or is the process different on  
> FreeBSD.

Hi John,

You need GNU make, which should be gmake on FreeBSD systems.  I just
pushed this out:

>From d5908cae3da3b2fac66407ed1b34fb8e3f6551bb Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson@yhbt.net>
Date: Mon, 9 Nov 2009 10:20:25 -0800
Subject: [PATCH] HACKING: update with "gmake" in examples

Most GNU users already know their "make" is GNU make but it may
not be obvious to non-GNU users.
---
 HACKING |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/HACKING b/HACKING
index 08aa76d..119b6b7 100644
--- a/HACKING
+++ b/HACKING
@@ -16,6 +16,9 @@ Tests are good, but slow tests make development slow, so we make tests
 faster (in parallel) with GNU make (instead of Rake) and avoiding
 Rubygems.
 
+Users of GNU-based systems (such as GNU/Linux) usually have GNU make installed
+as "make" instead of "gmake".
+
 Since we don't load RubyGems by default, loading Rack properly requires
 setting up RUBYLIB to point to where Rack is located.  Not loading
 Rubygems drastically lowers the time to run the full test suite.  You
@@ -25,15 +28,15 @@ file is provided for reference.
 
 Running the entire test suite with 4 tests in parallel:
 
-  make -j4 test
+  gmake -j4 test
 
 Running just one unit test:
 
-  make test/unit/test_http_parser.rb
+  gmake test/unit/test_http_parser.rb
 
 Running just one test case in a unit test:
 
-  make test/unit/test_http_parser.rb--test_parse_simple.n
+  gmake test/unit/test_http_parser.rb--test_parse_simple.n
 
 === HttpServer
 
@@ -103,11 +106,11 @@ It is easy to install the contents of your git working directory:
 
 Via RubyGems (RubyGems 1.3.5+ recommended for prerelease versions):
 
-  make install-gem
+  gmake install-gem
 
 Without RubyGems (via setup.rb):
 
-  make install
+  gmake install
 
 It is not at all recommended to mix a RubyGems installation with an
 installation done without RubyGems, however.
-- 
Eric Wong

      reply	other threads:[~2009-11-09 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 16:11 Running the tests - on FreeBSD John-Paul Bader
2009-11-09 18:27 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091109182704.GB816@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).