From 2c2befb1caa47fe3bf2e6d31dd0733956d178c87 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 7 Mar 2012 10:14:17 +0000 Subject: HACKING: add instructions for running tests Unlike most Rubyists, I prefer GNU make to Rake. --- HACKING | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HACKING b/HACKING index 004bcbb..5d485be 100644 --- a/HACKING +++ b/HACKING @@ -61,3 +61,18 @@ Without RubyGems (via setup.rb): It is not at all recommended to mix a RubyGems installation with an installation done without RubyGems, however. + +=== Tests + +We use GNU make to run tests in parallel. test/unit/parallel didn't +exist for old versions of Ruby before 1.9.3. Users of GNU-based systems +(such as GNU/Linux) usually have GNU make installed as "make" instead of +"gmake". + +Running the entire test suite with 4 tests in parallel: + + gmake -j4 test + +Running just one unit test: + + gmake test/test_poll.rb -- cgit v1.2.3-24-ge0c7