language-extensions/R/test/src/RExtensionLibraryApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: InterchangedPackagesTest
//
// Description:
//  Tries to install a source tar.gz package on Windows (succeeds since Rtools is installed)
//  and a zip of windows built package on Linux (fails).
//
InterchangedPackagesTest
Description:
Tries to install a source tar.gz package on Windows (succeeds since Rtools is installed)
and a zip of windows built package on Linux (fails).
InterchangedPackagesTest Description : Tries to install a source tar . gz package on Windows ( succeeds since Rtools is installed ) and a zip of windows built package on Linux ( fails ) .
TEST_F(RExtensionLibraryApiTests, InterchangedPackagesTest)
	{
		string libName = "assertthat";
		string version = "0.2.1";
		string zipFileName =
			sm_PublicDbIdUserIdPrefix + libName + "interchange_" + version + x_FileExtension;
		fs::path pkgPath;
		pkgPath = sm_packagesSourcePath / x_OsName / zipFileName;
		EXPECT_TRUE(fs::exists(pkgPath));
		bool isWindows = x_OsName.compare("windows") == 0;
		InstallAndTest(
			libName,
			pkgPath.string(),
			sm_publicLibraryPath,
			version,
			sm_publicLibraryPath,
			isWindows);  successfulInstall
	}
TEST_F ( RExtensionLibraryApiTests , InterchangedPackagesTest ) { string libName = " " ; string version = " " ; string zipFileName = sm_PublicDbIdUserIdPrefix + libName + " " + version + x_FileExtension ; fs :: path pkgPath ; pkgPath = sm_packagesSourcePath / x_OsName / zipFileName ; EXPECT_TRUE ( fs :: exists ( pkgPath ) ) ; bool isWindows = x_OsName . compare ( " " ) == 0 ; InstallAndTest ( libName , pkgPath . string ( ) , sm_publicLibraryPath , version , sm_publicLibraryPath , isWindows ) ; }
Name: InterchangedPackagesTest
Description:
Tries to install a source tar.gz package on Windows (succeeds since Rtools is installed)
and a zip of windows built package on Linux (fails).
Name : InterchangedPackagesTest Description : Tries to install a source tar . gz package on Windows ( succeeds since Rtools is installed ) and a zip of windows built package on Linux ( fails ) .
// Installation should succeed on windows, fail on linux. // // successfulInstall