Navigation Menu

Skip to content

Commit

Permalink
[TEST] Automate testing of obj-c literals/no-literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Apr 25, 2013
1 parent 8b203a0 commit ead1302
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions test/Rakefile
Expand Up @@ -22,14 +22,24 @@ def gen_and_compile(desc, mogenPath, extra_mogen_args, extra_gcc_args)
puts run_or_die './testbin'
end

desc 'Generate, Compile and Run MRC Code'
desc 'Generate, Compile and Run MRC Code (with objc literals)'
task :mrc do
gen_and_compile('MRC', mogenPath, '', '')
gen_and_compile('MRC (with objc literals)', mogenPath, '', '')
end

desc 'Generate, Compile and Run ARC Code'
desc 'Generate, Compile and Run MRC Code (without objc literals)'
task :mrc_noliterals do
gen_and_compile('MRC (without objc literals)', mogenPath, '--template-var nolit=true', '')
end

desc 'Generate, Compile and Run ARC Code (with objc literals)'
task :arc do
gen_and_compile('ARC', mogenPath, '--template-var arc=true', '-fobjc-arc')
gen_and_compile('ARC (with objc literals)', mogenPath, '--template-var arc=true', '-fobjc-arc')
end

desc 'Generate, Compile and Run ARC Code (without objc literals)'
task :arc_noliterals do
gen_and_compile('ARC (without objc literals)', mogenPath, '--template-var arc=true --template-var nolit=true', '-fobjc-arc')
end

desc 'Clean output'
Expand All @@ -39,8 +49,16 @@ end

task :default do
Rake::Task[:clean].execute

Rake::Task[:mrc].execute
Rake::Task[:clean].execute

Rake::Task[:mrc_noliterals].execute
Rake::Task[:clean].execute

Rake::Task[:arc].execute
Rake::Task[:clean].execute

Rake::Task[:arc_noliterals].execute
Rake::Task[:clean].execute
end

0 comments on commit ead1302

Please sign in to comment.