- add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos - new separate project for tests
This commit is contained in:
		
							
								
								
									
										16
									
								
								tests/vendor/ceedling/lib/yaml_wrapper.rb
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								tests/vendor/ceedling/lib/yaml_wrapper.rb
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| require 'yaml' | ||||
|  | ||||
|  | ||||
| class YamlWrapper | ||||
|  | ||||
|   def load(filepath) | ||||
|     return YAML.load(File.read(filepath)) | ||||
|   end | ||||
|  | ||||
|   def dump(filepath, structure) | ||||
|     File.open(filepath, 'w') do |output| | ||||
|       YAML.dump(structure, output) | ||||
|     end | ||||
|   end | ||||
|  | ||||
| end | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach