Don't try to run or build the tests on Windows because too hard.
This commit is contained in:
		
							parent
							
								
									8e4a6ca47d
								
							
						
					
					
						commit
						c44f94818f
					
				
					 1 changed files with 28 additions and 13 deletions
				
			
		
							
								
								
									
										41
									
								
								build.lua
									
										
									
									
									
								
							
							
						
						
									
										41
									
								
								build.lua
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -28,8 +28,10 @@ vars.plats_with_tests = {
 | 
			
		|||
	"pc86",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local is_windows = os.getenv("OS") == "Windows_NT"
 | 
			
		||||
 | 
			
		||||
local int = {}
 | 
			
		||||
if os.getenv("OS") ~= "Windows_NT" then
 | 
			
		||||
if not is_windows then
 | 
			
		||||
	int[#int+1] = "util/int+pkg"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -80,16 +82,29 @@ installable {
 | 
			
		|||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
normalrule {
 | 
			
		||||
	name = "tests",
 | 
			
		||||
	ins = {
 | 
			
		||||
		"first/testsummary.sh",
 | 
			
		||||
		test_packages
 | 
			
		||||
	},
 | 
			
		||||
	outleaves = {
 | 
			
		||||
		"stamp"
 | 
			
		||||
	},
 | 
			
		||||
	commands = {
 | 
			
		||||
		"%{ins}"
 | 
			
		||||
if not is_windows then
 | 
			
		||||
	normalrule {
 | 
			
		||||
		name = "tests",
 | 
			
		||||
		ins = {
 | 
			
		||||
			"first/testsummary.sh",
 | 
			
		||||
			test_packages
 | 
			
		||||
		},
 | 
			
		||||
		outleaves = {
 | 
			
		||||
			"stamp"
 | 
			
		||||
		},
 | 
			
		||||
		commands = {
 | 
			
		||||
			"%{ins}"
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
else
 | 
			
		||||
	normalrule {
 | 
			
		||||
		name = "tests",
 | 
			
		||||
		ins = {},
 | 
			
		||||
		outleaves = {
 | 
			
		||||
			"stamp"
 | 
			
		||||
		},
 | 
			
		||||
		commands = {
 | 
			
		||||
			"touch %{outs}"
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue