From b91030fde427831b5ef15a89992b217c92105b25 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 1 Oct 2022 19:49:22 -0700 Subject: [PATCH] Add CoreTemp and stress tests launcher --- scripts/launch_stress_tests.py | 14 ++++++++++++++ scripts/wk/cfg/launchers.py | 6 ++++++ scripts/wk/cfg/sources.py | 2 ++ scripts/wk/kit/build_win.py | 30 +++++++++++++++++++++++++----- 4 files changed, 47 insertions(+), 5 deletions(-) create mode 100755 scripts/launch_stress_tests.py diff --git a/scripts/launch_stress_tests.py b/scripts/launch_stress_tests.py new file mode 100755 index 00000000..6b68b51b --- /dev/null +++ b/scripts/launch_stress_tests.py @@ -0,0 +1,14 @@ +"""WizardKit: Launch Stress Tests Tool""" +# vim: sts=2 sw=2 ts=2 + +import os +import sys + +os.chdir(os.path.dirname(os.path.realpath(__file__))) +sys.path.append(os.getcwd()) +import wk # pylint: disable=wrong-import-position + +wk.kit.tools.run_tool('CoreTemp', 'CoreTemp', popen=True) +wk.kit.tools.run_tool('FurMark', 'FurMark', popen=True) +wk.kit.tools.run_tool('Prime95', 'prime95', popen=True) +wk.kit.tools.run_tool('RUST', 'RUST', popen=True) \ No newline at end of file diff --git a/scripts/wk/cfg/launchers.py b/scripts/wk/cfg/launchers.py index 3937c96a..70ec88ff 100644 --- a/scripts/wk/cfg/launchers.py +++ b/scripts/wk/cfg/launchers.py @@ -265,6 +265,12 @@ LAUNCHERS = { 'L_ITEM': 'OOSU10.exe', 'L_ARGS': '1201.cfg', }, + 'Stress Tests': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'launch_stress_tests.py', + 'L_ELEV': 'True', + }, 'UninstallView': { 'L_TYPE': 'Executable', 'L_PATH': 'UninstallView', diff --git a/scripts/wk/cfg/sources.py b/scripts/wk/cfg/sources.py index 8ff81bd9..a493792a 100644 --- a/scripts/wk/cfg/sources.py +++ b/scripts/wk/cfg/sources.py @@ -15,6 +15,8 @@ SOURCES = { 'AdwCleaner': 'https://adwcleaner.malwarebytes.com/adwcleaner?channel=release', 'Autologon32': 'http://live.sysinternals.com/Autologon.exe', 'Autologon64': 'http://live.sysinternals.com/Autologon64.exe', + 'CoreTemp32': 'https://www.alcpu.com/CoreTemp/CoreTemp32.zip', + 'CoreTemp64': 'https://www.alcpu.com/CoreTemp/CoreTemp64.zip', 'ESET_NOD32_AV32': 'https://download.eset.com/com/eset/apps/home/eav/windows/latest/eav_nt32.exe', 'ESET_NOD32_AV64': 'https://download.eset.com/com/eset/apps/home/eav/windows/latest/eav_nt64.exe', 'EmsisoftCmd32': 'https://dl.emsisoft.com/EmsisoftCommandlineScanner32.exe', diff --git a/scripts/wk/kit/build_win.py b/scripts/wk/kit/build_win.py index e5d15ea9..8af6c480 100644 --- a/scripts/wk/kit/build_win.py +++ b/scripts/wk/kit/build_win.py @@ -169,6 +169,25 @@ def download_bluescreenview(): delete_from_temp('bluescreenview64.zip') +def download_coretemp(): + """Download Core Temp.""" + archive_32 = download_to_temp('coretemp32.zip', SOURCES['CoreTemp32']) + archive_64 = download_to_temp('coretemp64.zip', SOURCES['CoreTemp64']) + out_path = BIN_DIR.joinpath('CoreTemp') + extract_archive(archive_32, out_path, 'Core Temp.exe') + rename_item( + out_path.joinpath('Core Temp.exe'), + out_path.joinpath('CoreTemp.exe'), + ) + extract_archive(archive_64, out_path, 'Core Temp.exe') + rename_item( + out_path.joinpath('Core Temp.exe'), + out_path.joinpath('CoreTemp64.exe'), + ) + delete_from_temp('coretemp32.zip') + delete_from_temp('coretemp64.zip') + + def download_erunt(): """Download ERUNT.""" archive = download_to_temp('erunt.zip', SOURCES['ERUNT']) @@ -512,11 +531,12 @@ def build_kit(): try_print.add_error(error) # Download - try_print.run('Adobe Reader...', download_adobe_reader) try_print.run('AIDA64...', download_aida64) + try_print.run('Adobe Reader...', download_adobe_reader) try_print.run('Autoruns...', download_autoruns) try_print.run('BleachBit...', download_bleachbit) try_print.run('BlueScreenView...', download_bluescreenview) + try_print.run('CoreTemp...', download_coretemp) try_print.run('ERUNT...', download_erunt) try_print.run('Everything...', download_everything) try_print.run('FastCopy...', download_fastcopy) @@ -531,13 +551,13 @@ def build_kit(): try_print.run('OpenShell...', download_openshell) try_print.run('Prime95...', download_prime95) try_print.run('PuTTY...', download_putty) - try_print.run('Snappy Driver Installer...', download_snappy_driver_installer_origin) - try_print.run('Windows Repair AIO...', download_windows_repair_aio) - try_print.run('WinSCP...', download_winscp) try_print.run('UninstallView...', download_uninstallview) + try_print.run('WinSCP...', download_winscp) + try_print.run('Windows Repair AIO...', download_windows_repair_aio) try_print.run('WizTree...', download_wiztree) - try_print.run('XMPlay...', download_xmplay) try_print.run('XMPlay Music...', download_xmplay_music) + try_print.run('XMPlay...', download_xmplay) + try_print.run('Snappy Driver Installer...', download_snappy_driver_installer_origin) # Pause print('', flush=True)