mirror of https://github.com/google/pebble
				
				
				
			
		
			
				
	
	
		
			18 lines
		
	
	
		
			537 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			537 B
		
	
	
	
		
			Python
		
	
	
	
| # Test that multiple .proto files don't cause name collisions.
 | |
| 
 | |
| Import("env")
 | |
| 
 | |
| incpath = env.Clone()
 | |
| incpath.Append(PROTOCPATH = '#multiple_files')
 | |
| incpath.Append(CPPPATH = '$BUILD/multiple_files')
 | |
| 
 | |
| incpath.NanopbProto(["multifile1", "multifile1.options"])
 | |
| incpath.NanopbProto("multifile2")
 | |
| incpath.NanopbProto("subdir/multifile2")
 | |
| test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c",
 | |
|                         "multifile2.pb.c", "subdir/multifile2.pb.c",
 | |
|                         "$COMMON/pb_common.o"])
 | |
| 
 | |
| env.RunTest(test)
 | |
| 
 |