language-extensions/R/test/src/RExtensionLibraryApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: BasicZipInstallTest
//
// Description:
//  Installs a ZIP R package. On Windows, the zip is a built R package.
//  On Linux, the zip is actually a tar gz file containing the source of the R package
//  and is built as part of install.
//  This is because SQL Server names the external library files with .zip extension on all
//  platforms and we want to test in a similar way.
//
BasicZipInstallTest
Description:
Installs a ZIP R package. On Windows, the zip is a built R package.
On Linux, the zip is actually a tar gz file containing the source of the R package
and is built as part of install.
This is because SQL Server names the external library files with .zip extension on all
platforms and we want to test in a similar way.
BasicZipInstallTest Description : Installs a ZIP R package . On Windows the zip is a built R package . On Linux the zip is actually a tar gz file containing the source of the R package and is built as part of install . This is because SQL Server names the external library files with . zip extension on all platforms and we want to test in a similar way .
TEST_F(RExtensionLibraryApiTests, BasicZipInstallTest)
	{
		string libName = "assertthat";
		string version = "0.2.1";
		string zipFileName = sm_PublicDbIdUserIdPrefix +
			libName + "_" + version + x_FileExtension;
		fs::path pkgPath = sm_packagesSourcePath / x_OsName / zipFileName;
		EXPECT_TRUE(fs::exists(pkgPath));
		InstallAndTest(
			libName,
			pkgPath.string(),
			sm_publicLibraryPath,
			version);
		UninstallAndTest(
			libName,
			sm_publicLibraryPath);
	}
TEST_F ( RExtensionLibraryApiTests , BasicZipInstallTest ) { string libName = " " ; string version = " " ; string zipFileName = sm_PublicDbIdUserIdPrefix + libName + " " + version + x_FileExtension ; fs :: path pkgPath = sm_packagesSourcePath / x_OsName / zipFileName ; EXPECT_TRUE ( fs :: exists ( pkgPath ) ) ; InstallAndTest ( libName , pkgPath . string ( ) , sm_publicLibraryPath , version ) ; UninstallAndTest ( libName , sm_publicLibraryPath ) ; }
Name: BasicZipInstallTest
Description:
Installs a ZIP R package.
Name : BasicZipInstallTest Description : Installs a ZIP R package .