blob: e52a0b43ff17e587fdb082d29891d8bf4107817e [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
using System;
using System.Text;
using System.Collections.Generic;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.VCProjectEngine;
using NaCl.Build.CPPTasks;
using NativeClientVSAddIn;
namespace UnitTests
public class CompileParallelTest : BaseCompileTest
private static string SolutionBaseName_ = "CompileParallelTest";
public static void ClassSetUp(TestContext testContext)
BaseCompileTest.ClassSetUp(testContext, SolutionBaseName_);
/// <summary>
/// This is run after each test to clean up things created in TestSetup().
/// </summary>
public void ClassTearDown()
/// <summary>
/// Test that parallel compilation works.
/// </summary>
public void CheckParallelCompile()
string platform = Strings.NaCl64PlatformName;
Project project = dte_.Solution.Projects.Item(TestUtilities.NaClProjectUniqueName);
// Add property sheet that enables multiprocessing
VCConfiguration config;
config = TestUtilities.GetVCConfiguration(project, "Debug", platform);
config = TestUtilities.GetVCConfiguration(project, "Release", platform);
// Add a second file
CheckCompile(platform, false);