Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9FD3017D16 for ; Tue, 17 Nov 2015 13:04:00 +0000 (UTC) Received: (qmail 10553 invoked by uid 500); 17 Nov 2015 13:04:00 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 10496 invoked by uid 500); 17 Nov 2015 13:04:00 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 10486 invoked by uid 99); 17 Nov 2015 13:04:00 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 13:04:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A5863C5A14 for ; Tue, 17 Nov 2015 13:03:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wandisco.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xZwAAsOeIz2t for ; Tue, 17 Nov 2015 13:03:51 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 25C2220271 for ; Tue, 17 Nov 2015 13:03:51 +0000 (UTC) Received: by wmvv187 with SMTP id v187so226222793wmv.1 for ; Tue, 17 Nov 2015 05:03:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wandisco.com; s=gapps; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=bT8Druvy1MYhZpvxKfJ+WU3NStIK5OJgDYtVf2RgG2M=; b=G6lNU3UiU6xuzfrwptcO5aC0b356pW/9ix6JYY90qC0+sMam7UKNXFhU6LMALd3bFm E38RflsKhxkyHjbR7DcTEnx05bLrD+8AR7tT1I/I4WxC0CFao7CGBr/bNWt2Tjhk1uh6 klVTTw/TtuY7QdUYxNTsAPAWhdf1uq49tbOuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=bT8Druvy1MYhZpvxKfJ+WU3NStIK5OJgDYtVf2RgG2M=; b=gj+sQK9+9Cf7eItsHC28unMOck0qWj/ZKlXjuESg9Ps1HRzgwAd2GvzBpe7vfNYLV2 gHdqcyJrHS75RuW8AMs+tZeRtTLd2NOjPn3vOzJeMxPx1tWiQWoHDNruTF84WCquFpsy kmnKcPKGDfutoF7wLRw2hJHcHWICsjsZxNClactgjcMecCE93lXSE5o0YXD098CCX/Uk AsvR6rFj/arNiyDhCdN0SJ8QtMyAGuAglW6refqKZKFchsFod1ZHnPKfI55otqqUz0lL eqqVV4CiXQawj44XmyVZRFth2GvYgPdWk5fJdDv8u/xRH1UGuASKHFLmofuahmUhc6t9 ULIw== X-Gm-Message-State: ALoCoQnhKA0FS0ZoXxEEoO2uA11gukHpcizar5DOjn0gcZbAiMEqImqoGK/OJHFYDX5T3elgTvFv X-Received: by 10.28.6.142 with SMTP id 136mr2754665wmg.9.1447765430754; Tue, 17 Nov 2015 05:03:50 -0800 (PST) Received: from localhost (cpc81211-farn9-2-0-cust890.6-2.cable.virginm.net. [86.22.207.123]) by smtp.gmail.com with ESMTPSA id 186sm5323577wmv.9.2015.11.17.05.03.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2015 05:03:49 -0800 (PST) From: Philip Martin To: James McCoy Cc: Subversion devel mailing list Subject: Re: [PATCH] Convert Ruby tests from test-unit to minitest References: <1446694782-26637-1-git-send-email-jamessan@debian.org> <87bnb8wusk.fsf@wandisco.com> <20151108030937.GC8248@freya.jamessan.com> <20151109051551.GC13855@freya.jamessan.com> <20151117020829.GE13304@freya.jamessan.com> Date: Tue, 17 Nov 2015 13:03:49 +0000 In-Reply-To: <20151117020829.GE13304@freya.jamessan.com> (James McCoy's message of "Mon, 16 Nov 2015 21:08:30 -0500") Message-ID: <87h9kkydze.fsf@wandisco.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain James McCoy writes: > On Mon, Nov 09, 2015 at 12:15:51AM -0500, James McCoy wrote: >> On Sat, Nov 07, 2015 at 10:09:37PM -0500, James McCoy wrote: >> > The attached patch, however, at least gets the test suite working with >> > the test-unit gem, which is a pre-requisite for testing against Ruby >> > 2.2. >> >> Updated to fix a typo in Makefile.in. > > Ping? Doesn't work on my Debian/stable box if I have the ruby-minitest package installed. I think check_rb() is failing with: /usr/lib/ruby/2.1.0/test/unit.rb:676:in `': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError) If I don't have ruby-minitest installed then the tests work. It appears that ruby comes with minitest 4.7.5 and that works, but ruby-mintest installs 5.4.2 and that fails. Full error: $ make check-swig-rb if [ "LD_LIBRARY_PATH" = "DYLD_LIBRARY_PATH" ]; then for d in /home/pm/sw/subversion/obj/subversion/bindings/swig/ruby/libsvn_swig_ruby /home/pm/sw/subversion/obj/subversion/bindings/swig/ruby/../../../libsvn_*; do if [ -n "$DYLD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$d/.libs"; else LD_LIBRARY_PATH="$d/.libs"; fi; done; export LD_LIBRARY_PATH; fi; \ cd /home/pm/sw/subversion/obj/subversion/bindings/swig/ruby; \ check_rb() { \ /usr/bin/ruby -I /home/pm/sw/subversion/obj/../src/subversion/bindings/swig/ruby /home/pm/sw/subversion/obj/../src/subversion/bindings/swig/ruby/test/run-test.rb "$@"; \ }; \ if check_rb --help 2>&1 | grep -q -- --collector; then \ check_rb --collector=dir --verbose=normal; \ elif [ "2" -eq 1 -a "1" -lt 9 ] ; then \ check_rb --verbose=normal; \ else \ check_rb; \ fi Warning: you should require 'minitest/autorun' instead. Warning: or add 'gem "minitest"' before 'require "minitest/autorun"' From: /usr/lib/ruby/2.1.0/test/unit.rb:1:in `' /home/pm/sw/subversion/obj/../src/subversion/bindings/swig/ruby/test/run-test.rb:22:in `
' MiniTest::Unit::TestCase is now Minitest::Test. From /usr/lib/ruby/2.1.0/test/unit/testcase.rb:8:in `' /usr/lib/ruby/2.1.0/test/unit.rb:676:in `': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError) from /usr/lib/ruby/2.1.0/test/unit.rb:261:in `' from /usr/lib/ruby/2.1.0/test/unit.rb:15:in `' from /usr/lib/ruby/2.1.0/test/unit.rb:7:in `' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/pm/sw/subversion/obj/../src/subversion/bindings/swig/ruby/test/run-test.rb:22:in `
' Makefile:922: recipe for target 'check-swig-rb' failed make: *** [check-swig-rb] Error 1 -- Philip Martin WANdisco