コード例 #1
0
 @ForAllEnvironments
 public void testNonProjectUpdates() throws Exception {
   final ExecutionEnvironment execEnv = getTestExecutionEnvironment();
   MakeProject makeProject =
       openProject("TestNonProjectUpdates", execEnv, Sync.RFS, Toolchain.GNU);
   changeProjectHost(makeProject, execEnv);
   buildProject(
       makeProject, ActionProvider.COMMAND_BUILD, getSampleBuildTimeout(), TimeUnit.SECONDS);
   File projectDirFile = CndFileUtils.toFile(makeProject.getProjectDirectory());
   NameStatePair[] filesToCheck =
       new NameStatePair[] {
         new NameStatePair(
             new File(projectDirFile, "file_1.c"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "file_1.cc"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "file_1.cpp"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "file_1.cxx"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "file_1.h"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "file_1.hpp"), FileDownloadInfo.State.UNCONFIRMED)
         // new NameStatePair(new File(projectDirFile, "Makefile"),
         // FileDownloadInfo.State.UNCONFIRMED)
       };
   checkInfo(filesToCheck, 12000, RemoteProjectSupport.getPrivateStorage(makeProject));
 }
コード例 #2
0
 @ForAllEnvironments
 public void test_LexYacc_Updates() throws Exception {
   MakeProject makeProject =
       prepareSampleProject(Sync.RFS, Toolchain.GNU, "LexYacc", "LexYacc_Updates");
   int timeout = getSampleBuildTimeout();
   buildProject(makeProject, ActionProvider.COMMAND_CLEAN, timeout, TimeUnit.SECONDS);
   buildProject(makeProject, ActionProvider.COMMAND_BUILD, timeout, TimeUnit.SECONDS);
   File projectDirFile = CndFileUtils.toFile(makeProject.getProjectDirectory());
   NameStatePair[] filesToCheck =
       new NameStatePair[] {
         new NameStatePair(
             new File(projectDirFile, "y.tab.c"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "y.tab.h"), FileDownloadInfo.State.UNCONFIRMED),
         new NameStatePair(
             new File(projectDirFile, "lex.yy.c"), FileDownloadInfo.State.UNCONFIRMED)
       };
   checkInfo(filesToCheck, 10000, RemoteProjectSupport.getPrivateStorage(makeProject));
 }