Return and run tests after building
This commit is contained in:
		
							parent
							
								
									6087354bc8
								
							
						
					
					
						commit
						a472d5aae5
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -59,4 +59,6 @@ for mode in (MODE.split(',') if MODE else ['debug']): | |||
|                CPPPATH=[SRC_DIR]) | ||||
| 
 | ||||
|     # Get test binaries. | ||||
|     do_sconscript(env, TEST_DIR, out_dir.Dir('test')) | ||||
|     test = do_sconscript(env, TEST_DIR, out_dir.Dir('test')) | ||||
|     run_tests = env.Alias('test', [test], test[0].path) | ||||
|     env.AlwaysBuild(run_tests) | ||||
|  |  | |||
|  | @ -26,4 +26,5 @@ for f in files: | |||
|     objs.append(env.Object(f)) | ||||
| 
 | ||||
| # TODO: Add the library target for the package to test to LIBS. | ||||
| env.Program('test', objs, LIBS=['gtest']) | ||||
| test = env.Program('test', objs, LIBS=['gtest']) | ||||
| Return('test') | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue