Class: BuildOutputTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- BuildOutputTest
- Defined in:
- lib/xcode_builder/build_output_parser.rb
Instance Method Summary collapse
- #test_parses_output_with_quoted_build_path ⇒ Object
- #test_parses_output_with_unquoted_build_path ⇒ Object
Instance Method Details
#test_parses_output_with_quoted_build_path ⇒ Object
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_path ⇒ Object
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 |