mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-24 00:51:05 +00:00
Merge pull request #1042 from philsmd/pr/added_appveyor_tests
cleaned up the .appveyor.yml file and implemented the test_script(s) #1032
This commit is contained in:
commit
7087966f19
@ -1,42 +1,64 @@
|
|||||||
environment:
|
environment:
|
||||||
CYG_MIRROR: http://cygwin.mirror.constant.com
|
CYG_MIRROR: http://cygwin.mirror.constant.com
|
||||||
CYG_PACKAGES: make,gcc-core,clang
|
CYG_PACKAGES: make,gcc-core
|
||||||
matrix:
|
DOCUMENT_FOLDER: /share/doc/hashcat
|
||||||
- CYG_ROOT: C:\cygwin64
|
matrix:
|
||||||
CYG_CACHE: C:\cygwin64\var\cache\setup
|
- CYG_ROOT: C:\cygwin64
|
||||||
CYG_SETUP: setup-x86_64.exe
|
CYG_CACHE: C:\cygwin64\var\cache\setup
|
||||||
BASH: C:\cygwin64\bin\bash
|
CYG_SETUP: setup-x86_64.exe
|
||||||
CC: gcc
|
BASH: C:\cygwin64\bin\bash
|
||||||
- CYG_ROOT: C:\cygwin
|
CC: gcc
|
||||||
CYG_CACHE: C:\cygwin\var\cache\setup
|
- CYG_ROOT: C:\cygwin
|
||||||
CYG_SETUP: setup-x86.exe
|
CYG_CACHE: C:\cygwin\var\cache\setup
|
||||||
BASH: C:\cygwin\bin\bash
|
CYG_SETUP: setup-x86.exe
|
||||||
CC: gcc
|
BASH: C:\cygwin\bin\bash
|
||||||
- MSYSTEM: MINGW64
|
CC: gcc
|
||||||
BASH: C:\msys64\usr\bin\bash
|
- MSYSTEM: MINGW64
|
||||||
MSYS_CACHE: C:\msys64\var\cache\pacman\pkg
|
MSYS_CACHE: C:\msys64\var\cache\pacman\pkg
|
||||||
CC: gcc
|
KERNEL_CACHE: C:\msys64\usr\local\bin\OpenCL\
|
||||||
- MSYSTEM: MINGW32
|
BASH: C:\msys64\usr\bin\bash
|
||||||
BASH: C:\msys64\usr\bin\bash
|
CC: gcc
|
||||||
MSYS_CACHE: C:\msys64\var\cache\pacman\pkg
|
- MSYSTEM: MINGW32
|
||||||
CC: gcc
|
MSYS_CACHE: C:\msys64\var\cache\pacman\pkg
|
||||||
|
KERNEL_CACHE: C:\msys64\usr\local\bin\OpenCL\
|
||||||
|
BASH: C:\msys64\usr\bin\bash
|
||||||
|
CC: gcc
|
||||||
|
|
||||||
clone_depth: 1
|
# if we have too many commits at the same time, we might need to download more than just the last commit for appveyor to succeed
|
||||||
|
# otherwise we get the error: "fatal: reference is not a tree <commit>"
|
||||||
|
clone_depth: 15
|
||||||
|
|
||||||
# Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
|
|
||||||
init:
|
init:
|
||||||
- git config --global core.autocrlf input
|
# Don't try to convert line endings to Win32 CRLF
|
||||||
# Allows RDP
|
- git config --global core.autocrlf input
|
||||||
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
||||||
|
|
||||||
# Install needed build dependencies
|
|
||||||
install:
|
install:
|
||||||
- ps: if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "$env:CYG_SETUP" }
|
- ps: if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "$env:CYG_SETUP" }
|
||||||
- if defined CYG_ROOT (%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages "%CYG_PACKAGES%" --upgrade-also)
|
- if defined CYG_ROOT (%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages "%CYG_PACKAGES%" --upgrade-also)
|
||||||
- if defined MSYSTEM (%BASH% -lc "pacman -Suuy --noconfirm")
|
- if defined MSYSTEM (%BASH% -lc "pacman -Suuy --noconfirm")
|
||||||
- if defined MSYSTEM (%BASH% -lc "pacman -Suuy --noconfirm")
|
# the following line is not a duplicate line:
|
||||||
|
# it is necessary to upgrade the MSYS base files and after that all the packages
|
||||||
|
# the 2 separate commands/lines are required because a new shell is necessary for each step
|
||||||
|
- if defined MSYSTEM (%BASH% -lc "pacman -Suuy --noconfirm")
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- if defined BASH (%BASH% -lc "cd $(cygpath ${APPVEYOR_BUILD_FOLDER}) && git submodule update --init && make")
|
- if defined BASH (%BASH% -lc "cd $(cygpath ${APPVEYOR_BUILD_FOLDER}) && git submodule update --init && make install")
|
||||||
# Allows RDP
|
|
||||||
#on_finish:
|
test_script:
|
||||||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
# some file globbing tests
|
||||||
|
# 1. hash file should not exist and therefore hashcat should complain (if it does not there might be a problem)
|
||||||
|
# 2. hash file should expand to example0.hash and succeed
|
||||||
|
- ps: >-
|
||||||
|
if (Test-Path Env:\MSYSTEM)
|
||||||
|
{
|
||||||
|
mkdir $env:KERNEL_CACHE 2>&1 | out-null
|
||||||
|
}
|
||||||
|
|
||||||
|
& $env:BASH -lc "hashcat.exe -m 0 --show $env:DOCUMENT_FOLDER/*file_not_found.hash" 2>&1 | out-null
|
||||||
|
|
||||||
|
if ($LastExitCode -eq 0)
|
||||||
|
{
|
||||||
|
throw "test failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
& $env:BASH -lc "hashcat.exe -m 0 --show $env:DOCUMENT_FOLDER/*ple0.hash"
|
||||||
|
Loading…
Reference in New Issue
Block a user