| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -23,6 +23,8 @@ config = {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local blueprint = require('plugins.blueprint')
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local quickfort_list = reqscript('internal/quickfort/list')
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local quickfort_command = reqscript('internal/quickfort/command')
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local blueprints_dir = 'blueprints/'
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local input_dir = 'library/test/ecosystem/in/'
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -43,13 +45,8 @@ local function get_positive_int(numstr, varname, basename)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    return num
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				end
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				-- internal/quickfort scripts are loaded inside the function here so the test
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				-- file itself can load when a fortress map is not active. this is required
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				-- because quickfort depends on stockflow, which fails to load outside of fort
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				-- mode.
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				local function get_blueprint_sets()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    -- find test blueprints with `quickfort list`
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    local quickfort_list = reqscript('internal/quickfort/list')
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    local mock_print = mock.func()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    mock.patch(quickfort_list, 'print', mock_print,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        function()
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -73,7 +70,6 @@ local function get_blueprint_sets()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    end
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    -- load test specs
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    local quickfort_command = reqscript('internal/quickfort/command')
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    for basename,set in pairs(sets) do
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        local spec, notes = set.spec, set.modes.notes
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |