Created
August 12, 2014 15:24
-
-
Save kageurufu/e528a122b31208ef45f7 to your computer and use it in GitHub Desktop.
python bsearch for finding failing builds of the dolphin emulator for bug hunting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import subprocess | |
f = open("dolphin-list.txt", "r") | |
ALL_FILES = [l.strip() for l in f.readlines()] | |
SOURCE_URL = "https://dl.dolphin-emu.org/builds/" | |
len(ALL_FILES) | |
def bsearch(array, low, high): | |
if (high < low): | |
return False | |
mid = (low + high) / 2 | |
result = is_working(array[mid]) | |
if result: | |
return bsearch(array, mid+1, high) | |
else: | |
return bsearch(array, low, mid-1) | |
print("Done") | |
def is_working(file): | |
r = requests.get(SOURCE_URL + file, stream=True) | |
with open(file, 'wb') as f: | |
for chunk in r.iter_content(chunk_size=1024): | |
if chunk: | |
f.write(chunk) | |
f.flush() | |
proc = subprocess.Popen(["7z", "x", "-o"+file.rsplit(".", 1)[0], file]) | |
proc.wait() | |
print "Trying ", file | |
print "Is this one working?", | |
yn = '' | |
while yn not in ['y', 'n']: | |
yn = raw_input("Y/N") | |
if yn == 'y': | |
return True | |
else: | |
return False | |
bsearch(ALL_FILES, 0, len(ALL_FILES)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dolphin-master-4.0-7-x64.7z | |
dolphin-master-4.0-21-x64.7z | |
dolphin-master-4.0-27-x64.7z | |
dolphin-master-4.0-29-x64.7z | |
dolphin-master-4.0-32-x64.7z | |
dolphin-master-4.0-37-x64.7z | |
dolphin-master-4.0-41-x64.7z | |
dolphin-master-4.0-44-x64.7z | |
dolphin-master-4.0-47-x64.7z | |
dolphin-master-4.0-51-x64.7z | |
dolphin-master-4.0-56-x64.7z | |
dolphin-master-4.0-60-x64.7z | |
dolphin-master-4.0-63-x64.7z | |
dolphin-master-4.0-67-x64.7z | |
dolphin-master-4.0-71-x64.7z | |
dolphin-master-4.0-74-x64.7z | |
dolphin-master-4.0-77-x64.7z | |
dolphin-master-4.0-82-x64.7z | |
dolphin-master-4.0-83-x64.7z | |
dolphin-master-4.0-84-x64.7z | |
dolphin-master-4.0-88-x64.7z | |
dolphin-master-4.0-92-x64.7z | |
dolphin-master-4.0-93-x64.7z | |
dolphin-master-4.0-95-x64.7z | |
dolphin-master-4.0-102-x64.7z | |
dolphin-master-4.0-103-x64.7z | |
dolphin-master-4.0-104-x64.7z | |
dolphin-master-4.0-108-x64.7z | |
dolphin-master-4.0-113-x64.7z | |
dolphin-master-4.0-114-x64.7z | |
dolphin-master-4.0-116-x64.7z | |
dolphin-master-4.0-119-x64.7z | |
dolphin-master-4.0-122-x64.7z | |
dolphin-master-4.0-125-x64.7z | |
dolphin-master-4.0-136-x64.7z | |
dolphin-master-4.0-141-x64.7z | |
dolphin-master-4.0-155-x64.7z | |
dolphin-master-4.0-156-x64.7z | |
dolphin-master-4.0-162-x64.7z | |
dolphin-master-4.0-163-x64.7z | |
dolphin-master-4.0-169-x64.7z | |
dolphin-master-4.0-170-x64.7z | |
dolphin-master-4.0-172-x64.7z | |
dolphin-master-4.0-173-x64.7z | |
dolphin-master-4.0-174-x64.7z | |
dolphin-master-4.0-175-x64.7z | |
dolphin-master-4.0-176-x64.7z | |
dolphin-master-4.0-180-x64.7z | |
dolphin-master-4.0-181-x64.7z | |
dolphin-master-4.0-196-x64.7z | |
dolphin-master-4.0-197-x64.7z | |
dolphin-master-4.0-203-x64.7z | |
dolphin-master-4.0-205-x64.7z | |
dolphin-master-4.0-206-x64.7z | |
dolphin-master-4.0-216-x64.7z | |
dolphin-master-4.0-217-x64.7z | |
dolphin-master-4.0-223-x64.7z | |
dolphin-master-4.0-224-x64.7z | |
dolphin-master-4.0-230-x64.7z | |
dolphin-master-4.0-234-x64.7z | |
dolphin-master-4.0-243-x64.7z | |
dolphin-master-4.0-244-x64.7z | |
dolphin-master-4.0-245-x64.7z | |
dolphin-master-4.0-248-x64.7z | |
dolphin-master-4.0-255-x64.7z | |
dolphin-master-4.0-258-x64.7z | |
dolphin-master-4.0-260-x64.7z | |
dolphin-master-4.0-263-x64.7z | |
dolphin-master-4.0-266-x64.7z | |
dolphin-master-4.0-272-x64.7z | |
dolphin-master-4.0-275-x64.7z | |
dolphin-master-4.0-278-x64.7z | |
dolphin-master-4.0-299-x64.7z | |
dolphin-master-4.0-303-x64.7z | |
dolphin-master-4.0-300-x64.7z | |
dolphin-master-4.0-306-x64.7z | |
dolphin-master-4.0-310-x64.7z | |
dolphin-master-4.0-314-x64.7z | |
dolphin-master-4.0-317-x64.7z | |
dolphin-master-4.0-322-x64.7z | |
dolphin-master-4.0-325-x64.7z | |
dolphin-master-4.0-328-x64.7z | |
dolphin-master-4.0-356-x64.7z | |
dolphin-master-4.0-360-x64.7z | |
dolphin-master-4.0-363-x64.7z | |
dolphin-master-4.0-366-x64.7z | |
dolphin-master-4.0-372-x64.7z | |
dolphin-master-4.0-375-x64.7z | |
dolphin-master-4.0-378-x64.7z | |
dolphin-master-4.0-380-x64.7z | |
dolphin-master-4.0-383-x64.7z | |
dolphin-master-4.0-386-x64.7z | |
dolphin-master-4.0-389-x64.7z | |
dolphin-master-4.0-391-x64.7z | |
dolphin-master-4.0-395-x64.7z | |
dolphin-master-4.0-398-x64.7z | |
dolphin-master-4.0-404-x64.7z | |
dolphin-master-4.0-407-x64.7z | |
dolphin-master-4.0-413-x64.7z | |
dolphin-master-4.0-418-x64.7z | |
dolphin-master-4.0-420-x64.7z | |
dolphin-master-4.0-423-x64.7z | |
dolphin-master-4.0-426-x64.7z | |
dolphin-master-4.0-429-x64.7z | |
dolphin-master-4.0-431-x64.7z | |
dolphin-master-4.0-434-x64.7z | |
dolphin-master-4.0-478-x64.7z | |
dolphin-master-4.0-480-x64.7z | |
dolphin-master-4.0-483-x64.7z | |
dolphin-master-4.0-486-x64.7z | |
dolphin-master-4.0-489-x64.7z | |
dolphin-master-4.0-513-x64.7z | |
dolphin-master-4.0-516-x64.7z | |
dolphin-master-4.0-519-x64.7z | |
dolphin-master-4.0-525-x64.7z | |
dolphin-master-4.0-528-x64.7z | |
dolphin-master-4.0-531-x64.7z | |
dolphin-master-4.0-534-x64.7z | |
dolphin-master-4.0-539-x64.7z | |
dolphin-master-4.0-542-x64.7z | |
dolphin-master-4.0-545-x64.7z | |
dolphin-master-4.0-548-x64.7z | |
dolphin-master-4.0.2-553-x64.7z | |
dolphin-master-4.0-551-x64.7z | |
dolphin-master-4.0-554-x64.7z | |
dolphin-master-4.0-557-x64.7z | |
dolphin-master-4.0-562-x64.7z | |
dolphin-master-4.0-565-x64.7z | |
dolphin-master-4.0-568-x64.7z | |
dolphin-master-4.0-571-x64.7z | |
dolphin-master-4.0-574-x64.7z | |
dolphin-master-4.0-583-x64.7z | |
dolphin-master-4.0-586-x64.7z | |
dolphin-master-4.0-589-x64.7z | |
dolphin-master-4.0-591-x64.7z | |
dolphin-master-4.0-594-x64.7z | |
dolphin-master-4.0-597-x64.7z | |
dolphin-master-4.0-602-x64.7z | |
dolphin-master-4.0-605-x64.7z | |
dolphin-master-4.0-608-x64.7z | |
dolphin-master-4.0-610-x64.7z | |
dolphin-master-4.0-613-x64.7z | |
dolphin-master-4.0-616-x64.7z | |
dolphin-master-4.0-619-x64.7z | |
dolphin-master-4.0-651-x64.7z | |
dolphin-master-4.0-655-x64.7z | |
dolphin-master-4.0-658-x64.7z | |
dolphin-master-4.0-660-x64.7z | |
dolphin-master-4.0-663-x64.7z | |
dolphin-master-4.0-666-x64.7z | |
dolphin-master-4.0-682-x64.7z | |
dolphin-master-4.0-685-x64.7z | |
dolphin-master-4.0-688-x64.7z | |
dolphin-master-4.0-690-x64.7z | |
dolphin-master-4.0-701-x64.7z | |
dolphin-master-4.0-704-x64.7z | |
dolphin-master-4.0-707-x64.7z | |
dolphin-master-4.0-713-x64.7z | |
dolphin-master-4.0-716-x64.7z | |
dolphin-master-4.0-719-x64.7z | |
dolphin-master-4.0-732-x64.7z | |
dolphin-master-4.0-746-x64.7z | |
dolphin-master-4.0-721-x64.7z | |
dolphin-master-4.0-750-x64.7z | |
dolphin-master-4.0-758-x64.7z | |
dolphin-master-4.0-767-x64.7z | |
dolphin-master-4.0-779-x64.7z | |
dolphin-master-4.0-782-x64.7z | |
dolphin-master-4.0-788-x64.7z | |
dolphin-master-4.0-792-x64.7z | |
dolphin-master-4.0-797-x64.7z | |
dolphin-master-4.0-800-x64.7z | |
dolphin-master-4.0-809-x64.7z | |
dolphin-master-4.0-814-x64.7z | |
dolphin-master-4.0-824-x64.7z | |
dolphin-master-4.0-836-x64.7z | |
dolphin-master-4.0-846-x64.7z | |
dolphin-master-4.0-852-x64.7z | |
dolphin-master-4.0-857-x64.7z | |
dolphin-master-4.0-862-x64.7z | |
dolphin-master-4.0-871-x64.7z | |
dolphin-master-4.0-889-x64.7z | |
dolphin-master-4.0-905-x64.7z | |
dolphin-master-4.0-914-x64.7z | |
dolphin-master-4.0-924-x64.7z | |
dolphin-master-4.0-954-x64.7z | |
dolphin-master-4.0-962-x64.7z | |
dolphin-master-4.0-974-x64.7z | |
dolphin-master-4.0-982-x64.7z | |
dolphin-master-4.0-988-x64.7z | |
dolphin-master-4.0-994-x64.7z | |
dolphin-master-4.0-1003-x64.7z | |
dolphin-master-4.0-1015-x64.7z | |
dolphin-master-4.0-1046-x64.7z | |
dolphin-master-4.0-1050-x64.7z | |
dolphin-master-4.0-1056-x64.7z | |
dolphin-master-4.0-1062-x64.7z | |
dolphin-master-4.0-1069-x64.7z | |
dolphin-master-4.0-1073-x64.7z | |
dolphin-master-4.0-1086-x64.7z | |
dolphin-master-4.0-1090-x64.7z | |
dolphin-master-4.0-1100-x64.7z | |
dolphin-master-4.0-1107-x64.7z | |
dolphin-master-4.0-1115-x64.7z | |
dolphin-master-4.0-1121-x64.7z | |
dolphin-master-4.0-1134-x64.7z | |
dolphin-master-4.0-1144-x64.7z | |
dolphin-master-4.0-1196-x64.7z | |
dolphin-master-4.0-1200-x64.7z | |
dolphin-master-4.0-1206-x64.7z | |
dolphin-master-4.0-1210-x64.7z | |
dolphin-master-4.0-1228-x64.7z | |
dolphin-master-4.0-1232-x64.7z | |
dolphin-master-4.0-1239-x64.7z | |
dolphin-master-4.0-1244-x64.7z | |
dolphin-master-4.0-1262-x64.7z | |
dolphin-master-4.0-1268-x64.7z | |
dolphin-master-4.0-1273-x64.7z | |
dolphin-master-4.0-1282-x64.7z | |
dolphin-master-4.0-1300-x64.7z | |
dolphin-master-4.0-1306-x64.7z | |
dolphin-master-4.0-1312-x64.7z | |
dolphin-master-4.0-1321-x64.7z | |
dolphin-master-4.0-1337-x64.7z | |
dolphin-master-4.0-1342-x64.7z | |
dolphin-master-4.0-1349-x64.7z | |
dolphin-master-4.0-1353-x64.7z | |
dolphin-master-4.0-1367-x64.7z | |
dolphin-master-4.0-1372-x64.7z | |
dolphin-master-4.0-1382-x64.7z | |
dolphin-master-4.0-1388-x64.7z | |
dolphin-master-4.0-1394-x64.7z | |
dolphin-master-4.0-1401-x64.7z | |
dolphin-master-4.0-1417-x64.7z | |
dolphin-master-4.0-1422-x64.7z | |
dolphin-master-4.0-1428-x64.7z | |
dolphin-master-4.0-1432-x64.7z | |
dolphin-master-4.0-1438-x64.7z | |
dolphin-master-4.0-1442-x64.7z | |
dolphin-master-4.0-1449-x64.7z | |
dolphin-master-4.0-1458-x64.7z | |
dolphin-master-4.0-1463-x64.7z | |
dolphin-master-4.0-1470-x64.7z | |
dolphin-master-4.0-1476-x64.7z | |
dolphin-master-4.0-1483-x64.7z | |
dolphin-master-4.0-1489-x64.7z | |
dolphin-master-4.0-1503-x64.7z | |
dolphin-master-4.0-1511-x64.7z | |
dolphin-master-4.0-1519-x64.7z | |
dolphin-master-4.0-1527-x64.7z | |
dolphin-master-4.0-1535-x64.7z | |
dolphin-master-4.0-1554-x64.7z | |
dolphin-master-4.0-1564-x64.7z | |
dolphin-master-4.0-1571-x64.7z | |
dolphin-master-4.0-1577-x64.7z | |
dolphin-master-4.0-1586-x64.7z | |
dolphin-master-4.0-1592-x64.7z | |
dolphin-master-4.0-1598-x64.7z | |
dolphin-master-4.0-1603-x64.7z | |
dolphin-master-4.0-1634-x64.7z | |
dolphin-master-4.0-1681-x64.7z | |
dolphin-master-4.0-1696-x64.7z | |
dolphin-master-4.0-1709-x64.7z | |
dolphin-master-4.0-1713-x64.7z | |
dolphin-master-4.0-1724-x64.7z | |
dolphin-master-4.0-1734-x64.7z | |
dolphin-master-4.0-1744-x64.7z | |
dolphin-master-4.0-1755-x64.7z | |
dolphin-master-4.0-1767-x64.7z | |
dolphin-master-4.0-1771-x64.7z | |
dolphin-master-4.0-1778-x64.7z | |
dolphin-master-4.0-1786-x64.7z | |
dolphin-master-4.0-1790-x64.7z | |
dolphin-master-4.0-1796-x64.7z | |
dolphin-master-4.0-1804-x64.7z | |
dolphin-master-4.0-1816-x64.7z | |
dolphin-master-4.0-1822-x64.7z | |
dolphin-master-4.0-1841-x64.7z | |
dolphin-master-4.0-1847-x64.7z | |
dolphin-master-4.0-1855-x64.7z | |
dolphin-master-4.0-1862-x64.7z | |
dolphin-master-4.0-1867-x64.7z | |
dolphin-master-4.0-1873-x64.7z | |
dolphin-master-4.0-1879-x64.7z | |
dolphin-master-4.0-1887-x64.7z | |
dolphin-master-4.0-1896-x64.7z | |
dolphin-master-4.0-1900-x64.7z | |
dolphin-master-4.0-1906-x64.7z | |
dolphin-master-4.0-1915-x64.7z | |
dolphin-master-4.0-1921-x64.7z | |
dolphin-master-4.0-1927-x64.7z | |
dolphin-master-4.0-1933-x64.7z | |
dolphin-master-4.0-1941-x64.7z | |
dolphin-master-4.0-1947-x64.7z | |
dolphin-master-4.0-1955-x64.7z | |
dolphin-master-4.0-1977-x64.7z | |
dolphin-master-4.0-1981-x64.7z | |
dolphin-master-4.0-1989-x64.7z | |
dolphin-master-4.0-1993-x64.7z | |
dolphin-master-4.0-1999-x64.7z | |
dolphin-master-4.0-2001-x64.7z | |
dolphin-master-4.0-2008-x64.7z | |
dolphin-master-4.0-2012-x64.7z | |
dolphin-master-4.0-2018-x64.7z | |
dolphin-master-4.0-2024-x64.7z | |
dolphin-master-4.0-2034-x64.7z | |
dolphin-master-4.0-2045-x64.7z | |
dolphin-master-4.0-2055-x64.7z | |
dolphin-master-4.0-2067-x64.7z | |
dolphin-master-4.0-2078-x64.7z | |
dolphin-master-4.0-2084-x64.7z | |
dolphin-master-4.0-2090-x64.7z | |
dolphin-master-4.0-2105-x64.7z | |
dolphin-master-4.0-2111-x64.7z | |
dolphin-master-4.0-2117-x64.7z | |
dolphin-master-4.0-2123-x64.7z | |
dolphin-master-4.0-2130-x64.7z | |
dolphin-master-4.0-2137-x64.7z | |
dolphin-master-4.0-2144-x64.7z | |
dolphin-master-4.0-2175-x64.7z | |
dolphin-master-4.0-2180-x64.7z | |
dolphin-master-4.0-2187-x64.7z | |
dolphin-master-4.0-2191-x64.7z | |
dolphin-master-4.0-2198-x64.7z | |
dolphin-master-4.0-2200-x64.7z | |
dolphin-master-4.0-2206-x64.7z | |
dolphin-master-4.0-2213-x64.7z | |
dolphin-master-4.0-2219-x64.7z | |
dolphin-master-4.0-2223-x64.7z | |
dolphin-master-4.0-2235-x64.7z | |
dolphin-master-4.0-2246-x64.7z | |
dolphin-master-4.0-2250-x64.7z | |
dolphin-master-4.0-2256-x64.7z | |
dolphin-master-4.0-2263-x64.7z | |
dolphin-master-4.0-2286-x64.7z | |
dolphin-master-4.0-2291-x64.7z | |
dolphin-master-4.0-2297-x64.7z | |
dolphin-master-4.0-2306-x64.7z | |
dolphin-master-4.0-2310-x64.7z | |
dolphin-master-4.0-2317-x64.7z | |
dolphin-master-4.0-2321-x64.7z | |
dolphin-master-4.0-2328-x64.7z | |
dolphin-master-4.0-2332-x64.7z | |
dolphin-master-4.0-2352-x64.7z | |
dolphin-master-4.0-2358-x64.7z | |
dolphin-master-4.0-2362-x64.7z | |
dolphin-master-4.0-2368-x64.7z | |
dolphin-master-4.0-2372-x64.7z | |
dolphin-master-4.0-2378-x64.7z | |
dolphin-master-4.0-2382-x64.7z | |
dolphin-master-4.0-2388-x64.7z | |
dolphin-master-4.0-2392-x64.7z | |
dolphin-master-4.0-2398-x64.7z | |
dolphin-master-4.0-2400-x64.7z | |
dolphin-master-4.0-2419-x64.7z | |
dolphin-master-4.0-2423-x64.7z | |
dolphin-master-4.0-2434-x64.7z | |
dolphin-master-4.0-2444-x64.7z | |
dolphin-master-4.0-2455-x64.7z | |
dolphin-master-4.0-2460-x64.7z | |
dolphin-master-4.0-2466-x64.7z | |
dolphin-master-4.0-2472-x64.7z | |
dolphin-master-4.0-2488-x64.7z | |
dolphin-master-4.0-2492-x64.7z | |
dolphin-master-4.0-2498-x64.7z | |
dolphin-master-4.0-2507-x64.7z | |
dolphin-master-4.0-2512-x64.7z | |
dolphin-master-4.0-2524-x64.7z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment