diff options
author | Leo Neat <leosneat@gmail.com> | 2020-01-29 11:03:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 11:03:43 -0800 |
commit | 8ffc6db00c83e5f75e92b3c4c63c1924597711a1 (patch) | |
tree | 7cca59f92af682000c57be2e0b8ad5e926e8701f /infra/build_specified_commit_test.py | |
parent | 4dc4c0240f96105f2330a0fc1f5f321a6e796ddb (diff) |
[Infra] CIFuzz pipeline complete. (#3281)
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Testing action build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working build
* Working fuzzers with out error surface
* Working fuzzers with out error surface
* Working fuzzers with out error surface
* Printing std err
* Adding fuzzer timeout
* Adding fuzzer timeout
* Changing fuzzer timeout to fuzz time
* Formatting and refactoring
* Spelling in fuzz_target.py
* Spelling in fuzz_target.py
* Spelling in fuzz_target.py
* Upload artifact fix
* Upload artifact fix
* Upload artifact fix
* Upload artifact fix
* Upload artifact fix
* Upload artifact fix
* Upload artifact fix
* Refactoring error codes.
* reverting helper.py
* reverting helper.py
* reverting helper.py
* chaning method to static
* moving cifuzz file
* Jonathan changes
* Oliver and Jonathan comments
* Oliver and Jonathan comments
* Oliver and Jonathan comments
* Utils unit tests
* Test formatting and documentation
* Build fuzzer test added
* Changed repo manager errors
* Unit and integration tests complete
* Jonathan comments pt.1
* Jonathan comments pt.1
* Jonathan comments pt.1
* adding cifuzz_test
* Build fuzzer test completed
* Run fuzzers test finished.
* Removed SRC dependency
* Jonathan comments pt.2
* Max comments pt.1
* Max comments pt.2
* removing log specified out stream
* Max comments pt.3
* Adding OSS_FUZZ_HOME env var
* Jonathan comments pt.3
* Formatting
* Olivers comments
* Jonathan comments
Diffstat (limited to 'infra/build_specified_commit_test.py')
-rw-r--r-- | infra/build_specified_commit_test.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/infra/build_specified_commit_test.py b/infra/build_specified_commit_test.py index 98e74995..14a3577f 100644 --- a/infra/build_specified_commit_test.py +++ b/infra/build_specified_commit_test.py @@ -66,52 +66,52 @@ class BuildImageIntegrationTests(unittest.TestCase): def test_detect_main_repo_from_commit(self): """Test the detect main repo function from build specific commit module.""" - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'curl', commit='bc5d22c3dede2f04870c37aec9a50474c4b888ad') self.assertEqual(repo_origin, 'https://github.com/curl/curl.git') - self.assertEqual(repo_name, 'curl') + self.assertEqual(repo_path, '/src/curl') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'usrsctp', commit='4886aaa49fb90e479226fcfc3241d74208908232') self.assertEqual(repo_origin, 'https://github.com/weinrank/usrsctp') - self.assertEqual(repo_name, 'usrsctp') + self.assertEqual(repo_path, '/src/usrsctp') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'ndpi', commit='c4d476cc583a2ef1e9814134efa4fbf484564ed7') self.assertEqual(repo_origin, 'https://github.com/ntop/nDPI.git') - self.assertEqual(repo_name, 'ndpi') + self.assertEqual(repo_path, '/src/ndpi') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'notproj', commit='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') self.assertIsNone(repo_origin) - self.assertIsNone(repo_name) + self.assertIsNone(repo_path) def test_detect_main_repo_from_name(self): """Test the detect main repo function from build specific commit module.""" - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'curl', repo_name='curl') self.assertEqual(repo_origin, 'https://github.com/curl/curl.git') - self.assertEqual(repo_name, 'curl') + self.assertEqual(repo_path, '/src/curl') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'yara', repo_name='yara') self.assertEqual(repo_origin, 'https://github.com/VirusTotal/yara.git') - self.assertEqual(repo_name, 'yara') + self.assertEqual(repo_path, '/src/yara') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'usrsctp', repo_name='usrsctp') self.assertEqual(repo_origin, 'https://github.com/weinrank/usrsctp') - self.assertEqual(repo_name, 'usrsctp') + self.assertEqual(repo_path, '/src/usrsctp') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'ndpi', repo_name='nDPI') self.assertEqual(repo_origin, 'https://github.com/ntop/nDPI.git') - self.assertEqual(repo_name, 'ndpi') + self.assertEqual(repo_path, '/src/ndpi') - repo_origin, repo_name = build_specified_commit.detect_main_repo( + repo_origin, repo_path = build_specified_commit.detect_main_repo( 'notproj', repo_name='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') self.assertIsNone(repo_origin) - self.assertIsNone(repo_name) + self.assertIsNone(repo_path) if __name__ == '__main__': |