Beispiel #1
0
 def test_generate_swift_project(self, _):
   """Tests that the swift project uses the correct base image."""
   helper._generate_impl(helper.Project(self.PROJECT_NAME), 'swift')
   self._verify_templated_files(
       templates.TEMPLATES,
       os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.PROJECT_NAME),
       'swift')
Beispiel #2
0
 def test_generate_oss_fuzz_project(self, _):
   """Tests that the correct files are generated for an OSS-Fuzz project."""
   helper._generate_impl(helper.Project(self.PROJECT_NAME),
                         self.PROJECT_LANGUAGE)
   self._verify_templated_files(
       templates.TEMPLATES,
       os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.PROJECT_NAME),
       self.PROJECT_LANGUAGE)
Beispiel #3
0
 def test_generate_external_project(self):
   """Tests that the correct files are generated for a non-OSS-Fuzz project."""
   build_integration_path = '/newfakeproject/build-integration'
   helper._generate_impl(
       helper.Project('/newfakeproject/',
                      is_external=True,
                      build_integration_path=build_integration_path))
   self._verify_templated_files(templates.EXTERNAL_TEMPLATES,
                                build_integration_path)