Rac@sdZyddlmZWn!ek r=ddlmZnXddlZddljZdejfdYZ e dkrej ndS(s(Unit tests for the MSVSSettings.py file.i(tStringIONtTestSequenceFunctionscBsbeZdZdZdZdZdZdZdZdZ dZ d Z RS( cCst|_dS(N(Rtstderr(tself((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pytsetUpscCsg|jjd|jjjd}g|D]}|r/|^q/}|jt|t|dS(s-Compares recorded lines to expected warnings.is N(Rtseektreadtsplitt assertEqualtsorted(Rtexpectedtactualtline((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt_ExpectedWarningsscCsbtjiid6id6id6id6id6id6id6id6|j|jd d gd S( s,Tests that only MSVS tool names are allowed.tVCCLCompilerToolt VCLinkerToolt VCMIDLTooltfootVCResourceCompilerTooltVCLibrarianTooltVCManifestToolt ClCompilesWarning: unrecognized tool foos$Warning: unrecognized tool ClCompileN(t MSVSSettingstValidateMSVSSettingsRR (R((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt#testValidateMSVSSettings_tool_namess  c Cs>tjii@dd6ddgd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6d"d#6dd$6dd%6dd&6dd'6dd(6dd)6dd*6d+d,6d+d-6dd.6dd/6dd06dd16dd26dd36dd46dd56dd66dd76dd86dd96dd:6dd;6dd<6dd=6dd>6dd?6dd@6ddA6ddB6ddC6ddD6ddE6ddF6ddG6ddH6ddI6ddJ6ddK6ddL6ddM6d"dN6dO6iNd+dP6dQdR6ddS6d+dT6dUd6d+dV6ddW6ddX6d+dY6dUdZ6dd[6dd\6dd]6dd^6d+d_6dd`6dda6d+db6ddc6ddd6dUde6dd$6ddf6d+dg6ddh6ddi6ddj6ddk6dUdl6dUdm6ddn6d+do6ddp6ddq6ddr6dds6ddt6ddu6ddv6ddw6ddx6ddy6ddz6dd{6dd|6dUd}6dd~6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dUd6dUd6dd6dd6dd6ddC6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6ddI6dUd6d6idd6dUd6dUd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd06dd6dd6d"d6dUd6dd;6dd6dd6ddB6ddC6dd6dd6ddF6dd6ddJ6ddK6d6i dUd6dd6dd6dd06d"d6dd;6dUd6dd6ddC6ddF6d6i d+dP6ddS6dUd6dd6dUdg6ddn6d+d6ddw6dd6dd6ddC6ddI6d6id+d6dUd6dUd6dd6dd6dd6dUd6dd6dd6dd6dd6ddC6dd6dd6dd6dd6ddI6dd6d6|j|jddddddddddg dS(s%Tests that for invalid MSVS settings.sfolder1;folder2tAdditionalIncludeDirectorieststring1tstring2tAdditionalOptionstAdditionalUsingDirectoriest a_file_nametAssemblerListingLocationt0tAssemblerOutputt5tBasicRuntimeCheckstfdksljtBrowseInformationtBrowseInformationFilettruetBufferSecurityChecks-1tCallingConventiont1t CompileAst2tDebugInformationFormattDefaultCharIsUnsignedtDetect64BitPortabilityProblemstDisableLanguageExtensionssstring1;string2tDisableSpecificWarningstEnableEnhancedInstructionSettEnableFiberSafeOptimizationstEnableFunctionLevelLinkingtEnableIntrinsicFunctionst EnablePREfasttbogust EnableprefasttErrorReportingtExceptionHandlingtExpandAttributedSourcetFavorSizeOrSpeedtFloatingPointExceptionstFloatingPointModeltForceConformanceInForLoopScopes file1;file2tForcedIncludeFilestForcedUsingFilestGeneratePreprocessedFiletGenerateXMLDocumentationFilestIgnoreStandardIncludePathtInlineFunctionExpansiont KeepCommentstMinimalRebuildt ObjectFiletOmitDefaultLibNametOmitFramePointerstOpenMPt OptimizationtPrecompiledHeaderFiletPrecompiledHeaderThroughtPreprocessorDefinitionstProgramDataBaseFileNametRuntimeLibrarytRuntimeTypeInfot ShowIncludestSmallerTypeCheckt StringPoolingtStructMemberAlignmenttSuppressStartupBannertTreatWChar_tAsBuiltInTypet"UndefineAllPreprocessorDefinitionstUndefinePreprocessorDefinitionst UseFullPathstUsePrecompiledHeadertUseUnicodeResponseFilest WarnAsErrort WarningLeveltWholeProgramOptimizationtXMLDocumentationFileNametZZXYZRtAdditionalDependenciestfile3tAdditionalDependencies_excludedtAdditionalLibraryDirectoriestAdditionalManifestDependenciess a string1tAddModuleNamesToAssemblytAllowIsolationt AssemblyDebugtAssemblyLinkResourcet BaseAddresst CLRImageTypetCLRThreadAttributetCLRUnmanagedCodeChecktDataExecutionPreventiont DelayLoadDLLst DelaySigntDrivertEmbedManagedResourceFiletEnableCOMDATFoldingt EnableUACtEntryPointSymboltFixedBaseAddresstForceSymbolReferencest FunctionOrdertGenerateDebugInformationtGenerateManifesttGenerateMapFiletHeapCommitSizetHeapReserveSizetIgnoreAllDefaultLibrariestIgnoreDefaultLibraryNamestIgnoreEmbeddedIDLtIgnoreImportLibraryt ImportLibraryt KeyContainertKeyFiletLargeAddressAwaretLinkIncrementaltLinkLibraryDependenciestLinkTimeCodeGenerationt ManifestFilet MapExportst MapFileNametMergedIDLBaseFileNamet MergeSectionstMidlCommandFiletModuleDefinitionFiletOptimizeForWindows98tOptimizeReferencest OutputFiletPerUserRedirectiontProfiletProfileGuidedDatabasetProgramDatabaseFiletRandomizedBaseAddresstRegisterOutputtResourceOnlyDLLt SetChecksumt ShowProgresstStackCommitSizetStackReserveSizetStripPrivateSymbolst SubSystemtSupportUnloadOfDelayLoadedDLLt SwapRunFromCDtSwapRunFromNett TargetMachinetTerminalServerAwaretTurnOffAssemblyGenerationtTypeLibraryFilet33tTypeLibraryResourceIDtUACExecutionLevelt UACUIAccesstUseLibraryDependencyInputstVersionRtCPreprocessOptionstDefaultCharTypetDLLDataFileNametEnableErrorCheckstErrorCheckAllocationstErrorCheckBoundstErrorCheckEnumRangetErrorCheckRefPointerstErrorCheckStubDatatGenerateStublessProxiestGenerateTypeLibrarytHeaderFileNametInterfaceIdentifierFileNametMkTypLibCompatibletnotgoodtOutputDirectoryt ProxyFileNametRedirectOutputAndErrorstTargetEnvironmenttTypeLibraryNametValidateParametersRt1003tCulturetnotgood2tResourceOutputFileNameRtExportNamedFunctionstIgnoreSpecificDefaultLibrariesRtAdditionalManifestFilestAssemblyIdentitytComponentFileNametDependencyInformationFiletGenerateCatalogFilestInputResourceManifeststManifestResourceFiletOutputManifestFiletRegistrarScriptFiletReplacementsFilettrueltUpdateFileHashestUpdateFileHashesSearchPathtUseFAT32Workaroundt VerboseOutputRs^Warning: for VCCLCompilerTool/BasicRuntimeChecks, index value (5) not in expected range [0, 4)saWarning: for VCCLCompilerTool/BrowseInformation, invalid literal for int() with base 10: 'fdkslj's^Warning: for VCCLCompilerTool/CallingConvention, index value (-1) not in expected range [0, 4)sZWarning: for VCCLCompilerTool/DebugInformationFormat, converted value for 2 not specified.s<Warning: unrecognized setting VCCLCompilerTool/Enableprefasts4Warning: unrecognized setting VCCLCompilerTool/ZZXYZsMWarning: for VCLinkerTool/TargetMachine, converted value for 2 not specified.s0Warning: unrecognized setting VCMIDLTool/notgoods=Warning: unrecognized setting VCResourceCompilerTool/notgood2sHWarning: for VCManifestTool/UpdateFileHashes, expected bool; got 'truel'N(RRRR (R((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt!testValidateMSVSSettings_settings.s        cCsttji iGdd6ddgd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6d"d#6d$d%6d&d'6dd(6d)d*6dd+6d,d-6dd.6d/d06d/d16d d26dd36dd46d5d66d d76dd86dd96dd:6dd;6dd<6dd=6d>d?6d@dA6ddB6ddC6ddD6ddE6dFdG6d dH6d dI6dJdK6ddL6dMdN6ddO6ddP6ddQ6ddR6dSdT6ddU6dVdW6ddX6ddY6ddZ6dd[6dd\6dd]6dd^6d_d`6dda6ddb6d"dc6dd6iUd/de6ddf6d/dg6dFd6d/dh6ddi6djdk6d/dl6dFdm6dd6dndo6dpdq6drds6ddt6dudv6d dw6d/dx6ddy6dzd{6d/d|6d d}6dd~6dFd6d d6dpd6d/d6dd6dd6dd6dFd6dFd6dd6dd6dd6dd6dd6dd6dd6d d6dd6dd6dd6dd6dd6dd6dd6dd6dFd6dd6dFd6dd6dd6dd6d d6dd6dd6dd6dd6dd6dd6d d6dd6dJd6dd6dd6dFd6dFd6dFd6dd6dd6dd6dd6ddU6dd6dd6dd6d d6dVdW6dd6dd6dd6dJd6dd6dd6dFd6d6i dd6dFd6dd6dd46dd6ddE6dFd6dd6ddU6dVdW6dd\6d6i&dd6dFd6dd6dd6dFd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd46dd6dJd6dd6dFd6ddE6dd6dd6dd6dzdT6dd6ddU6dd6dVdW6dd6dd6dd\6dd6dd6dd`6d6id/de6ddf6dFd6dFd6dd%6dd6dFd6dd6d/d6dd6dFd6dd6dd6dd6d/d6dd6ddU6dd6dVdW6dd6dd6dd6d6id/d6dFd6dFd6dd6dd6dd6dd6dFd6dd6d"d6dd6dFd6dd6dd6dd6ddU6dVdW6dd6dd6dd 6dd 6d 6idd 6dd 6d6idd6d6idd6dd6dd6d d6dj6|j|jddddddgdS(s(Tests that for invalid MSBuild settings.sfolder1;folder2RRRRRRRt NoListingR!tStackFrameRuntimeCheckR#tfalseR%R&R'R(t BuildingInIDEtCdeclR)t CompileAsCR+tCompileAsManagedtCreateHotpatchableImagetProgramDatabaseR-R0sstring1;string2R1tStreamingSIMDExtensionsR2R3R6R7R8tPromptR9t SyncCThrowR:R;tNeitherR<R=tPreciseR>R?s file1;file2R@RAtFunctionLevelLinkingRCRDtOnlyExplicitInlineREtIntrinsicFunctionsRGtMultiProcessorCompilationtObjectFileNameRIRJt OpenMPSupporttDisabledRLtNotUsingtPrecompiledHeaderRMtPrecompiledHeaderOutputFiletPreprocessKeepCommentsROs a string1tPreprocessOutputPathtPreprocessSuppressLineNumberstPreprocessToFileRtProcessorNumberRPt MultiThreadedRQRRRSRTRUt1ByteRVRWta_foldertTrackerLogDirectorytTreatSpecificWarningsAsErrorstTreatWarningAsErrorRXRYRZR[tUseUnicodeForAssemblerListingtTurnOffAllWarningsR_R`RaRbRRcRfRgRhRitRjRkRlt ForceIJWImageRmtEnabledtCLRSupportLastErrortMTAThreadingAttributeRnRotX86ImagetCreateHotPatchableImageRpRqRrtNotSetRsRtRuRvRwRxtForceFileOutputRyRzR{R}R~RRRt a_file_listRtImageHasSafeExceptionHandlersRRRRtLinkDLLtSendErrorReporttLinkErrorReportingt LinkStatustUseLinkTimeCodeGenerationRRRRRRRtMinimumRequiredVersionRtMSDOSStubFileNamet NoEntryPointRRRtPreventDllBindingRRRRRtSectionAlignmentRtLinkVerboseREFRtSpecifySectionAttributesRRRtConsoleRtSupportNobindOfDelayLoadedDLLRRtSwapRunFromNETt MachineX86RRtTreatLinkerWarningAsErrorsRRRt AsInvokerRRRtLinkt0x236RtNullTerminateStringsRtResourceCompiletApplicationConfigurationModetClientStubFileRtSignedRtDllDataFileNamet EnableCustomRRRRRRtStubtGenerateClientFilestNonetGenerateServerFilesRRRRtLocaleIDRRRRtServerStubFiletSuppressCompilerWarningstItaniumRt NewFormatt TypeLibFormatRtValidateAllParametersR^R*tMidltDisplayLibrarytPromptImmediatelyRtNamet RemoveObjectst MachineX86itTreatLibWarningAsErrorsR]tVerbosetLibRRRtfaltEnableDPIAwarenessRRtGenerateCategoryTagsRtManifestFromManagedAssemblytnotgood3RtOutputResourceManifestsRRtSuppressDependencyElementRRRtManifestRRtProjectReferencetManifestResourceCompilet EmbedManifestR|RRs5Warning: unrecognized setting ClCompile/Enableprefasts-Warning: unrecognized setting ClCompile/ZZXYZs/Warning: unrecognized setting Manifest/notgood3sFWarning: for Manifest/GenerateCatalogFiles, expected bool; got 'truel'sIWarning: for Lib/TargetMachine, unrecognized enumerated value MachineX86isBWarning: for Manifest/EnableDPIAwareness, expected bool; got 'fal'N(RtValidateMSBuildSettingsRR (R((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt$testValidateMSBuildSettings_settingss"           cCsBi}i}tj||j}|j|||jgdS(sTests an empty conversion.N(RtConvertToMSBuildSettingsRRR (Rt msvs_settingstexpected_msbuild_settingstactual_msbuild_settings((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt"testConvertToMSBuildSettings_empty5s cCsiidd6dd6dd6d6idd 6dd 6d d 6d 6}iidd6dd6dd6d6idd 6dd6dd 6d6}tj||j}|j|||jgdS(sTests a minimal conversion.tdir1Rs/fooRR R#RR*RR9R,RpRtDefaultRRR2R R'RN(RRFRRR (RRGRHRI((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt$testConvertToMSBuildSettings_minimal?s.   c Csiidd6dd6dd6dd6d d 6d d 6d 6idd6dd6dd6dd6d6idd6d6}iidd6dd6d6id6idd6d6}tj||j}|j|||jdddd d!d"d#d$gd%S(&s)Tests conversion that generates warnings.R*RR,Rt12R#t21R%t13R\t14RBRt10Rst31RR9t6RxRRRRRRt0x03ebRswWarning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (12) not in expected range [0, 4)svWarning: while converting VCCLCompilerTool/BrowseInformation to MSBuild, index value (21) not in expected range [0, 3)syWarning: while converting VCCLCompilerTool/UsePrecompiledHeader to MSBuild, index value (13) not in expected range [0, 3)svWarning: while converting VCCLCompilerTool/GeneratePreprocessedFile to MSBuild, value must be one of [0, 1, 2]; got 14sgWarning: while converting VCLinkerTool/Driver to MSBuild, index value (10) not in expected range [0, 4)swWarning: while converting VCLinkerTool/LinkTimeCodeGeneration to MSBuild, index value (31) not in expected range [0, 5)soWarning: while converting VCLinkerTool/ErrorReporting to MSBuild, index value (21) not in expected range [0, 3)spWarning: while converting VCLinkerTool/FixedBaseAddress to MSBuild, index value (6) not in expected range [0, 3)N(RRFRRR (RRGRHRI((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt%testConvertToMSBuildSettings_warnings_sF    cCs ii>dd6dd6dd6dd6dd 6d d 6d d 6dd6dd6dd6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d6d d 6dd!6dd"6dd#6d d$6dd%6d&d'6d&d(6d d)6dd*6dd+6d d,6dd-6dd.6dd/6dd06dd16dd26d3d46dd56dd66dd76dd86dd96dd:6dd;6dd<6dd=6d d>6dd?6dd@6ddA6ddB6ddC6d dD6ddE6ddF6d dG6ddH6ddI6dJ6iNd&dK6ddL6ddM6d&dN6dd6d&dO6ddP6ddQ6d&dR6ddS6d dT6d dU6ddV6ddW6d&dX6ddY6d dZ6d&d[6dd\6dd]6dd^6dd6d d_6d&d`6dda6ddb6ddc6ddd6dde6ddf6ddg6d&dh6ddi6ddj6ddk6ddl6ddm6d dn6d do6ddp6d dq6ddr6dds6ddt6ddu6ddv6ddw6ddx6d dy6ddz6dd{6dd|6dd}6dd~6dd6d d6dd6dd6dd6dd6dd6dd6dd6d d6dd6dd?6dd6dd6d3d6d d6dd6dd6dd6d d6dd6dd6ddE6dd6d6i dd6dd6dd6dd+6dd76dd6dd6dd?6ddB6d6idd6dd6dd6dd6dd6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd+6dd6dd6dd6dd76dd6dd6d3d>6dd?6d d6dd6ddB6dd6ddF6ddG6d6i d&dK6ddL6ddM6dd6dd6dd`6ddg6d&d6ddp6ddx6dd{6dd?6ddE6d6id&d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd?6dd6dd6dd6dd6ddE6dd6d6}i i<dd6dd6dd6dd6dd 6dd 6dd 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6dd#6dd$6dd%6d&d'6d&d(6dd6dd*6dd+6dd,6dd6dd.6dd6dd06dd16dd6dd46dd6dd56dd6dd6dd76dd6dd6dd86dd96dd:6dd;6dd<6dd=6dd>6dd?6dd6dd@6ddA6ddB6ddC6ddG6ddH6ddI6d6iFd&dK6ddL6d&dN6dd6d&dO6ddP6ddQ6d&dR6ddS6ddT6ddU6ddV6ddW6d&dX6ddY6dZdZ6d&d[6dd\6dd]6dd^6dd_6d&d`6dda6ddb6ddd6dde6ddf6ddg6ddi6d&d6ddk6ddl6ddm6ddn6dd6ddq6ddr6dds6ddt6ddu6ddv6ddw6ddx6dd6ddz6dd{6dd|6dd}6dd~6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd?6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6d6i dd6dd6dd6dd+6dd76dd6dd6dd?6ddB6d6idd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd+6dd6dd6dd6dd76dd6dd6dd>6dd?6dd6dd6ddB6dd6ddF6ddG6d6i d&dK6ddL6dd6dd6dd`6ddg6d&d6ddx6dd{6dd?6ddE6d6id&d6dd6dd6dd6dd6dd6dd6dd6dd6dd?6dd6dd6dd6dd6d6idd6d6iddp6dd6d6idd6ddc6ddj6ddo6d6}tj||j}|j|||jgdS(s-Tests conversion of all the MSBuild settings.sfolder1;folder2;folder3Rta_stringRRRRR R!R*R#R,R%R&R'R(R)R+t4R-R.R/R0sd1;d2;d3R1R2R3R4R5R6R9R:R;R<R=R>R?sfile1;file2;file3R@RARBRCRDRERFRGRHRIRJRKt3RLRMRNRORPRQRRRSRTRURVRWRXRYRZR[R\R]R^R_R`RaRRcRft%AdditionalLibraryDirectories_excludedRgRhRiRjRkRlRmRnRoRpRqRrRsRtRuRvRwRxRyRzR{R|R}R~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRCRRtmy_nameRRRRRRRRRs a_string /JRRRRtEditAndContinueRRtAsyncRtStrictRt AnySuitableRRRtFulltCreateRRRRRRRRtLevel2RRRtSTAThreadingAttributet NoErrorReportR t PGInstrumentRtWindowsRt MachineARMtHighestAvailableRRURtUnsignedR#tAlltWin32R/R0R8R@RBRAN(RRFRRR (RRGRHRI((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt+testConvertToMSBuildSettings_full_synthetics`              cCsd ii>dd6dd6dd6dd6d d 6d d 6d d 6dd6dd6d d6d d6dd6dd6dd6dd6dd6d d6dd6dd6dd6dd 6d!d"6d!d#6dd$6d!d%6dd&6d d'6dd(6d)d*6d+d,6d!d-6dd.6dd/6d d06dd16dd26d3d46dd56dd66dd76d d86d9d:6d;d<6d=d>6d?d@6d dA6ddB6ddC6ddD6ddE6d dF6ddG6ddH6ddI6dJdK6ddL6dMdN6ddO6ddP6d dQ6ddR6dSdT6dU6iMdVdW6dXdY6dZd[6d\d6d]d^6dd_6d d`6dadb6dcdd6d de6d df6ddg6dMdh6didj6ddk6d!dl6dmdn6d do6ddp6dqdr6d!d"6d ds6dtdu6dvdw6ddx6ddy6ddz6d{d|6d}d~6dd6dd6dd6dd6dd6dd6dd6d!d6dMd6dd6d d6dd6dd6dad6dd6dqd6dd6dd6d!d6d!d6dd6dd6dd6dd6dd6d d6dd6dd6dd6d d6dd6dd6dtd6d d6dd6ddG6dd6dd6d d6d d6dd6dd6d}d6d!d6dd6dd6ddO6dd6d6idd6dd6dd6dd/6dd>6dd6dd6d6idd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6ddG6dd6dd6dd6dd6ddO6dd6d6}ii<dd6dd6dd6dd6dd 6dd 6dd 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd"6dd#6dd$6dd%6dd&6dd'6dd(6d)d*6d+d,6dd6dd.6dd/6dd06dd6dd26dd6dd56dd66dd6dd86dd6d;d:6dd6dd6d=d>6dd6dd6dd@6ddA6ddB6ddC6ddD6ddE6ddF6ddG6dd6ddH6ddI6dJdK6ddL6ddQ6ddR6ddT6d6iFdVdW6dXdY6dZd[6d\d6d]d^6dd_6dd`6dadb6dcdd6dde6ddf6ddg6ddh6didj6ddk6ddl6dmdn6ddo6ddp6dqdr6dds6dtdu6dvdw6ddx6ddz6d{d|6d}d~6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d6dd6dad6dd6dqd6dd6dd6dd 6dd6d d6dd6dd6dd6dd6dd6dd6dd6d d6dd6dd6dtd6d d6dd6ddG6dd6dd6dd6dd6dd6dd6d}d6dd6dd6dd6d6idd6dd6dd6dd/6dd>6dd6dd6d6idd6dd6dd6dd6dd6dd6dd6dd6dd6ddG6dd6dd6dd6dd6d6idd6dd6d6idd6ddy6dd6dd6d6idd6d6}tj||j}|j|||jgdS(s$ Tests the conversion of an actual project. A VS2008 project with most of the options defined was created through the VS2008 IDE. It was then converted to VS2010. The tool settings found in the .vcproj and .vcxproj files were converted to the two dictionaries msvs_settings and expected_msbuild_settings. Note that for many settings, the VS2010 converter adds macros like %(AdditionalIncludeDirectories) to make sure than inherited values are included. Since the Gyp projects we generate do not use inheritance, we removed these macros. They were: ClCompile: AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)' AdditionalOptions: ' %(AdditionalOptions)' AdditionalUsingDirectories: ';%(AdditionalUsingDirectories)' DisableSpecificWarnings: ';%(DisableSpecificWarnings)', ForcedIncludeFiles: ';%(ForcedIncludeFiles)', ForcedUsingFiles: ';%(ForcedUsingFiles)', PreprocessorDefinitions: ';%(PreprocessorDefinitions)', UndefinePreprocessorDefinitions: ';%(UndefinePreprocessorDefinitions)', Link: AdditionalDependencies: ';%(AdditionalDependencies)', AdditionalLibraryDirectories: ';%(AdditionalLibraryDirectories)', AdditionalManifestDependencies: ';%(AdditionalManifestDependencies)', AdditionalOptions: ' %(AdditionalOptions)', AddModuleNamesToAssembly: ';%(AddModuleNamesToAssembly)', AssemblyLinkResource: ';%(AssemblyLinkResource)', DelayLoadDLLs: ';%(DelayLoadDLLs)', EmbedManagedResourceFile: ';%(EmbedManagedResourceFile)', ForceSymbolReferences: ';%(ForceSymbolReferences)', IgnoreSpecificDefaultLibraries: ';%(IgnoreSpecificDefaultLibraries)', ResourceCompile: AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)', AdditionalOptions: ' %(AdditionalOptions)', PreprocessorDefinitions: ';%(PreprocessorDefinitions)', Manifest: AdditionalManifestFiles: ';%(AdditionalManifestFiles)', AdditionalOptions: ' %(AdditionalOptions)', InputResourceManifests: ';%(InputResourceManifests)', RKRs/moreRttestRs $(IntDir)\aRR*R!RYR#R%s $(IntDir)\eR&RR(R)R+RXR-R'R.R/R0tabcR1R2R3R4R5R6R,R9R:R;R<R=R>R?tdefR@tgeRARBRCRDRERFRGs $(IntDir)\bRHRIRJRKRLs$(IntDir)\$(TargetName).pcheRMs StdAfx.hdRNsWIN32;_DEBUG;_CONSOLEROs$(IntDir)\vc90b.pdbRPRQRRRSRTRURVRWRXRYtwerRZR[R R\R]R^R_R`s $(IntDir)\cRaRtzxRctasdRfts2Rgs/mor2td1RhRiRjtd5Rkt23423RlRmRnRoRptd4RqRrRstd2RtRuRvtf5RwRxtd3RytfssdfsdRzR{R|R}RPR~RNRRs flob;flokRRRtf4Rtf7Rtf6RRRRRs2$(IntDir)\$(TargetFileName).2intermediate.manifestRRRtf2RRtf1RtsdsdRRRs$(OutDir)\$(ProjectName)2.exeRRRs$(TargetDir)$(TargetName).pgddRsFlob.pdbRRRRRRt15RRQRRRRRRRRRtf3RRRRRt333RRs/more3t3084Rs_UNICODE;UNICODE2s$(IntDir)/$(InputName)3.resRRtsfsdfsdRt afdsdafsdt sddfdsadfsaRtfsdfdsRs$(IntDir)\mt.depdfdRRCRt asfsfdafsRs2$(IntDir)\$(TargetFileName).embed.manifest.resfdsfRs$(TargetPath).manifestdfsRtsdfsfdRtsdffsdRtsfsdRRRRRs/more /Js $(IntDir)at AssemblyCodetEnableFastCheckss $(IntDir)etFastCallRR\RtQueueR]tSizeR^RRRs $(IntDir)bRRR`RRs$(IntDir)$(TargetName).pcheRRRRs$(IntDir)vc90b.pdbtMultiThreadedDebugDLLt4BytesRtLevel3s $(IntDir)cRtForceSafeILImageRRtUpOnlyRtQueueForNextLoginR Rs1$(IntDir)$(TargetFileName).2intermediate.manifestRs$(OutDir)$(ProjectName)2.exet LinkVerboseRRRtRequireAdministratorRt0x0c0cs$(IntDir)%(Filename)3.resRR@RAs1$(IntDir)$(TargetFileName).embed.manifest.resfdsfRBN(RRFRRR (RRGRHRI((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt#testConvertToMSBuildSettings_actualFs,          ( t__name__t __module__RR RRRERJRMRVRlR(((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyRs     4 t__main__( t__doc__t cStringIORt ImportErrortiotunittesttgyp.MSVSSettingsRtTestCaseRRtmain(((ss/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyts