public void ServiceCommandsWithMultipleRepos() { GVFSFunctionalTestEnlistment enlistment1 = this.CreateNewEnlistment(); GVFSFunctionalTestEnlistment enlistment2 = this.CreateNewEnlistment(); string[] repoRootList = new string[] { enlistment1.EnlistmentRoot, enlistment2.EnlistmentRoot }; GVFSProcess gvfsProcess1 = new GVFSProcess( GVFSTestConfig.PathToGVFS, enlistment1.EnlistmentRoot, enlistment1.LocalCacheRoot); GVFSProcess gvfsProcess2 = new GVFSProcess( GVFSTestConfig.PathToGVFS, enlistment2.EnlistmentRoot, enlistment2.LocalCacheRoot); this.RunServiceCommandAndCheckOutput("--list-mounted", expectedRepoRoots: repoRootList); this.RunServiceCommandAndCheckOutput("--unmount-all", expectedRepoRoots: repoRootList); // Check both are unmounted gvfsProcess1.IsEnlistmentMounted().ShouldEqual(false); gvfsProcess2.IsEnlistmentMounted().ShouldEqual(false); this.RunServiceCommandAndCheckOutput("--list-mounted", EmptyRepoList); this.RunServiceCommandAndCheckOutput("--unmount-all", EmptyRepoList); this.RunServiceCommandAndCheckOutput("--mount-all", expectedRepoRoots: repoRootList); // Check both are mounted gvfsProcess1.IsEnlistmentMounted().ShouldEqual(true); gvfsProcess2.IsEnlistmentMounted().ShouldEqual(true); this.RunServiceCommandAndCheckOutput("--list-mounted", expectedRepoRoots: repoRootList); }
public void ServiceCommandsWithMultipleRepos() { GVFSFunctionalTestEnlistment enlistment1 = this.CreateNewEnlistment(); GVFSFunctionalTestEnlistment enlistment2 = this.CreateNewEnlistment(); string[] repoRootList = new string[] { enlistment1.EnlistmentRoot, enlistment2.EnlistmentRoot }; GVFSProcess gvfsProcess1 = new GVFSProcess( Path.Combine(TestContext.CurrentContext.TestDirectory, Properties.Settings.Default.PathToGVFS), enlistment1.EnlistmentRoot); GVFSProcess gvfsProcess2 = new GVFSProcess( Path.Combine(TestContext.CurrentContext.TestDirectory, Properties.Settings.Default.PathToGVFS), enlistment2.EnlistmentRoot); this.RunServiceCommandAndCheckOutput("--list-mounted", expectedRepoRoots: repoRootList); this.RunServiceCommandAndCheckOutput("--unmount-all", expectedRepoRoots: repoRootList); // Check both are unmounted gvfsProcess1.IsEnlistmentMounted().ShouldEqual(false); gvfsProcess2.IsEnlistmentMounted().ShouldEqual(false); this.RunServiceCommandAndCheckOutput("--list-mounted", expectedRepoRoots: repoRootList); this.RunServiceCommandAndCheckOutput("--unmount-all", EmptyRepoList); this.RunServiceCommandAndCheckOutput("--mount-all", expectedRepoRoots: repoRootList); // Check both are mounted gvfsProcess1.IsEnlistmentMounted().ShouldEqual(true); gvfsProcess2.IsEnlistmentMounted().ShouldEqual(true); this.RunServiceCommandAndCheckOutput("--list-mounted", expectedRepoRoots: repoRootList); }
public void SetupTest() { GVFSProcess gvfsProcess = new GVFSProcess( Path.Combine(TestContext.CurrentContext.TestDirectory, Properties.Settings.Default.PathToGVFS), this.Enlistment.EnlistmentRoot); if (!gvfsProcess.IsEnlistmentMounted()) { gvfsProcess.Mount(); } }
public void SetupTest() { GVFSProcess gvfsProcess = new GVFSProcess( GVFSTestConfig.PathToGVFS, this.Enlistment.EnlistmentRoot, Path.Combine(this.Enlistment.EnlistmentRoot, ".gvfs")); if (!gvfsProcess.IsEnlistmentMounted()) { gvfsProcess.Mount(); } }