1234567891011121314151617181920212223 |
- # ==========================================
- # Unity Project - A Test Framework for C
- # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
- # [Released under MIT License. Please refer to license.txt for details]
- # ==========================================
- require'yaml'
- module RakefileHelpers
- class TestFileFilter
- def initialize(all_files = false)
- @all_files = all_files
- if not @all_files == true
- if File.exist?('test_file_filter.yml')
- filters = YAML.load_file( 'test_file_filter.yml' )
- @all_files, @only_files, @exclude_files =
- filters[:all_files], filters[:only_files], filters[:exclude_files]
- end
- end
- end
- attr_accessor :all_files, :only_files, :exclude_files
- end
- end
|