Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: tools/push-to-trunk/test_scripts.py

Issue 404093002: Fix automatic version update. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/push-to-trunk/push_to_trunk.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 the V8 project authors. All rights reserved. 2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 Git("branch", " branch1\n* branch2\n"), 748 Git("branch", " branch1\n* branch2\n"),
749 Git("checkout -b %s svn/bleeding_edge" % TEST_CONFIG[BRANCHNAME], ""), 749 Git("checkout -b %s svn/bleeding_edge" % TEST_CONFIG[BRANCHNAME], ""),
750 Git("svn find-rev r123455", "push_hash\n"), 750 Git("svn find-rev r123455", "push_hash\n"),
751 Git(("log -1 --format=%H --grep=" 751 Git(("log -1 --format=%H --grep="
752 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\" " 752 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\" "
753 "svn/trunk"), "hash2\n"), 753 "svn/trunk"), "hash2\n"),
754 Git("log -1 hash2", "Log message\n"), 754 Git("log -1 hash2", "Log message\n"),
755 Git("log -1 --format=%s hash2", 755 Git("log -1 --format=%s hash2",
756 "Version 3.4.5 (based on bleeding_edge revision r1234)\n"), 756 "Version 3.4.5 (based on bleeding_edge revision r1234)\n"),
757 Git("svn find-rev r1234", "hash3\n"), 757 Git("svn find-rev r1234", "hash3\n"),
758 Git("checkout -f master -- %s" % TEST_CONFIG[VERSION_FILE], "", 758 Git("checkout -f svn/bleeding_edge -- %s" % TEST_CONFIG[VERSION_FILE],
759 cb=self.WriteFakeVersionFile), 759 "", cb=self.WriteFakeVersionFile),
760 Git("checkout -f hash2 -- %s" % TEST_CONFIG[VERSION_FILE], "", 760 Git("checkout -f hash2 -- %s" % TEST_CONFIG[VERSION_FILE], "",
761 cb=self.WriteFakeVersionFile), 761 cb=self.WriteFakeVersionFile),
762 Git("log --format=%H hash3..push_hash", "rev1\n"), 762 Git("log --format=%H hash3..push_hash", "rev1\n"),
763 Git("log -1 --format=%s rev1", "Log text 1.\n"), 763 Git("log -1 --format=%s rev1", "Log text 1.\n"),
764 Git("log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), 764 Git("log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"),
765 Git("log -1 --format=%an rev1", "author1@chromium.org\n"), 765 Git("log -1 --format=%an rev1", "author1@chromium.org\n"),
766 Git("svn fetch", "fetch result\n"), 766 Git("svn fetch", "fetch result\n"),
767 Git("checkout -f svn/bleeding_edge", ""), 767 Git("checkout -f svn/bleeding_edge", ""),
768 Git("diff svn/trunk push_hash", "patch content\n"), 768 Git("diff svn/trunk push_hash", "patch content\n"),
769 Git("svn find-rev push_hash", "123455\n"), 769 Git("svn find-rev push_hash", "123455\n"),
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 Git("checkout -b auto-bump-up-version lkgr_hash", ""), 1305 Git("checkout -b auto-bump-up-version lkgr_hash", ""),
1306 Git("checkout -f bleeding_edge", ""), 1306 Git("checkout -f bleeding_edge", ""),
1307 Git("branch", ""), 1307 Git("branch", ""),
1308 Git("diff --name-only lkgr_hash lkgr_hash^", ""), 1308 Git("diff --name-only lkgr_hash lkgr_hash^", ""),
1309 Git("checkout -f master", "", cb=ResetVersion(11, 5)), 1309 Git("checkout -f master", "", cb=ResetVersion(11, 5)),
1310 Git("pull", ""), 1310 Git("pull", ""),
1311 Git("checkout -b auto-bump-up-version bleeding_edge", "", 1311 Git("checkout -b auto-bump-up-version bleeding_edge", "",
1312 cb=ResetVersion(11, 4)), 1312 cb=ResetVersion(11, 4)),
1313 Git("commit -am \"[Auto-roll] Bump up version to 3.11.6.0\n\n" 1313 Git("commit -am \"[Auto-roll] Bump up version to 3.11.6.0\n\n"
1314 "TBR=author@chromium.org\"", ""), 1314 "TBR=author@chromium.org\"", ""),
1315 Git("cl upload --send-mail --email \"author@chromium.org\" -f", ""), 1315 Git("cl upload --send-mail --email \"author@chromium.org\" -f "
1316 "--bypass-hooks", ""),
1316 Git("cl dcommit -f --bypass-hooks", ""), 1317 Git("cl dcommit -f --bypass-hooks", ""),
1317 Git("checkout -f bleeding_edge", ""), 1318 Git("checkout -f bleeding_edge", ""),
1318 Git("branch", "auto-bump-up-version\n* bleeding_edge"), 1319 Git("branch", "auto-bump-up-version\n* bleeding_edge"),
1319 Git("branch -D auto-bump-up-version", ""), 1320 Git("branch -D auto-bump-up-version", ""),
1320 ]) 1321 ])
1321 1322
1322 self.ExpectReadURL([ 1323 self.ExpectReadURL([
1323 URL("https://v8-status.appspot.com/lkgr", "12345"), 1324 URL("https://v8-status.appspot.com/lkgr", "12345"),
1324 URL("https://v8-status.appspot.com/current?format=json", 1325 URL("https://v8-status.appspot.com/current?format=json",
1325 "{\"message\": \"Tree is open\"}"), 1326 "{\"message\": \"Tree is open\"}"),
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 1434
1434 Review URL: https://codereview.chromium.org/83173002 1435 Review URL: https://codereview.chromium.org/83173002
1435 1436
1436 ------------------------------------------------------------------------""") 1437 ------------------------------------------------------------------------""")
1437 self.assertEquals( 1438 self.assertEquals(
1438 """Prepare push to trunk. Now working on version 3.23.11. 1439 """Prepare push to trunk. Now working on version 3.23.11.
1439 1440
1440 R=danno@chromium.org 1441 R=danno@chromium.org
1441 1442
1442 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1443 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/push_to_trunk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698