[yast-commit] r66197 - in /trunk/ruby-bindings/tests/ruby: module-arch.rb modules/ modules/Arch.ybc modules/Arch.ycp ycp_import.rb ycp_iterators.rb
Author: mvidner Date: Mon Oct 3 17:23:17 2011 New Revision: 66197 URL: http://svn.opensuse.org/viewcvs/yast?rev=66197&view=rev Log: Added a mock Arch not to buldrequire yast2.rpm for tests ybc file included on purpose in hope of simplifying things Added: trunk/ruby-bindings/tests/ruby/modules/ trunk/ruby-bindings/tests/ruby/modules/Arch.ybc trunk/ruby-bindings/tests/ruby/modules/Arch.ycp (with props) Modified: trunk/ruby-bindings/tests/ruby/module-arch.rb trunk/ruby-bindings/tests/ruby/ycp_import.rb trunk/ruby-bindings/tests/ruby/ycp_iterators.rb Modified: trunk/ruby-bindings/tests/ruby/module-arch.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ruby/module-arch.rb?rev=66197&r1=66196&r2=66197&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ruby/module-arch.rb (original) +++ trunk/ruby-bindings/tests/ruby/module-arch.rb Mon Oct 3 17:23:17 2011 @@ -4,6 +4,7 @@ $:.unshift "../../build/src/ruby" # ycpx.so $:.unshift "../../src/ruby" # ycp.rb +ENV["Y2DIR"] = File.dirname(__FILE__) require 'test/unit' Added: trunk/ruby-bindings/tests/ruby/modules/Arch.ybc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ruby/modules/Arch.ybc?rev=66197&view=auto ============================================================================== Files trunk/ruby-bindings/tests/ruby/modules/Arch.ybc (added) and trunk/ruby-bindings/tests/ruby/modules/Arch.ybc Mon Oct 3 17:23:17 2011 differ Added: trunk/ruby-bindings/tests/ruby/modules/Arch.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ruby/modules/Arch.ycp?rev=66197&view=auto ============================================================================== --- trunk/ruby-bindings/tests/ruby/modules/Arch.ycp (added) +++ trunk/ruby-bindings/tests/ruby/modules/Arch.ycp Mon Oct 3 17:23:17 2011 @@ -0,0 +1,14 @@ +// mock Arch +{ + module "Arch"; + + global boolean sparc32() { + return false; + } + global boolean is_xen() { + return false; + } + global string arch_short() { + return "ZX Spectrum"; + } +} Modified: trunk/ruby-bindings/tests/ruby/ycp_import.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ruby/ycp_import.rb?rev=66197&r1=66196&r2=66197&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ruby/ycp_import.rb (original) +++ trunk/ruby-bindings/tests/ruby/ycp_import.rb Mon Oct 3 17:23:17 2011 @@ -4,6 +4,7 @@ $:.unshift "../../build/src/ruby" $:.unshift "../../src/ruby" +ENV["Y2DIR"] = File.dirname(__FILE__) require 'test/unit' require 'ycp' Modified: trunk/ruby-bindings/tests/ruby/ycp_iterators.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ruby/ycp_iterators.rb?rev=66197&r1=66196&r2=66197&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ruby/ycp_iterators.rb (original) +++ trunk/ruby-bindings/tests/ruby/ycp_iterators.rb Mon Oct 3 17:23:17 2011 @@ -6,6 +6,7 @@ $:.unshift "../../build/src/ruby" $:.unshift "../../src/ruby" +ENV["Y2DIR"] = File.dirname(__FILE__) require 'test/unit' require 'ycp' -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn2.opensuse.org