Added "make test" to Windows' make script.

This commit is contained in:
Chicken man
2014-05-12 17:19:58 -04:00
parent 6029890ed8
commit 84cb2e921d

View File

@@ -8,6 +8,7 @@ if ($args.Length -eq 0)
echo " version for the current Git branch." echo " version for the current Git branch."
echo " clean Removes all built and copied files. Use the 'all' and" echo " clean Removes all built and copied files. Use the 'all' and"
echo " 'dependencies' commands to restore removed files." echo " 'dependencies' commands to restore removed files."
echo " test Tests the default mods for errors."
echo "" echo ""
$command = Read-Host "Enter command" $command = Read-Host "Enter command"
} }
@@ -79,6 +80,18 @@ elseif ($command -eq "dependencies")
cp thirdparty/windows/*.dll . cp thirdparty/windows/*.dll .
echo "Dependencies copied." echo "Dependencies copied."
} }
elseif ($command -eq "test")
{
echo "Testing mods..."
echo "OpenRA.Lint: checking Red Alert mod MiniYAML..."
./OpenRA.Lint.exe --verbose ra
echo "OpenRA.Lint: checking Tiberian Dawn mod MiniYAML..."
./OpenRA.Lint.exe --verbose cnc
echo "OpenRA.Lint: checking Dune 2000 mod MiniYAML..."
./OpenRA.Lint.exe --verbose d2k
echo "OpenRA.Lint: checking Tiberian Sun mod MiniYAML..."
./OpenRA.Lint.exe --verbose ts
}
else else
{ {
echo ("Invalid command '{0}'" -f $command) echo ("Invalid command '{0}'" -f $command)