build system: fix unit test executable names for Windows

Fixes #1318.
This commit is contained in:
Moritz Bunkus 2015-06-29 22:20:29 +02:00
parent 2621ede4fb
commit dedcb6455c

View File

@ -5,11 +5,11 @@ $gtest_internal = c(:GTEST_TYPE) == "internal"
namespace :tests do
desc "Build the unit tests"
task :unit => $gtest_apps.collect { |app| "tests/unit/#{app}/#{app}" }
task :unit => $gtest_apps.collect { |app| "tests/unit/#{app}/#{app}" + c(:EXEEXT) }
desc "Build and run the unit tests"
task :run_unit => 'tests:unit' do
$gtest_apps.each { |app| run "./tests/unit/#{app}/#{app}" + c(:EXEEXT) }
$gtest_apps.each { |app| run "./tests/unit/#{app}/#{app}" }
end
end