]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/unity/auto/test_file_filter.rb
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / unity / auto / test_file_filter.rb
1 # ==========================================
2 #   Unity Project - A Test Framework for C
3 #   Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 #   [Released under MIT License. Please refer to license.txt for details]
5 # ========================================== 
6
7 require'yaml'
8
9 module RakefileHelpers
10   class TestFileFilter
11     def initialize(all_files = false)
12       @all_files = all_files
13       if not @all_files == true
14         if File.exist?('test_file_filter.yml')
15           filters = YAML.load_file( 'test_file_filter.yml' )
16           @all_files, @only_files, @exclude_files = 
17             filters[:all_files], filters[:only_files], filters[:exclude_files] 
18         end
19       end
20     end         
21     attr_accessor :all_files, :only_files, :exclude_files
22   end
23 end