From b21b4377a88098c72b93936b84e904efd6ef2661 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 23 Jun 2015 23:50:14 +0200 Subject: [PATCH] Add a smoke test to build_release.py. --- scripts/build_release.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/build_release.py b/scripts/build_release.py index a9371ab53..a37ecf426 100755 --- a/scripts/build_release.py +++ b/scripts/build_release.py @@ -78,6 +78,12 @@ def _maybe_remove(path): pass +def smoke_test(executable): + """Try starting the given qutebrowser executable.""" + subprocess.check_call([executable, '--no-err-windows', '--nowindow', + '--temp-basedir', 'about:blank', ':later 500 quit']) + + def build_windows(): """Build windows executables/setups.""" parts = str(sys.version_info.major), str(sys.version_info.minor) @@ -95,6 +101,11 @@ def build_windows(): utils.print_title("Running 64bit freeze.py bdist_msi") call_freeze('bdist_msi', python=python_x64) + utils.print_title("Running 32bit smoke test") + smoke_test('build/exe.win32-{}/qutebrowser.exe'.format(dotver)) + utils.print_title("Running 64bit smoke test") + smoke_test('build/exe.win-amd64-{}/qutebrowser.exe'.format(dotver)) + destdir = os.path.join('dist', 'zip') _maybe_remove(destdir) os.makedirs(destdir)