Class: BuildOutputTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/xcode_builder/build_output_parser.rb

Instance Method Summary collapse

Instance Method Details

#test_parses_output_with_quoted_build_pathObject



43
44
45
46
47
48
49
50
51
52
# File 'lib/xcode_builder/build_output_parser.rb', line 43

def test_parses_output_with_quoted_build_path
  bop = BetaBuilder::BuildOutputParser.new(<<eos)
Validate \"/Users/john smith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app\"
  cd /Users/user/app/ios
  setenv PATH \"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin\"
  setenv PRODUCT_TYPE com.apple.product-type.application
  /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/user/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app
eos
  assert_equal "/Users/john smith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/", bop.build_output_dir
end

#test_parses_output_with_unquoted_build_pathObject



32
33
34
35
36
37
38
39
40
41
# File 'lib/xcode_builder/build_output_parser.rb', line 32

def test_parses_output_with_unquoted_build_path
bop = BetaBuilder::BuildOutputParser.new(<<eos)
Validate /Users/johnsmith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app
  cd /Users/user/app/ios
  setenv PATH \"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin\"
  setenv PRODUCT_TYPE com.apple.product-type.application
  /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/user/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/Distribution-iphoneos/Application.app
eos
  assert_equal "/Users/johnsmith/Library/Developer/Xcode/DerivedData/Application-hegpgdbpjylesafhkxnsymrzjavl/Build/Products/", bop.build_output_dir
end