blob: 21465c3609b4fb049619113a29d62774df6768e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Naive way of looking into platforms, please include others like FreeBSD?
Given %r{^I'm running a POSIX operating system$} do
unless RUBY_PLATFORM =~ /linux|darwin/ then
raise Cucumber::Pending.new("You need a POSIX operating system, no cheating ;-)")
end
end
Given %r{^I've installed cross compile toolchain$} do
compiler = 'i586-mingw32msvc-gcc'
found = false
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
next unless File.exist?(File.join(path, compiler))
found = true
end
raise "Cannot locate '#{compiler}' in the PATH." unless found
end
Then /^binaries for platform '(.*)' get generated$/ do |platform|
ext_for_platform = Dir.glob("tmp/#{platform}/**/*.#{RbConfig::CONFIG['DLEXT']}")
ext_for_platform.should_not be_empty
end
|