Class: Uttk::Strategies::Bootstrap

Inherits:
Strategy show all
Includes:
Concrete
Defined in:
lib/uttk/strategies/Bootstrap.rb

Overview

Run the bootstrap(.sh)? script or a classic autoreconf. This strategy is used by the Package strategy in case of the tested package does use the autotools or not.

Constant Summary collapse

BOOTSTRAP =
/bootstrap(\.sh)?/
AUTORECONF =
'autoreconf -fvi'

Instance Attribute Summary

Attributes inherited from Strategy

#status

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Strategy

#abort, #assert_cmd, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #mk_system_runner, #name=, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #skip_pass, #skip_wrt_rpath_and_rpath_exclude, #strategy, #strategy=, #symbols=, #symtbl, #symtbl=, #testify, #timeout=, to_form, #to_s, to_yaml_type, #wclass=

Constructor Details

This class inherits a constructor from Uttk::Strategies::Strategy

Class Method Details

.have_bootstrap?(dir = Pathname.new('.')) ⇒ Boolean

Returns:

  • (Boolean)


71
72
73
74
# File 'lib/uttk/strategies/Bootstrap.rb', line 71

def self.have_bootstrap? ( dir=Pathname.new('.') )
  res = dir.entries.find { |ent| ent.to_s =~ BOOTSTRAP }
  (res.nil?) ? nil : dir + res
end

Instance Method Details

#dir=(dir) ⇒ Object



66
67
68
# File 'lib/uttk/strategies/Bootstrap.rb', line 66

def dir= ( dir )
  @dir = Pathname.new(dir)
end