xcpretty 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +6 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +15 -6
- data/CONTRIBUTING.md +4 -0
- data/README.md +16 -0
- data/Rakefile +1 -1
- data/assets/report.html.erb +1 -1
- data/bin/xcpretty +1 -1
- data/features/fixtures/xcodebuild.log +2989 -2989
- data/features/simple_format.feature +10 -0
- data/features/steps/formatting_steps.rb +27 -2
- data/features/steps/json_steps.rb +4 -5
- data/features/support/env.rb +2 -1
- data/features/test_format.feature +10 -0
- data/lib/xcpretty/formatters/formatter.rb +33 -8
- data/lib/xcpretty/formatters/rspec.rb +5 -0
- data/lib/xcpretty/formatters/simple.rb +22 -0
- data/lib/xcpretty/parser.rb +102 -18
- data/lib/xcpretty/reporters/json_compilation_database.rb +21 -13
- data/lib/xcpretty/snippet.rb +9 -3
- data/lib/xcpretty/syntax.rb +32 -8
- data/lib/xcpretty/version.rb +1 -1
- data/spec/fixtures/NSStringTests.m +1 -1
- data/spec/fixtures/constants.rb +35 -8
- data/spec/xcpretty/formatters/formatter_spec.rb +23 -7
- data/spec/xcpretty/formatters/simple_spec.rb +20 -0
- data/spec/xcpretty/parser_spec.rb +76 -7
- data/spec/xcpretty/snippet_spec.rb +12 -5
- data/spec/xcpretty/syntax_spec.rb +37 -9
- data/vendor/json_pure/parser.rb +1 -1
- data/xcpretty.gemspec +2 -2
- metadata +5 -4
@@ -2,7 +2,7 @@ module XCPretty
|
|
2
2
|
class JSONCompilationDatabase
|
3
3
|
|
4
4
|
include XCPretty::FormatMethods
|
5
|
-
|
5
|
+
FILE_PATH = 'build/reports/compilation_db.json'
|
6
6
|
|
7
7
|
def load_dependencies
|
8
8
|
unless @@loaded ||= false
|
@@ -12,7 +12,7 @@ module XCPretty
|
|
12
12
|
begin
|
13
13
|
require 'json'
|
14
14
|
rescue LoadError
|
15
|
-
require File.expand_path(File.join(File.dirname(__FILE__),'../../../vendor/json_pure/generator'))
|
15
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '../../../vendor/json_pure/generator'))
|
16
16
|
end
|
17
17
|
end
|
18
18
|
@@loaded = true
|
@@ -21,36 +21,44 @@ module XCPretty
|
|
21
21
|
|
22
22
|
def initialize(options)
|
23
23
|
load_dependencies
|
24
|
-
@
|
25
|
-
@parser
|
26
|
-
@compilation_units
|
27
|
-
@
|
28
|
-
@
|
24
|
+
@file_path = options[:path] || FILE_PATH
|
25
|
+
@parser = Parser.new(self)
|
26
|
+
@compilation_units = []
|
27
|
+
@pch_path = nil
|
28
|
+
@current_file = nil
|
29
|
+
@current_path = nil
|
29
30
|
end
|
30
31
|
|
31
32
|
def handle(line)
|
32
33
|
@parser.parse(line)
|
33
34
|
end
|
34
35
|
|
36
|
+
def format_process_pch_command(file_path)
|
37
|
+
@pch_path = file_path
|
38
|
+
end
|
39
|
+
|
35
40
|
def format_compile(file_name, file_path)
|
36
41
|
@current_file = file_name
|
37
|
-
@current_path =
|
42
|
+
@current_path = file_path
|
38
43
|
end
|
39
44
|
|
40
|
-
def format_compile_command(compiler_command)
|
41
|
-
|
42
|
-
|
45
|
+
def format_compile_command(compiler_command, file_path)
|
46
|
+
directory = file_path.gsub("#{@current_path}", '').gsub(/\/$/, '')
|
47
|
+
directory = '/' if directory.empty?
|
48
|
+
@compilation_units << {:command => compiler_command.gsub(/(\-include)\s.*\.pch/, "\\1 #{@pch_path}"),
|
49
|
+
:file => @current_path,
|
50
|
+
:directory => directory}
|
43
51
|
end
|
44
52
|
|
45
53
|
def finish
|
46
|
-
FileUtils.mkdir_p(File.dirname(@
|
54
|
+
FileUtils.mkdir_p(File.dirname(@file_path))
|
47
55
|
write_report
|
48
56
|
end
|
49
57
|
|
50
58
|
private
|
51
59
|
|
52
60
|
def write_report
|
53
|
-
File.open(@
|
61
|
+
File.open(@file_path, 'w') do |f|
|
54
62
|
f.write(@compilation_units.to_json)
|
55
63
|
end
|
56
64
|
end
|
data/lib/xcpretty/snippet.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
module XCPretty
|
2
2
|
class Snippet
|
3
|
+
attr_reader :contents, :file_path
|
4
|
+
|
5
|
+
def initialize(contents = '', file_path = '')
|
6
|
+
@contents = contents
|
7
|
+
@file_path = file_path
|
8
|
+
end
|
3
9
|
|
4
10
|
def self.from_filepath(filepath)
|
5
11
|
path, line = filepath.split(':')
|
@@ -8,16 +14,16 @@ module XCPretty
|
|
8
14
|
text = read_snippet(file, line)
|
9
15
|
|
10
16
|
file.close
|
11
|
-
text
|
17
|
+
new(text, filepath)
|
12
18
|
rescue
|
13
|
-
''
|
19
|
+
new('', filepath)
|
14
20
|
end
|
15
21
|
|
16
22
|
|
17
23
|
private
|
18
24
|
|
19
25
|
def self.read_snippet(file, around_line)
|
20
|
-
text =
|
26
|
+
text = ''
|
21
27
|
starting_position = around_line.to_i - 2
|
22
28
|
starting_position.times { file.gets }
|
23
29
|
3.times { text += readline(file) }
|
data/lib/xcpretty/syntax.rb
CHANGED
@@ -1,20 +1,44 @@
|
|
1
|
+
require 'xcpretty/snippet'
|
2
|
+
|
1
3
|
module XCPretty
|
2
4
|
class Syntax
|
3
|
-
|
4
|
-
|
5
|
-
|
5
|
+
def self.register_filetype(type, extensions)
|
6
|
+
@filetypes ||= {}
|
7
|
+
extensions.each { |ext| @filetypes[ext] = type }
|
6
8
|
end
|
7
9
|
|
10
|
+
register_filetype 'c++', ['.cpp', '.hpp', '.c++', '.cxx', '.cc']
|
11
|
+
register_filetype 'objc', ['.m', '.h']
|
12
|
+
register_filetype 'objc++', ['.mm', '.hh']
|
13
|
+
register_filetype 'swift', ['.swift']
|
14
|
+
register_filetype 'dylan', ['.dyl', '.dylan']
|
15
|
+
register_filetype 'ruby', ['.ruby', '.rb']
|
16
|
+
|
17
|
+
def self.highlight(snippet, options = '')
|
18
|
+
if Pygments.available?
|
19
|
+
language = file_language(File.basename(snippet.file_path))
|
20
|
+
Pygments.pygmentize(snippet.contents, language, options)
|
21
|
+
else
|
22
|
+
snippet.contents
|
23
|
+
end
|
24
|
+
end
|
8
25
|
|
9
26
|
private
|
10
27
|
|
11
|
-
def self.
|
12
|
-
|
13
|
-
@
|
28
|
+
def self.file_language(filename)
|
29
|
+
ext = File.extname(filename)
|
30
|
+
@filetypes[ext] || 'objc'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
class Pygments
|
35
|
+
def self.pygmentize(code, language, options)
|
36
|
+
`echo '#{code}' | pygmentize -f 256 -l #{language} #{options if options}`
|
14
37
|
end
|
15
38
|
|
16
|
-
def self.
|
17
|
-
|
39
|
+
def self.available?
|
40
|
+
@available = system('which pygmentize > /dev/null') if @available.nil?
|
41
|
+
@available
|
18
42
|
end
|
19
43
|
end
|
20
44
|
end
|
data/lib/xcpretty/version.rb
CHANGED
data/spec/fixtures/constants.rb
CHANGED
@@ -36,6 +36,7 @@ SAMPLE_SLOWISH_TEST = "Test Case '-[RACCommandSpec enabled_signal_should_send_YE
|
|
36
36
|
SAMPLE_SLOW_TEST = "Test Case '-[RACCommandSpec enabled_signal_should_send_YES_while_executing_is_YES_and_allowsConcurrentExecution_is_YES]' passed (0.101 seconds)."
|
37
37
|
SAMPLE_KIWI_TEST = "Test Case '-[MappingsTests Mappings_SupportsCreatingAParentObjectUsingJustIDFromTheServer]' passed (0.004 seconds)."
|
38
38
|
SAMPLE_PENDING_KIWI_TEST = "Test Case '-[TAPIConversationSpec TAPIConversation_createConversation_SendsAPOSTRequestToTheConversationsEndpointPENDING]' passed (0.001 seconds)."
|
39
|
+
SAMPLE_MEASURING_TEST = "<unknown>:0: Test Case '-[SecEncodeTransformTests.SecEncodeTransformTests test_RFC4648_Decode_UsingBase32]' measured [Time, seconds] average: 0.013, relative standard deviation: 26.773%, values: [0.023838, 0.012034, 0.013512, 0.011022, 0.011203, 0.012814, 0.011131, 0.012740, 0.013646, 0.012145], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100"
|
39
40
|
SAMPLE_COMPILE = %Q(
|
40
41
|
CompileC /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Objects-normal/i386/NSMutableArray+ObjectiveSugar.o /Users/musalj/code/OSS/ObjectiveSugar/Classes/NSMutableArray+ObjectiveSugar.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
|
41
42
|
cd /Users/musalj/code/OSS/ObjectiveSugar/Example/Pods
|
@@ -43,6 +44,13 @@ CompileC /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhq
|
|
43
44
|
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/musalj/code/go/bin:/Users/musalj/.rbenv/shims:/Users/musalj/.rbenv/bin:/usr/local/share/npm/bin:/usr/local/bin:/Library/Python/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
|
44
45
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=178 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -fmodules-cache-path=/Users/musalj/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Pods-ObjectiveSugar-generated-files.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Pods-ObjectiveSugar-own-target-headers.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Pods-ObjectiveSugar-all-target-headers.hmap -iquote /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Pods-ObjectiveSugar-project-headers.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Products/Debug-iphonesimulator/include -I/Users/musalj/code/OSS/ObjectiveSugar/Example/Pods/BuildHeaders -I/Users/musalj/code/OSS/ObjectiveSugar/Example/Pods/BuildHeaders/ObjectiveSugar -I/Users/musalj/code/OSS/ObjectiveSugar/Example/Pods/Headers -I/Users/musalj/code/OSS/ObjectiveSugar/Example/Pods/Headers/Kiwi -I/Users/musalj/code/OSS/ObjectiveSugar/Example/Pods/Headers/ObjectiveSugar -I/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/DerivedSources/i386 -I/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/DerivedSources -F/Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Products/Debug-iphonesimulator -include /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/PrecompiledHeaders/Pods-ObjectiveSugar-prefix-fbehxvikzshezadcwuseekuhbnus/Pods-ObjectiveSugar-prefix.pch -MMD -MT dependencies -MF /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Objects-normal/i386/NSMutableArray+ObjectiveSugar.d --serialize-diagnostics /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Objects-normal/i386/NSMutableArray+ObjectiveSugar.dia -c /Users/musalj/code/OSS/ObjectiveSugar/Classes/NSMutableArray+ObjectiveSugar.m -o /Users/musalj/Library/Developer/Xcode/DerivedData/ObjectiveSugar-ayzdhqmmwtqgysdpznmovjlupqjy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ObjectiveSugar.build/Objects-normal/i386/NSMutableArray+ObjectiveSugar.o
|
45
46
|
)
|
47
|
+
SAMPLE_COMPILE_SPACE_IN_PATH = %Q(
|
48
|
+
CompileC /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/Objects-normal/i386/SASellableItem.o SACore/App/Models/Core\\ Data/human/SASellableItem.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
|
49
|
+
cd /Users/supermarin/Documents/source/ios-sample-newgen/libs/SACore
|
50
|
+
setenv LANG en_US.US-ASCII
|
51
|
+
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/supermarin/.rvm/bin"
|
52
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=204 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wno-bool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DDEBUG=1 -DBUILD_USER=@\"supermarin\" -DNI_DYNAMIC_VIEWS -DALLOW_ENV_SWITCH -DSA_CORE_BUNDLE_NAME=@\"SACore.bundle\" -DNI_DEBUG_CSS_SELECTOR_TARGET=setAccessibilityValue -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -fprofile-arcs -ftest-coverage -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/SACore-generated-files.hmap -I/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/SACore-own-target-headers.hmap -I/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/SACore-all-target-headers.hmap -iquote /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/SACore-project-headers.hmap -I/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include/libxml2 -I../../contrib -I../../contrib/CardIO -I../../contrib/Crittercism -I../../contrib/Epson -I../../contrib/GCDAsyncSocket -I../../contrib/iOS_fpti_sdk -I../../contrib/JASidePanels -I../../contrib/JSONKit -I../../contrib/LibComponentLogging-Core -I../../contrib/LibComponentLogging-NSLogger -I../../contrib/MagicalRecord -I../../contrib/MongooseDaemon -I../../contrib/nimbus -I../../contrib/NSLogger -I../../contrib/objective-c-formatter -I../../contrib/SARiskComponent -I../../contrib/Star -I../../contrib/CardIO/CardIO -I../../contrib/Crittercism/Crittercism_v3_5_1 -I../../contrib/iOS_fpti_sdk/fpti_sample -I../../contrib/iOS_fpti_sdk/ios_fpti_sdk -I../../contrib/JASidePanels/JASidePanels -I../../contrib/MagicalRecord/Docs -I../../contrib/MagicalRecord/MagicalRecord -I../../contrib/MagicalRecord/Project\ Files -I../../contrib/MagicalRecord/Samples -I../../contrib/nimbus/docs -I../../contrib/nimbus/examples -I../../contrib/nimbus/scripts -I../../contrib/nimbus/src -I../../contrib/nimbus/templates -I../../contrib/nimbus/thirdparty -I../../contrib/NSLogger/Client\ Logger -I../../contrib/NSLogger/Desktop\ Viewer -I../../contrib/NSLogger/Docs -I../../contrib/NSLogger/iPad\ Viewer -I../../contrib/NSLogger/Screenshots -I../../contrib/SARiskComponent/SARiskComponent -I../../contrib/SARiskComponent/SARiskComponentTests -I../../contrib/Star/Distributables -I../../contrib/Star/Documents -I../../contrib/Star/Samples -I../../contrib/Crittercism/Crittercism_v3_5_1/CrittercismExampleApp -I../../contrib/Crittercism/Crittercism_v3_5_1/CrittercismSDK -I../../contrib/Crittercism/Crittercism_v3_5_1/Docs -I../../contrib/iOS_fpti_sdk/fpti_sample/fpti_sample -I../../contrib/iOS_fpti_sdk/ios_fpti_sdk/ios_fpti_sdk -I../../contrib/iOS_fpti_sdk/ios_fpti_sdk/ios_fpti_sdkTests -I../../contrib/JASidePanels/JASidePanels/Demo -I../../contrib/JASidePanels/JASidePanels/Source -I../../contrib/MagicalRecord/MagicalRecord/Categories -I../../contrib/MagicalRecord/MagicalRecord/Core -I../../contrib/MagicalRecord/Project\ Files/Library -I../../contrib/MagicalRecord/Project\ Files/Tests -I../../contrib/MagicalRecord/Samples/iOS -I../../contrib/MagicalRecord/Samples/Mac -I../../contrib/nimbus/docs/gfx -I../../contrib/nimbus/docs/js -I../../contrib/nimbus/docs/keynotes -I../../contrib/nimbus/examples/catalog -I../../contrib/nimbus/examples/css -I../../contrib/nimbus/examples/photos -I../../contrib/nimbus/scripts/ios -I../../contrib/nimbus/src/attributedlabel -I../../contrib/nimbus/src/badge -I../../contrib/nimbus/src/collections -I../../contrib/nimbus/src/core -I../../contrib/nimbus/src/css -I../../contrib/nimbus/src/interapp -I../../contrib/nimbus/src/launcher -I../../contrib/nimbus/src/models -I../../contrib/nimbus/src/networkcontrollers -I../../contrib/nimbus/src/networkimage -I../../contrib/nimbus/src/overview -I../../contrib/nimbus/src/pagingscrollview -I../../contrib/nimbus/src/photos -I../../contrib/nimbus/src/resources -I../../contrib/nimbus/src/textfield -I../../contrib/nimbus/src/webcontroller -I../../contrib/nimbus/templates/xcode3 -I../../contrib/nimbus/templates/xcode4 -I../../contrib/nimbus/thirdparty/AFNetworking -I../../contrib/nimbus/thirdparty/JSONKit -I../../contrib/NSLogger/Client\ Logger/Android -I../../contrib/NSLogger/Client\ Logger/iOS -I../../contrib/NSLogger/Desktop\ Viewer/Classes -I../../contrib/NSLogger/Desktop\ Viewer/Resources -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party -I../../contrib/NSLogger/iPad\ Viewer/Constants -I../../contrib/NSLogger/iPad\ Viewer/CoreDataModel -I../../contrib/NSLogger/iPad\ Viewer/DataStorage -I../../contrib/NSLogger/iPad\ Viewer/iPad\ Viewer -I../../contrib/NSLogger/iPad\ Viewer/Managers -I../../contrib/NSLogger/iPad\ Viewer/Model -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle -I../../contrib/NSLogger/iPad\ Viewer/Utilities -I../../contrib/NSLogger/iPad\ Viewer/Vendors -I../../contrib/NSLogger/iPad\ Viewer/ViewController -I../../contrib/NSLogger/iPad\ Viewer/Views\ &\ Cells -I../../contrib/Star/Samples/IOS_SDK -I../../contrib/Star/Samples/Resources-iPad -I../../contrib/Crittercism/Crittercism_v3_5_1/CrittercismExampleApp/CrittercismExampleApp -I../../contrib/MagicalRecord/MagicalRecord/Categories/DataImport -I../../contrib/MagicalRecord/MagicalRecord/Categories/NSManagedObject -I../../contrib/MagicalRecord/MagicalRecord/Categories/NSManagedObjectContext -I../../contrib/MagicalRecord/Project\ Files/Library/Support -I../../contrib/MagicalRecord/Project\ Files/Tests/Core -I../../contrib/MagicalRecord/Project\ Files/Tests/DataImport -I../../contrib/MagicalRecord/Project\ Files/Tests/Fixtures -I../../contrib/MagicalRecord/Project\ Files/Tests/Support -I../../contrib/MagicalRecord/Samples/iOS/Application -I../../contrib/MagicalRecord/Samples/iOS/Resources -I../../contrib/nimbus/examples/catalog/Catalog -I../../contrib/nimbus/examples/css/CSSDemo -I../../contrib/nimbus/examples/photos/NetworkPhotoAlbums -I../../contrib/nimbus/src/attributedlabel/src -I../../contrib/nimbus/src/attributedlabel/unittests -I../../contrib/nimbus/src/badge/src -I../../contrib/nimbus/src/badge/unittests -I../../contrib/nimbus/src/collections/src -I../../contrib/nimbus/src/core/examples -I../../contrib/nimbus/src/core/src -I../../contrib/nimbus/src/core/unittests -I../../contrib/nimbus/src/css/chameleon -I../../contrib/nimbus/src/css/grammar -I../../contrib/nimbus/src/css/src -I../../contrib/nimbus/src/css/unittests -I../../contrib/nimbus/src/interapp/src -I../../contrib/nimbus/src/interapp/unittests -I../../contrib/nimbus/src/launcher/src -I../../contrib/nimbus/src/launcher/unittests -I../../contrib/nimbus/src/models/examples -I../../contrib/nimbus/src/models/src -I../../contrib/nimbus/src/models/unittests -I../../contrib/nimbus/src/networkcontrollers/src -I../../contrib/nimbus/src/networkcontrollers/unittests -I../../contrib/nimbus/src/networkimage/src -I../../contrib/nimbus/src/networkimage/unittests -I../../contrib/nimbus/src/overview/resources -I../../contrib/nimbus/src/overview/src -I../../contrib/nimbus/src/overview/unittests -I../../contrib/nimbus/src/pagingscrollview/src -I../../contrib/nimbus/src/pagingscrollview/unittests -I../../contrib/nimbus/src/photos/resources -I../../contrib/nimbus/src/photos/src -I../../contrib/nimbus/src/photos/unittests -I../../contrib/nimbus/src/textfield/src -I../../contrib/nimbus/src/webcontroller/resources -I../../contrib/nimbus/src/webcontroller/src -I../../contrib/nimbus/src/webcontroller/unittests -I../../contrib/nimbus/templates/xcode3/projects -I../../contrib/nimbus/templates/xcode3/source -I../../contrib/nimbus/templates/xcode4/projects -I../../contrib/nimbus/thirdparty/AFNetworking/AFNetworking -I../../contrib/nimbus/thirdparty/AFNetworking/AFNetworking.xcworkspace -I../../contrib/nimbus/thirdparty/AFNetworking/Example -I../../contrib/NSLogger/Client\ Logger/Android/client-code -I../../contrib/NSLogger/Client\ Logger/Android/example -I../../contrib/NSLogger/Client\ Logger/iOS/iPhone\ Test\ App -I../../contrib/NSLogger/Client\ Logger/iOS/iPhone\ Test\ App\ (ARC) -I../../contrib/NSLogger/Client\ Logger/iOS/Mac\ Test\ App -I../../contrib/NSLogger/Desktop\ Viewer/Resources/Icon -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/BWToolkit -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/SSSelectableToolbar -I../../contrib/NSLogger/iPad\ Viewer/CoreDataModel/LoggerMessages.xcdatamodeld -I../../contrib/NSLogger/iPad\ Viewer/DataStorage/DataOperation -I../../contrib/NSLogger/iPad\ Viewer/Model/MessageFormatter -I../../contrib/NSLogger/iPad\ Viewer/Model/MessageSizeCalculator -I../../contrib/NSLogger/iPad\ Viewer/Model/NativeLogFormat -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/background -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/button -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/Certificate -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/fonts -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/Icon -I../../contrib/NSLogger/iPad\ Viewer/NSLoggerResource.bundle/Profiles -I../../contrib/NSLogger/iPad\ Viewer/Utilities/CoreData -I../../contrib/NSLogger/iPad\ Viewer/Utilities/Directory -I../../contrib/NSLogger/iPad\ Viewer/Utilities/ICloud -I../../contrib/NSLogger/iPad\ Viewer/Utilities/Macro -I../../contrib/NSLogger/iPad\ Viewer/Utilities/String -I../../contrib/NSLogger/iPad\ Viewer/Utilities/UIColor -I../../contrib/NSLogger/iPad\ Viewer/Vendors/KGNoise -I../../contrib/NSLogger/iPad\ Viewer/ViewController/BaseViewController -I../../contrib/NSLogger/iPad\ Viewer/ViewController/MessageViewController -I../../contrib/NSLogger/iPad\ Viewer/Views\ &\ Cells/MessageCell -I../../contrib/Star/Samples/IOS_SDK/Resources -I../../contrib/Star/Samples/Resources-iPad/IOS_SDK -I../../contrib/MagicalRecord/Project\ Files/Tests/Fixtures/TestModel -I../../contrib/MagicalRecord/Project\ Files/Tests/Fixtures/TestModel.xcdatamodeld -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor -I../../contrib/MagicalRecord/Samples/iOS/Application/Categories -I../../contrib/MagicalRecord/Samples/iOS/Application/Controllers -I../../contrib/MagicalRecord/Samples/iOS/Application/Delegate -I../../contrib/MagicalRecord/Samples/iOS/Application/Models -I../../contrib/MagicalRecord/Samples/iOS/Application/Support -I../../contrib/MagicalRecord/Samples/iOS/Application/Views -I../../contrib/MagicalRecord/Samples/iOS/Resources/images -I../../contrib/MagicalRecord/Samples/iOS/Resources/RecipeData -I../../contrib/nimbus/examples/css/CSSDemo/resources -I../../contrib/nimbus/examples/photos/NetworkPhotoAlbums/resources -I../../contrib/nimbus/examples/photos/NetworkPhotoAlbums/src -I../../contrib/nimbus/src/overview/resources/NimbusOverviewer.bundle -I../../contrib/nimbus/src/photos/resources/NimbusPhotos.bundle -I../../contrib/nimbus/src/webcontroller/resources/NimbusWebController.bundle -I../../contrib/nimbus/templates/xcode3/projects/Skeleton\ App -I../../contrib/nimbus/templates/xcode3/source/Nimbus\ Hacking -I../../contrib/nimbus/templates/xcode4/projects/Base.xctemplate -I../../contrib/nimbus/templates/xcode4/projects/Bundle\ Base.xctemplate -I../../contrib/nimbus/templates/xcode4/projects/Cocoa\ Touch\ Application.xctemplate -I../../contrib/nimbus/templates/xcode4/projects/iPhone\ Base.xctemplate -I../../contrib/nimbus/templates/xcode4/projects/Objective-C\ Application.xctemplate -I../../contrib/nimbus/templates/xcode4/projects/Skeleton\ App\ (Apache\ 2.0\ Licensed).xctemplate -I../../contrib/nimbus/thirdparty/AFNetworking/Example/Classes -I../../contrib/nimbus/thirdparty/AFNetworking/Example/Images -I../../contrib/NSLogger/Client\ Logger/Android/client-code/lib -I../../contrib/NSLogger/Client\ Logger/Android/client-code/src -I../../contrib/NSLogger/Client\ Logger/Android/example/com -I../../contrib/NSLogger/Client\ Logger/iOS/iPhone\ Test\ App/Classes -I../../contrib/NSLogger/Client\ Logger/iOS/iPhone\ Test\ App\ (ARC)/Classes -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/CrashReporter.framework.dSYM -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/HockeySDK.framework.dSYM -I../../contrib/NSLogger/iPad\ Viewer/CoreDataModel/LoggerMessages.xcdatamodeld/LoggerMessages.xcdatamodel -I../../contrib/NSLogger/iPad\ Viewer/ViewController/BaseViewController/KeyboardAddition -I../../contrib/MagicalRecord/Project\ Files/Tests/Fixtures/TestModel.xcdatamodeld/TestModel.xcdatamodel -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta -I../../contrib/MagicalRecord/Samples/iOS/Application/Models/entities -I../../contrib/MagicalRecord/Samples/iOS/Application/Models/generated -I../../contrib/MagicalRecord/Samples/iOS/Application/Models/Recipes.xcdatamodeld -I../../contrib/nimbus/examples/css/CSSDemo/resources/css -I../../contrib/nimbus/src/overview/resources/NimbusOverviewer.bundle/gfx -I../../contrib/nimbus/src/photos/resources/NimbusPhotos.bundle/gfx -I../../contrib/nimbus/src/webcontroller/resources/NimbusWebController.bundle/gfx -I../../contrib/nimbus/templates/xcode3/projects/Skeleton\ App/Skeleton\ App\ (Apache\ 2.0\ Licensed) -I../../contrib/nimbus/templates/xcode3/source/Nimbus\ Hacking/Objective-C\ Class -I../../contrib/nimbus/templates/xcode4/projects/Skeleton\ App\ (Apache\ 2.0\ Licensed).xctemplate/resources -I../../contrib/nimbus/templates/xcode4/projects/Skeleton\ App\ (Apache\ 2.0\ Licensed).xctemplate/src -I../../contrib/nimbus/thirdparty/AFNetworking/Example/Classes/Controllers -I../../contrib/nimbus/thirdparty/AFNetworking/Example/Classes/Models -I../../contrib/nimbus/thirdparty/AFNetworking/Example/Classes/Views -I../../contrib/NSLogger/Client\ Logger/Android/client-code/src/com -I../../contrib/NSLogger/Client\ Logger/Android/example/com/example -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/CrashReporter.framework.dSYM/Contents -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/HockeySDK.framework.dSYM/Contents -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/products -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/src -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/test -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/products -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/src -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/test -I../../contrib/MagicalRecord/Samples/iOS/Application/Models/Recipes.xcdatamodeld/Recipes\ 2.xcdatamodel -I../../contrib/MagicalRecord/Samples/iOS/Application/Models/Recipes.xcdatamodeld/Recipes.xcdatamodel -I../../contrib/nimbus/examples/css/CSSDemo/resources/css/root -I../../contrib/nimbus/templates/xcode3/projects/Skeleton\ App/Skeleton\ App\ (Apache\ 2.0\ Licensed)/resources -I../../contrib/nimbus/templates/xcode3/projects/Skeleton\ App/Skeleton\ App\ (Apache\ 2.0\ Licensed)/src -I../../contrib/nimbus/templates/xcode3/source/Nimbus\ Hacking/Objective-C\ Class/NSObject\ subclass.pbfiletemplate -I../../contrib/nimbus/templates/xcode3/source/Nimbus\ Hacking/Objective-C\ Class/UIView\ subclass.pbfiletemplate -I../../contrib/nimbus/templates/xcode3/source/Nimbus\ Hacking/Objective-C\ Class/UIViewController\ subclass.pbfiletemplate -I../../contrib/NSLogger/Client\ Logger/Android/client-code/src/com/NSLogger -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/CrashReporter.framework.dSYM/Contents/Resources -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/HockeySDK.framework.dSYM/Contents/Resources -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/src/matchers -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/test/helpers -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/test/matchers -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Expecta/test/support -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates/Specta -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/test/helpers -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/test/support -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/test/vendor -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/CrashReporter.framework.dSYM/Contents/Resources/DWARF -I../../contrib/NSLogger/Desktop\ Viewer/Third\ Party/HockeySDK-Mac/HockeySDK.framework.dSYM/Contents/Resources/DWARF -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates/Specta/Specta\ Spec\ Helper.xctemplate -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates/Specta/Specta\ Spec.xctemplate -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/test/vendor/expecta -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates/Specta/Specta\ Spec\ Helper.xctemplate/NSObject -I../../contrib/MagicalRecord/Project\ Files/Tests/Support/Vendor/Specta/templates/Specta/Specta\ Spec.xctemplate/Default -I../ios-sample-sdk -I../ios-sample-sdk/SampleSDK -I../ios-sample-sdk/SampleSDKResources -I../ios-sample-sdk/SASDKIntegrationTests -I../ios-sample-sdk/SASDKTests -I../ios-sample-sdk/Scripts -I../ios-sample-sdk/Swipers -I../ios-sample-sdk/SampleSDK/Core -I../ios-sample-sdk/SampleSDK/Invoice -I../ios-sample-sdk/SampleSDK/Local -I../ios-sample-sdk/SampleSDK/Payment -I../ios-sample-sdk/SampleSDK/Reader -I../ios-sample-sdk/SampleSDK/UI -I../ios-sample-sdk/SampleSDKResources/Images -I../ios-sample-sdk/SampleSDKResources/PropertyLists -I../ios-sample-sdk/SampleSDKResources/Sounds -I../ios-sample-sdk/SASDKIntegrationTests/Payment -I../ios-sample-sdk/SASDKIntegrationTests/TestHelpers -I../ios-sample-sdk/SASDKTests/Card -I../ios-sample-sdk/SASDKTests/Invoice -I../ios-sample-sdk/SASDKTests/OCMock -I../ios-sample-sdk/SASDKTests/Printing -I../ios-sample-sdk/SASDKTests/Resources -I../ios-sample-sdk/Scripts/buildMachine -I../ios-sample-sdk/Swipers/Griffin -I../ios-sample-sdk/Swipers/Magtek -I../ios-sample-sdk/Swipers/Roam -I../ios-sample-sdk/SampleSDK/Core/Analytics -I../ios-sample-sdk/SampleSDK/Core/CalLogging -I../ios-sample-sdk/SampleSDK/Core/Extensions -I../ios-sample-sdk/SampleSDK/Core/Networking -I../ios-sample-sdk/SampleSDK/Core/NSLogger -I../ios-sample-sdk/SampleSDK/Core/SecureUDID -I../ios-sample-sdk/SampleSDK/Reader/Bond -I../ios-sample-sdk/SASDKTests/OCMock/OCMock -I../ios-sample-sdk/Swipers/Magtek/Release-iphoneos -I../ios-sample-sdk/Swipers/Magtek/Release-iphonesimulator -I/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/DerivedSources/i386 -I/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/DerivedSources -F/Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Products/Debug-iphonesimulator -F/Users/supermarin/Documents/source/ios-sample-newgen/libs/SACore/../../apps/iPhone/sample\ sample -F/Users/supermarin/Documents/source/ios-sample-newgen/libs/SACore/../../contrib/Star/Distributables -include /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/PrecompiledHeaders/SACore-Prefix-hdwrpwhozamhpiatzyqmxqgofzdk/SACore-Prefix.pch -MMD -MT dependencies -MF /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/Objects-normal/i386/SASellableItem.d --serialize-diagnostics /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/Objects-normal/i386/SASellableItem.dia -c /Users/supermarin/Documents/source/ios-sample-newgen/libs/SACore/SACore/App/Models/Core\ Data/human/SASellableItem.m -o /Users/supermarin/Library/Developer/Xcode/DerivedData/SampleWorkspace-furbnwegumclnwbotvisbynpuqvh/Build/Intermediates/SACore.build/Debug-iphonesimulator/SACore.build/Objects-normal/i386/SASellableItem.o
|
53
|
+
)
|
46
54
|
SAMPLE_ANOTHER_COMPILE = %Q(
|
47
55
|
CompileC /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Objects-normal/i386/KWNull.o Classes/Core/KWNull.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
|
48
56
|
cd /Users/musalj/code/OSS/Kiwi
|
@@ -99,6 +107,13 @@ Touch /Users/musalj/Library/Developer/Xcode/DerivedData/Alcatraz-aobuxcinaqyzjug
|
|
99
107
|
cd /Users/musalj/code/OSS/Alcatraz
|
100
108
|
/usr/bin/touch -c /Users/musalj/Library/Developer/Xcode/DerivedData/Alcatraz-aobuxcinaqyzjugrnxjjhfzgwaou/Build/Products/Debug/AlcatrazTests.octest
|
101
109
|
)
|
110
|
+
|
111
|
+
SAMPLE_WRITE_FILE = %Q(
|
112
|
+
write-file /Users/me/myproject/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-AFNetworking.build/Objects-normal/x86_64/Pods-AFNetworking.LinkFileList
|
113
|
+
)
|
114
|
+
|
115
|
+
SAMPLE_WRITE_AUXILIARY_FILES = %Q(Write auxiliary files)
|
116
|
+
|
102
117
|
SAMPLE_TIFFUTIL = %Q(
|
103
118
|
TiffUtil eye_icon.tiff
|
104
119
|
cd /Users/musalj/code/OSS/Alcatraz
|
@@ -482,6 +497,8 @@ PBXCp build/Release/CocoaChipCore.framework build/Release/CocoaChip.app/Contents
|
|
482
497
|
warning: skipping copy phase strip, binary is code signed: /Users/dustin/Source/CocoaChip/build/Release/CocoaChipCore.framework/Versions/A/CocoaChipCore
|
483
498
|
)
|
484
499
|
|
500
|
+
SAMPLE_SCREENSHOT_FILE = 'RACCommandSpec, line 80, hello xcpretty.png'
|
501
|
+
SAMPLE_UNRELATED_IMAGE_FILE = 'apple_raw.png'
|
485
502
|
|
486
503
|
################################################################################
|
487
504
|
# ERRORS
|
@@ -520,12 +537,6 @@ SAMPLE_FATAL_HEADER_ERROR = %Q(
|
|
520
537
|
fatal error: malformed or corrupted AST file: 'could not find file '/Users/mpv/dev/project/Crashlytics.framework/Headers/Crashlytics.h' referenced by AST file' note: after modifying system headers, please delete the module cache at '/Users/mpv/Library/Developer/Xcode/DerivedData/ModuleCache/M5WJ0FYE7N06'
|
521
538
|
)
|
522
539
|
|
523
|
-
SAMPLE_COMPILE_ERROR_WITH_TILDES = %Q(
|
524
|
-
/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSSetTests.m:93:16: error: no visible @interface for 'NSArray' declares the selector 'shoulds'
|
525
|
-
}] shoulds] equal:@[ @"F458 Italia", @"Testarossa" ]];
|
526
|
-
~~ ^~~~~~~
|
527
|
-
)
|
528
|
-
|
529
540
|
SAMPLE_UNDEFINED_SYMBOLS = %Q(
|
530
541
|
Undefined symbols for architecture x86_64:
|
531
542
|
"_OBJC_CLASS_$_CABasicAnimation", referenced from:
|
@@ -546,5 +557,21 @@ SAMPLE_LD_LIBRARY_ERROR = 'ld: library not found for -lPods-Yammer'
|
|
546
557
|
|
547
558
|
SAMPLE_CLANG_ERROR = 'clang: error: linker command failed with exit code 1 (use -v to see invocation)'
|
548
559
|
|
549
|
-
|
550
|
-
|
560
|
+
SAMPLE_COMPILE_ERROR_WITH_TILDES = %Q(
|
561
|
+
/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSSetTests.m:93:16: error: no visible @interface for 'NSArray' declares the selector 'shoulds'
|
562
|
+
}] shoulds] equal:@[ @"F458 Italia", @"Testarossa" ]];
|
563
|
+
~~ ^~~~~~~
|
564
|
+
)
|
565
|
+
|
566
|
+
|
567
|
+
################################################################################
|
568
|
+
# WARNINGS
|
569
|
+
################################################################################
|
570
|
+
|
571
|
+
SAMPLE_FORMAT_WARNING = %Q(
|
572
|
+
/Users/supermarin/code/oss/ObjectiveSugar/Example/ObjectiveSugar/AppDelegate.m:19:31: warning: format specifies type 'id' but the argument has type 'int' [-Wformat]
|
573
|
+
NSLog(@"I HAZ %@ CATS", 1);
|
574
|
+
~~ ^
|
575
|
+
%d
|
576
|
+
1 warning generated.
|
577
|
+
)
|
@@ -12,11 +12,11 @@ module XCPretty
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "initializes with unicode" do
|
15
|
-
@formatter.use_unicode?.should
|
15
|
+
@formatter.use_unicode?.should be_truthy
|
16
16
|
end
|
17
17
|
|
18
18
|
it "initializes with color" do
|
19
|
-
@formatter.colorize?.should
|
19
|
+
@formatter.colorize?.should be_truthy
|
20
20
|
end
|
21
21
|
|
22
22
|
it "outputs to new lines by default" do
|
@@ -25,7 +25,7 @@ module XCPretty
|
|
25
25
|
|
26
26
|
it "formats cocoapods errors" do
|
27
27
|
@formatter.format_error("The sandbox is not in sync...").should ==
|
28
|
-
"\n#{@formatter.red("⌦
|
28
|
+
"\n#{@formatter.red("⌦ The sandbox is not in sync...")}\n\n"
|
29
29
|
end
|
30
30
|
|
31
31
|
it "formats compiling errors" do
|
@@ -33,11 +33,27 @@ module XCPretty
|
|
33
33
|
"[a should",
|
34
34
|
" ^").should ==
|
35
35
|
%Q(
|
36
|
-
#{@formatter.red('⌦
|
36
|
+
#{@formatter.red('⌦ ')}path/to/file: #{@formatter.red("expected valid syntax")}
|
37
37
|
|
38
38
|
[a should
|
39
39
|
#{@formatter.cyan(" ^")}
|
40
40
|
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "formats compiling warnings" do
|
45
|
+
reason = "format specifies type 'id' but the argument has type 'int' [-Wformat]"
|
46
|
+
|
47
|
+
@formatter.format_compile_warning( "file", "path/to/file", reason,
|
48
|
+
%Q( NSLog(@"alsdkflsakdj %@", 1);),
|
49
|
+
%Q( ~~ ^)).should ==
|
50
|
+
|
51
|
+
%Q(
|
52
|
+
#{@formatter.yellow('⚠️ ')}path/to/file: #{@formatter.yellow(reason)}
|
53
|
+
|
54
|
+
NSLog(@"alsdkflsakdj %@", 1);
|
55
|
+
#{@formatter.cyan(" ~~ ^")}
|
56
|
+
|
41
57
|
)
|
42
58
|
end
|
43
59
|
|
@@ -45,7 +61,7 @@ module XCPretty
|
|
45
61
|
@formatter.format_undefined_symbols("Undefined symbols for architecture x86_64",
|
46
62
|
'_OBJC_CLASS_$_CABasicAnimation',
|
47
63
|
'objc-class-ref in ATZRadialProgressControl.o').should == %Q(
|
48
|
-
#{@formatter.red("⌦
|
64
|
+
#{@formatter.red("⌦ Undefined symbols for architecture x86_64")}
|
49
65
|
> Symbol: _OBJC_CLASS_$_CABasicAnimation
|
50
66
|
> Referenced from: objc-class-ref in ATZRadialProgressControl.o
|
51
67
|
|
@@ -56,7 +72,7 @@ module XCPretty
|
|
56
72
|
@formatter.format_duplicate_symbols("duplicate symbol _OBJC_IVAR_$ClassName._ivarName in",
|
57
73
|
['/Users/username/Library/Developer/Xcode/DerivedData/App-arcyyktezaigixbocjwfhsjllojz/Build/Intermediates/App.build/Debug-iphonesimulator/App.build/Objects-normal/i386/ClassName.o',
|
58
74
|
'/Users/username/Library/Developer/Xcode/DerivedData/App-arcyyktezaigixbocjwfhsjllojz/Build/Products/Debug-iphonesimulator/libPods.a(DuplicateClassName.o)']).should == %Q(
|
59
|
-
#{@formatter.red("⌦
|
75
|
+
#{@formatter.red("⌦ duplicate symbol _OBJC_IVAR_$ClassName._ivarName in")}
|
60
76
|
> ClassName.o
|
61
77
|
> libPods.a(DuplicateClassName.o)
|
62
78
|
)
|
@@ -65,7 +81,7 @@ module XCPretty
|
|
65
81
|
|
66
82
|
if RUBY_VERSION > '1.8.7'
|
67
83
|
it "formats failures per suite" do
|
68
|
-
Syntax.stub(:highlight) { |
|
84
|
+
Syntax.stub(:highlight) { |snippet| snippet.contents }
|
69
85
|
|
70
86
|
first_path = File.expand_path('spec/fixtures/NSStringTests.m:46')
|
71
87
|
second_path = File.expand_path('spec/fixtures/NSStringTests.m:57')
|
@@ -25,6 +25,11 @@ module XCPretty
|
|
25
25
|
"> Cleaning Pods/Pods-ObjectiveSugar [Debug]"
|
26
26
|
end
|
27
27
|
|
28
|
+
it 'formats compiler warnings' do
|
29
|
+
warning = 'warning: stuff is broken'
|
30
|
+
@formatter.format_warning(warning).should == ' ' + warning
|
31
|
+
end
|
32
|
+
|
28
33
|
it "formats compiling output" do
|
29
34
|
@formatter.format_compile("NSMutableArray+ObjectiveSugar.m", 'path/to/file').should ==
|
30
35
|
"> Compiling NSMutableArray+ObjectiveSugar.m"
|
@@ -35,6 +40,16 @@ module XCPretty
|
|
35
40
|
"> Compiling MainMenu.xib"
|
36
41
|
end
|
37
42
|
|
43
|
+
it 'formats copying header files' do
|
44
|
+
@formatter.format_copy_header_file('Source.h',
|
45
|
+
'dir/Destination.h').should == '> Copying Source.h'
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'formats copying plist files' do
|
49
|
+
@formatter.format_copy_plist_file("Source.plist",
|
50
|
+
'dir/Destination.plist').should == '> Copying Source.plist'
|
51
|
+
end
|
52
|
+
|
38
53
|
it "formats copy resource" do
|
39
54
|
@formatter.format_cpresource("ObjectiveSugar/Default-568h@2x.png").should ==
|
40
55
|
"> Copying ObjectiveSugar/Default-568h@2x.png"
|
@@ -80,6 +95,11 @@ module XCPretty
|
|
80
95
|
" P _tupleByAddingObject__should_add_a_non_nil_object [PENDING]"
|
81
96
|
end
|
82
97
|
|
98
|
+
it "formats measuring tests" do
|
99
|
+
@formatter.format_measuring_test("RACCommandSpec", "_tupleByAddingObject__should_add_a_non_nil_object", "0.001").should ==
|
100
|
+
" T _tupleByAddingObject__should_add_a_non_nil_object measured (0.001 seconds)"
|
101
|
+
end
|
102
|
+
|
83
103
|
it "formats Phase Script Execution" do
|
84
104
|
@formatter.format_phase_script_execution("Check Pods Manifest.lock").should ==
|
85
105
|
"> Running script 'Check Pods Manifest.lock'"
|
@@ -58,9 +58,14 @@ module XCPretty
|
|
58
58
|
@parser.parse(SAMPLE_CODESIGN_FRAMEWORK)
|
59
59
|
end
|
60
60
|
|
61
|
+
it 'parses compiler_space_in_path' do
|
62
|
+
@formatter.should receive(:format_compile).with('SASellableItem.m', "SACore/App/Models/Core\\ Data/human/SASellableItem.m")
|
63
|
+
@parser.parse(SAMPLE_COMPILE_SPACE_IN_PATH)
|
64
|
+
end
|
65
|
+
|
61
66
|
it "parses compiler commands" do
|
62
|
-
compile_statement = SAMPLE_ANOTHER_COMPILE.lines
|
63
|
-
@formatter.should receive(:format_compile_command).with(compile_statement.strip
|
67
|
+
compile_statement = SAMPLE_ANOTHER_COMPILE.lines.to_a.last
|
68
|
+
@formatter.should receive(:format_compile_command).with(compile_statement.strip, "/Users/musalj/code/OSS/Kiwi/Classes/Core/KWNull.m")
|
64
69
|
@parser.parse(compile_statement)
|
65
70
|
end
|
66
71
|
|
@@ -80,7 +85,7 @@ module XCPretty
|
|
80
85
|
end
|
81
86
|
|
82
87
|
it "parses compiling C and C++ files" do
|
83
|
-
|
88
|
+
['.c', '.cc', '.cpp', '.cxx'].each do |file_extension|
|
84
89
|
@formatter.should receive(:format_compile).with("KWNull" + file_extension, "Classes/Core/KWNull" + file_extension)
|
85
90
|
@parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', file_extension))
|
86
91
|
end
|
@@ -91,11 +96,23 @@ module XCPretty
|
|
91
96
|
@parser.parse(SAMPLE_COMPILE_XIB)
|
92
97
|
end
|
93
98
|
|
99
|
+
it 'parses CopyPlistFile' do
|
100
|
+
@formatter.should receive(:format_copy_plist_file).with(
|
101
|
+
'/path/to/Some.plist', '/some other/File.plist')
|
102
|
+
@parser.parse('CopyPlistFile /path/to/Some.plist /some other/File.plist')
|
103
|
+
end
|
104
|
+
|
94
105
|
it "parses CopyStringsFile" do
|
95
106
|
@formatter.should receive(:format_copy_strings_file).with('InfoPlist.strings')
|
96
107
|
@parser.parse(SAMPLE_COPYSTRINGS)
|
97
108
|
end
|
98
109
|
|
110
|
+
it "parses CpHeader" do
|
111
|
+
@formatter.should receive(:format_copy_header_file).with(
|
112
|
+
'/path/to/Header.h','/some other/path/Header.h')
|
113
|
+
@parser.parse('CpHeader /path/to/Header.h /some other/path/Header.h')
|
114
|
+
end
|
115
|
+
|
99
116
|
it "parses CpResource" do
|
100
117
|
@formatter.should receive(:format_cpresource).with('ObjectiveSugar/Default-568h@2x.png')
|
101
118
|
@parser.parse(SAMPLE_CPRESOURCE)
|
@@ -157,6 +174,15 @@ module XCPretty
|
|
157
174
|
@parser.parse(SAMPLE_PENDING_KIWI_TEST)
|
158
175
|
end
|
159
176
|
|
177
|
+
it 'parses measuring tests' do
|
178
|
+
@formatter.should receive(:format_measuring_test).with(
|
179
|
+
'SecEncodeTransformTests.SecEncodeTransformTests',
|
180
|
+
'test_RFC4648_Decode_UsingBase32',
|
181
|
+
'0.013'
|
182
|
+
)
|
183
|
+
@parser.parse(SAMPLE_MEASURING_TEST)
|
184
|
+
end
|
185
|
+
|
160
186
|
it "parses PhaseScriptExecution" do
|
161
187
|
@formatter.should receive(:format_phase_script_execution).with('Check Pods Manifest.lock')
|
162
188
|
@parser.parse(SAMPLE_RUN_SCRIPT)
|
@@ -167,6 +193,12 @@ module XCPretty
|
|
167
193
|
@parser.parse(SAMPLE_PRECOMPILE)
|
168
194
|
end
|
169
195
|
|
196
|
+
it 'parses process PCH command' do
|
197
|
+
compile_statement = SAMPLE_PRECOMPILE.lines.to_a.last
|
198
|
+
@formatter.should receive(:format_process_pch_command).with("/Users/musalj/code/OSS/ObjectiveRecord/Pods/Pods-CocoaLumberjack-prefix.pch")
|
199
|
+
@parser.parse(compile_statement)
|
200
|
+
end
|
201
|
+
|
170
202
|
it "parses preprocessing" do
|
171
203
|
@formatter.should receive(:format_preprocess).with("CocoaChip/CocoaChip-Info.plist")
|
172
204
|
@parser.parse(SAMPLE_PREPROCESS)
|
@@ -177,6 +209,18 @@ module XCPretty
|
|
177
209
|
@parser.parse(SAMPLE_PBXCP)
|
178
210
|
end
|
179
211
|
|
212
|
+
it 'parses changing directories' do
|
213
|
+
@formatter.should receive(:format_shell_command).with('cd',
|
214
|
+
'/some/place/out\ there')
|
215
|
+
@parser.parse(' cd /some/place/out\ there')
|
216
|
+
end
|
217
|
+
|
218
|
+
it 'parses any indented command' do
|
219
|
+
@formatter.should receive(:format_shell_command).with(
|
220
|
+
'/bin/rm', '-rf /bin /usr /Users')
|
221
|
+
@parser.parse(' /bin/rm -rf /bin /usr /Users')
|
222
|
+
end
|
223
|
+
|
180
224
|
it "parses Touch" do
|
181
225
|
@formatter.should receive(:format_touch).with(
|
182
226
|
'/Users/musalj/Library/Developer/Xcode/DerivedData/Alcatraz-aobuxcinaqyzjugrnxjjhfzgwaou/Build/Products/Debug/AlcatrazTests.octest',
|
@@ -184,6 +228,17 @@ module XCPretty
|
|
184
228
|
@parser.parse(SAMPLE_TOUCH)
|
185
229
|
end
|
186
230
|
|
231
|
+
it "parses write file" do
|
232
|
+
@formatter.should receive(:format_write_file).with(
|
233
|
+
'/Users/me/myproject/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-AFNetworking.build/Objects-normal/x86_64/Pods-AFNetworking.LinkFileList')
|
234
|
+
@parser.parse(SAMPLE_WRITE_FILE)
|
235
|
+
end
|
236
|
+
|
237
|
+
it "parses write auxiliary files" do
|
238
|
+
@formatter.should receive(:format_write_auxiliary_files)
|
239
|
+
@parser.parse(SAMPLE_WRITE_AUXILIARY_FILES)
|
240
|
+
end
|
241
|
+
|
187
242
|
it "parses TiffUtil" do
|
188
243
|
@formatter.should receive(:format_tiffutil).with('eye_icon.tiff')
|
189
244
|
@parser.parse(SAMPLE_TIFFUTIL)
|
@@ -252,7 +307,6 @@ module XCPretty
|
|
252
307
|
end
|
253
308
|
|
254
309
|
context "errors" do
|
255
|
-
|
256
310
|
it "parses clang errors" do
|
257
311
|
@formatter.should receive(:format_error).with(SAMPLE_CLANG_ERROR)
|
258
312
|
@parser.parse(SAMPLE_CLANG_ERROR)
|
@@ -356,12 +410,28 @@ module XCPretty
|
|
356
410
|
@formatter.should_not receive(:format_compile_error)
|
357
411
|
@parser.parse("hohohoooo")
|
358
412
|
end
|
359
|
-
|
360
413
|
end
|
361
414
|
|
415
|
+
context "warnings" do
|
416
|
+
it 'parses compiler warnings' do
|
417
|
+
@formatter.should receive(:format_warning).with("TEST 123")
|
418
|
+
@parser.parse("warning: TEST 123")
|
419
|
+
end
|
362
420
|
|
363
|
-
|
421
|
+
it "parses compiling warnings" do
|
422
|
+
@formatter.should receive(:format_compile_warning).with(
|
423
|
+
"AppDelegate.m",
|
424
|
+
"/Users/supermarin/code/oss/ObjectiveSugar/Example/ObjectiveSugar/AppDelegate.m:19:31",
|
425
|
+
"format specifies type 'id' but the argument has type 'int' [-Wformat]",
|
426
|
+
" NSLog(@\"I HAZ %@ CATS\", 1);",
|
427
|
+
" ~~ ^")
|
428
|
+
SAMPLE_FORMAT_WARNING.each_line do |line|
|
429
|
+
@parser.parse(line)
|
430
|
+
end
|
431
|
+
end
|
432
|
+
end
|
364
433
|
|
434
|
+
context "summary" do
|
365
435
|
def given_tests_have_started(reporter = SAMPLE_OCUNIT_TEST_RUN_BEGINNING)
|
366
436
|
@parser.parse(reporter)
|
367
437
|
end
|
@@ -422,7 +492,6 @@ module XCPretty
|
|
422
492
|
given_kiwi_tests_are_done
|
423
493
|
}
|
424
494
|
end
|
425
|
-
|
426
495
|
end
|
427
496
|
|
428
497
|
end
|