From ffac520e8301ed83fb229dec7393898bf00df423 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 24 Jun 2019 16:19:35 +0200 Subject: azure: move build scripts into "azure-pipelines" directory Since we have migrated to Azure Pipelines, we have deprecated and subsequentally removed all infrastructure for AppVeyor and Travis. Thus it doesn't make a lot of sense to have the split between "ci/" and "azure-pipelines/" directories anymoer, as "azure-pipelines/" is essentially our only CI. Move all CI scripts into the "azure-pipelines/" directory to have everything centrally located and to remove clutter in the top-level directory. --- ci/build.ps1 | 30 ------ ci/build.sh | 51 ---------- ci/coverity-build.sh | 41 --------- ci/coverity-publish.sh | 33 ------- ci/setup-linux.sh | 27 ------ ci/setup-mingw.ps1 | 25 ----- ci/setup-osx.sh | 8 -- ci/test.ps1 | 139 ---------------------------- ci/test.sh | 246 ------------------------------------------------- 9 files changed, 600 deletions(-) delete mode 100644 ci/build.ps1 delete mode 100755 ci/build.sh delete mode 100755 ci/coverity-build.sh delete mode 100755 ci/coverity-publish.sh delete mode 100755 ci/setup-linux.sh delete mode 100644 ci/setup-mingw.ps1 delete mode 100755 ci/setup-osx.sh delete mode 100644 ci/test.ps1 delete mode 100755 ci/test.sh (limited to 'ci') diff --git a/ci/build.ps1 b/ci/build.ps1 deleted file mode 100644 index dbc458dfc..000000000 --- a/ci/build.ps1 +++ /dev/null @@ -1,30 +0,0 @@ -Set-StrictMode -Version Latest - -$ErrorActionPreference = "Stop" -$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' - -if ($Env:SOURCE_DIR) { $SourceDirectory = $Env:SOURCE_DIR } else { $SourceDirectory = Split-Path (Split-Path $MyInvocation.MyCommand.Path -Parent) -Parent } -$BuildDirectory = $(Get-Location).Path - -Write-Host "Source directory: ${SourceDirectory}" -Write-Host "Build directory: ${BuildDirectory}" -Write-Host "" -Write-Host "Operating system version:" -Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, BuildNumber, OSArchitecture | Format-List -Write-Host "PATH: ${Env:PATH}" -Write-Host "" - -Write-Host "##############################################################################" -Write-Host "## Configuring build environment" -Write-Host "##############################################################################" - -Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DBUILD_FUZZERS=ON -DUSE_STANDALONE_FUZZERS=ON -DENABLE_WERROR=ON ${Env:CMAKE_OPTIONS}" -if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) } - -Write-Host "" -Write-Host "##############################################################################" -Write-Host "## Building libgit2" -Write-Host "##############################################################################" - -cmake --build . -if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) } diff --git a/ci/build.sh b/ci/build.sh deleted file mode 100755 index 7ffa610ae..000000000 --- a/ci/build.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash -# -# Environment variables: -# -# SOURCE_DIR: Set to the directory of the libgit2 source (optional) -# If not set, it will be derived relative to this script. - -set -e - -SOURCE_DIR=${SOURCE_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" && dirname $( pwd ) )} -BUILD_DIR=$(pwd) -CC=${CC:-cc} - -indent() { sed "s/^/ /"; } - -echo "Source directory: ${SOURCE_DIR}" -echo "Build directory: ${BUILD_DIR}" -echo "" - -if [ "$(uname -s)" = "Darwin" ]; then - echo "macOS version:" - sw_vers | indent -fi - -if [ -f "/etc/debian_version" ]; then - echo "Debian version:" - lsb_release -a | indent -fi - -echo "Kernel version:" -uname -a 2>&1 | indent - -echo "CMake version:" -cmake --version 2>&1 | indent -echo "Compiler version:" -$CC --version 2>&1 | indent -echo "" - -echo "##############################################################################" -echo "## Configuring build environment" -echo "##############################################################################" - -echo cmake ${SOURCE_DIR} -DENABLE_WERROR=ON -DBUILD_EXAMPLES=ON -DBUILD_FUZZERS=ON -DUSE_STANDALONE_FUZZERS=ON ${CMAKE_OPTIONS} -cmake ${SOURCE_DIR} -DENABLE_WERROR=ON -DBUILD_EXAMPLES=ON -DBUILD_FUZZERS=ON -DUSE_STANDALONE_FUZZERS=ON ${CMAKE_OPTIONS} - -echo "" -echo "##############################################################################" -echo "## Building libgit2" -echo "##############################################################################" - -cmake --build . diff --git a/ci/coverity-build.sh b/ci/coverity-build.sh deleted file mode 100755 index f8264fa83..000000000 --- a/ci/coverity-build.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -set -e - -# Environment check -[ -z "$COVERITY_TOKEN" ] && echo "Need to set a coverity token" && exit 1 - -SOURCE_DIR=${SOURCE_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" && dirname $( pwd ) )} -BUILD_DIR=$(pwd) - -case $(uname -m) in - i?86) BITS=32 ;; - amd64|x86_64) BITS=64 ;; -esac -SCAN_TOOL=https://scan.coverity.com/download/cxx/linux${BITS} -TOOL_BASE=$(pwd)/_coverity-scan - -# Install coverity tools -if [ ! -d "$TOOL_BASE" ]; then - echo "Downloading coverity..." - mkdir -p "$TOOL_BASE" - pushd "$TOOL_BASE" - wget -O coverity_tool.tgz $SCAN_TOOL \ - --post-data "project=libgit2&token=$COVERITY_TOKEN" - tar xzf coverity_tool.tgz - popd - TOOL_DIR=$(find "$TOOL_BASE" -type d -name 'cov-analysis*') - ln -s "$TOOL_DIR" "$TOOL_BASE"/cov-analysis -fi - -cp "${SOURCE_DIR}/script/user_nodefs.h" "$TOOL_BASE"/cov-analysis/config/user_nodefs.h - -COV_BUILD="$TOOL_BASE/cov-analysis/bin/cov-build" - -# Configure and build -cmake ${SOURCE_DIR} - -COVERITY_UNSUPPORTED=1 \ - $COV_BUILD --dir cov-int \ - cmake --build . - diff --git a/ci/coverity-publish.sh b/ci/coverity-publish.sh deleted file mode 100755 index 2341b13fb..000000000 --- a/ci/coverity-publish.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -set -e - -# Results check -[ ! -d "cov-int" ] && echo "Coverity directory not found" && exit 1 - -# Upload results -tar czf libgit2.tgz cov-int - -SOURCE_DIR=${SOURCE_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" && dirname $( pwd ) )} -SHA=$(cd ${SOURCE_DIR} && git rev-parse --short HEAD) - -HTML="$(curl \ - --silent \ - --write-out "\n%{http_code}" \ - --form token="$COVERITY_TOKEN" \ - --form email=libgit2@gmail.com \ - --form file=@libgit2.tgz \ - --form version="$SHA" \ - --form description="libgit2 build" \ - https://scan.coverity.com/builds?project=libgit2)" - -# Body is everything up to the last line -BODY="$(echo "$HTML" | head -n-1)" - -# Status code is the last line -STATUS_CODE="$(echo "$HTML" | tail -n1)" - -if [ "${STATUS_CODE}" != "200" -a "${STATUS_CODE}" != "201" ]; then - echo "Received error code ${STATUS_CODE} from Coverity" - exit 1 -fi diff --git a/ci/setup-linux.sh b/ci/setup-linux.sh deleted file mode 100755 index c5ecb550b..000000000 --- a/ci/setup-linux.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -set -e -set -x - -TMPDIR=${TMPDIR:-/tmp} - -if [ -z "$SKIP_APT" ]; then - apt-get update - apt-get -y install build-essential pkg-config clang cmake openssl libssl-dev libssh2-1-dev libcurl4-gnutls-dev openssh-server -fi - -mkdir -p /var/run/sshd - -if [ "$MBEDTLS" ]; then - MBEDTLS_DIR=${MBEDTLS_DIR:-$(mktemp -d ${TMPDIR}/mbedtls.XXXXXXXX)} - - git clone --depth 10 --single-branch --branch mbedtls-2.6.1 https://github.com/ARMmbed/mbedtls.git ${MBEDTLS_DIR} - cd ${MBEDTLS_DIR} - - CFLAGS=-fPIC cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON . - cmake --build . - - if [ -z "$SKIP_MBEDTLS_INSTALL" ]; then - make install - fi -fi diff --git a/ci/setup-mingw.ps1 b/ci/setup-mingw.ps1 deleted file mode 100644 index 76ecd3987..000000000 --- a/ci/setup-mingw.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -Set-StrictMode -Version Latest - -$ErrorActionPreference = "Stop" -$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' - -[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - -[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem"); - -Write-Host "##############################################################################" -Write-Host "## Downloading mingw" -Write-Host "##############################################################################" - -if ($env:ARCH -eq "amd64") { - $mingw_uri = "https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-x86_64-8.1.0-release-win32-seh-rt_v6-rev0.zip" - $platform = "x86_64" -} else { - $mingw_uri = "https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip" - $platform = "x86" -} - -$wc = New-Object net.webclient -$wc.Downloadfile($mingw_uri, "${Env:TEMP}/mingw-${Env:ARCH}.zip") - -[System.IO.Compression.ZipFile]::ExtractToDirectory("${Env:TEMP}/mingw-${Env:ARCH}.zip", $Env:TEMP) diff --git a/ci/setup-osx.sh b/ci/setup-osx.sh deleted file mode 100755 index 2e630eedb..000000000 --- a/ci/setup-osx.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -set -x - -brew update -brew install pkgconfig zlib curl openssl libssh2 ninja - -ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib /usr/local/lib diff --git a/ci/test.ps1 b/ci/test.ps1 deleted file mode 100644 index 0c9e795f0..000000000 --- a/ci/test.ps1 +++ /dev/null @@ -1,139 +0,0 @@ -Set-StrictMode -Version Latest - -$ErrorActionPreference = "Stop" -$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' - -[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - -$SourceDir = Split-Path (Split-Path (Get-Variable MyInvocation).Value.MyCommand.Path) -$BuildDir = Get-Location -$global:Success = $true - -if ($Env:SKIP_TESTS) { exit } - -# Ask ctest what it would run if we were to invoke it directly. This lets -# us manage the test configuration in a single place (tests/CMakeLists.txt) -# instead of running clar here as well. But it allows us to wrap our test -# harness with a leak checker like valgrind. Append the option to write -# JUnit-style XML files. -function run_test { - $TestName = $args[0] - - $TestCommand = (ctest -N -V -R "^$TestName$") -join "`n" - - if (-Not ($TestCommand -match "(?ms).*\n^[0-9]*: Test command: ")) { - echo "Could not find tests: $TestName" - exit - } - - $TestCommand = (ctest -N -V -R "^$TestName$") -join "`n" -replace "(?ms).*\n^[0-9]*: Test command: ","" -replace "\n.*","" - $TestCommand += " -r${BuildDir}\results_${TestName}.xml" - - if ($Env:GITTEST_FLAKY_RETRY -gt 0) { - $AttemptsRemain = $Env:GITTEST_FLAKY_RETRY - } else { - $AttemptsRemain = 1 - } - - $Failed = 0 - while ($AttemptsRemain -ne 0) { - if ($Failed -eq 1) { - Write-Host "" - Write-Host "Re-running flaky $TestName tests..." - Write-Host "" - } - - Invoke-Expression $TestCommand - if ($LastExitCode -eq 0) { - $Failed = 0 - break - } else { - $Failed = 1 - } - - $AttemptsRemain = $AttemptsRemain - 1 - } - - if ($Failed -eq 1) { $global:Success = $false } -} - -Write-Host "##############################################################################" -Write-Host "## Configuring test environment" -Write-Host "##############################################################################" - -if (-not $Env:SKIP_PROXY_TESTS) { - Invoke-WebRequest -Method GET -Uri https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar -OutFile poxyproxy.jar - - Write-Host "" - Write-Host "Starting HTTP proxy (Basic)..." - javaw -jar poxyproxy.jar --port 8080 --credentials foo:bar --auth-type basic --quiet - - Write-Host "" - Write-Host "Starting HTTP proxy (NTLM)..." - javaw -jar poxyproxy.jar --port 8090 --credentials foo:bar --auth-type ntlm --quiet -} - -if (-not $Env:SKIP_OFFLINE_TESTS) { - Write-Host "" - Write-Host "##############################################################################" - Write-Host "## Running (offline) tests" - Write-Host "##############################################################################" - - run_test offline -} - -if ($Env:RUN_INVASIVE_TESTS) { - Write-Host "" - Write-Host "##############################################################################" - Write-Host "## Running (invasive) tests" - Write-Host "##############################################################################" - - $Env:GITTEST_INVASIVE_FS_SIZE=1 - $Env:GITTEST_INVASIVE_MEMORY=1 - $Env:GITTEST_INVASIVE_SPEED=1 - run_test invasive - $Env:GITTEST_INVASIVE_FS_SIZE=$null - $Env:GITTEST_INVASIVE_MEMORY=$null - $Env:GITTEST_INVASIVE_SPEED=$null -} - -if (-not $Env:SKIP_ONLINE_TESTS) { - Write-Host "" - Write-Host "##############################################################################" - Write-Host "## Running (online) tests" - Write-Host "##############################################################################" - - $Env:GITTEST_FLAKY_RETRY=5 - run_test online - $Env:GITTEST_FLAKY_RETRY=0 -} - -if (-not $Env:SKIP_PROXY_TESTS) { - # Test HTTP Basic authentication - Write-Host "" - Write-Host "Running proxy tests (Basic authentication)" - Write-Host "" - - $Env:GITTEST_REMOTE_PROXY_HOST="localhost:8080" - $Env:GITTEST_REMOTE_PROXY_USER="foo" - $Env:GITTEST_REMOTE_PROXY_PASS="bar" - run_test proxy - - # Test NTLM authentication - Write-Host "" - Write-Host "Running proxy tests (NTLM authentication)" - Write-Host "" - - $Env:GITTEST_REMOTE_PROXY_HOST="localhost:8090" - $Env:GITTEST_REMOTE_PROXY_USER="foo" - $Env:GITTEST_REMOTE_PROXY_PASS="bar" - run_test proxy - - $Env:GITTEST_REMOTE_PROXY_HOST=$null - $Env:GITTEST_REMOTE_PROXY_USER=$null - $Env:GITTEST_REMOTE_PROXY_PASS=$null - - taskkill /F /IM javaw.exe -} - -if (-Not $global:Success) { exit 1 } diff --git a/ci/test.sh b/ci/test.sh deleted file mode 100755 index 69b4273a5..000000000 --- a/ci/test.sh +++ /dev/null @@ -1,246 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [ -n "$SKIP_TESTS" ]; then - exit 0 -fi - -SOURCE_DIR=${SOURCE_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" && dirname $( pwd ) )} -BUILD_DIR=$(pwd) -TMPDIR=${TMPDIR:-/tmp} -USER=${USER:-$(whoami)} - -SUCCESS=1 - -cleanup() { - echo "Cleaning up..." - - if [ ! -z "$GITDAEMON_DIR" -a -f "${GITDAEMON_DIR}/pid" ]; then - echo "Stopping git daemon..." - kill $(cat "${GITDAEMON_DIR}/pid") - fi - - if [ ! -z "$SSHD_DIR" -a -f "${SSHD_DIR}/pid" ]; then - echo "Stopping SSH..." - kill $(cat "${SSHD_DIR}/pid") - fi - - echo "Done." -} - -run_test() { - if [[ "$GITTEST_FLAKY_RETRY" > 0 ]]; then - ATTEMPTS_REMAIN=$GITTEST_FLAKY_RETRY - else - ATTEMPTS_REMAIN=1 - fi - - FAILED=0 - while [[ "$ATTEMPTS_REMAIN" > 0 ]]; do - if [ "$FAILED" -eq 1 ]; then - echo "" - echo "Re-running flaky ${1} tests..." - echo "" - fi - - RETURN_CODE=0 - - CLAR_SUMMARY="${BUILD_DIR}/results_${1}.xml" ctest -V -R "^${1}$" || RETURN_CODE=$? && true - - if [ "$RETURN_CODE" -eq 0 ]; then - break - fi - - echo "Test exited with code: $RETURN_CODE" - ATTEMPTS_REMAIN="$(($ATTEMPTS_REMAIN-1))" - FAILED=1 - done - - if [ "$FAILED" -ne 0 ]; then - SUCCESS=0 - fi -} - -# Configure the test environment; run them early so that we're certain -# that they're started by the time we need them. - -echo "##############################################################################" -echo "## Configuring test environment" -echo "##############################################################################" - -if [ -z "$SKIP_GITDAEMON_TESTS" ]; then - echo "Starting git daemon..." - GITDAEMON_DIR=`mktemp -d ${TMPDIR}/gitdaemon.XXXXXXXX` - git init --bare "${GITDAEMON_DIR}/test.git" - git daemon --listen=localhost --export-all --enable=receive-pack --pid-file="${GITDAEMON_DIR}/pid" --base-path="${GITDAEMON_DIR}" "${GITDAEMON_DIR}" 2>/dev/null & -fi - -if [ -z "$SKIP_PROXY_TESTS" ]; then - curl -L https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar >poxyproxy.jar - - echo "" - echo "Starting HTTP proxy (Basic)..." - java -jar poxyproxy.jar --address 127.0.0.1 --port 8080 --credentials foo:bar --auth-type basic --quiet & - - echo "" - echo "Starting HTTP proxy (NTLM)..." - java -jar poxyproxy.jar --address 127.0.0.1 --port 8090 --credentials foo:bar --auth-type ntlm --quiet & -fi - -if [ -z "$SKIP_SSH_TESTS" ]; then - echo "Starting ssh daemon..." - HOME=`mktemp -d ${TMPDIR}/home.XXXXXXXX` - SSHD_DIR=`mktemp -d ${TMPDIR}/sshd.XXXXXXXX` - git init --bare "${SSHD_DIR}/test.git" - cat >"${SSHD_DIR}/sshd_config" <<-EOF - Port 2222 - ListenAddress 0.0.0.0 - Protocol 2 - HostKey ${SSHD_DIR}/id_rsa - PidFile ${SSHD_DIR}/pid - AuthorizedKeysFile ${HOME}/.ssh/authorized_keys - LogLevel DEBUG - RSAAuthentication yes - PasswordAuthentication yes - PubkeyAuthentication yes - ChallengeResponseAuthentication no - StrictModes no - # Required here as sshd will simply close connection otherwise - UsePAM no - EOF - ssh-keygen -t rsa -f "${SSHD_DIR}/id_rsa" -N "" -q - /usr/sbin/sshd -f "${SSHD_DIR}/sshd_config" -E "${SSHD_DIR}/log" - - # Set up keys - mkdir "${HOME}/.ssh" - ssh-keygen -t rsa -f "${HOME}/.ssh/id_rsa" -N "" -q - cat "${HOME}/.ssh/id_rsa.pub" >>"${HOME}/.ssh/authorized_keys" - while read algorithm key comment; do - echo "[localhost]:2222 $algorithm $key" >>"${HOME}/.ssh/known_hosts" - done <"${SSHD_DIR}/id_rsa.pub" - - # Get the fingerprint for localhost and remove the colons so we can - # parse it as a hex number. Older versions have a different output - # format. - if [[ $(ssh -V 2>&1) == OpenSSH_6* ]]; then - SSH_FINGERPRINT=$(ssh-keygen -F '[localhost]:2222' -f "${HOME}/.ssh/known_hosts" -l | tail -n 1 | cut -d ' ' -f 2 | tr -d ':') - else - SSH_FINGERPRINT=$(ssh-keygen -E md5 -F '[localhost]:2222' -f "${HOME}/.ssh/known_hosts" -l | tail -n 1 | cut -d ' ' -f 3 | cut -d : -f2- | tr -d :) - fi -fi - -# Run the tests that do not require network connectivity. - -if [ -z "$SKIP_OFFLINE_TESTS" ]; then - echo "" - echo "##############################################################################" - echo "## Running (offline) tests" - echo "##############################################################################" - - run_test offline -fi - -if [ -n "$RUN_INVASIVE_TESTS" ]; then - echo "" - echo "Running invasive tests" - echo "" - - export GITTEST_INVASIVE_FS_SIZE=1 - export GITTEST_INVASIVE_MEMORY=1 - export GITTEST_INVASIVE_SPEED=1 - run_test invasive - unset GITTEST_INVASIVE_FS_SIZE - unset GITTEST_INVASIVE_MEMORY - unset GITTEST_INVASIVE_SPEED -fi - -if [ -z "$SKIP_ONLINE_TESTS" ]; then - # Run the various online tests. The "online" test suite only includes the - # default online tests that do not require additional configuration. The - # "proxy" and "ssh" test suites require further setup. - - echo "" - echo "##############################################################################" - echo "## Running (online) tests" - echo "##############################################################################" - - export GITTEST_FLAKY_RETRY=5 - run_test online - unset GITTEST_FLAKY_RETRY -fi - -if [ -z "$SKIP_GITDAEMON_TESTS" ]; then - echo "" - echo "Running gitdaemon tests" - echo "" - - export GITTEST_REMOTE_URL="git://localhost/test.git" - run_test gitdaemon - unset GITTEST_REMOTE_URL -fi - -if [ -z "$SKIP_PROXY_TESTS" ]; then - echo "" - echo "Running proxy tests (Basic authentication)" - echo "" - - export GITTEST_REMOTE_PROXY_HOST="localhost:8080" - export GITTEST_REMOTE_PROXY_USER="foo" - export GITTEST_REMOTE_PROXY_PASS="bar" - run_test proxy - unset GITTEST_REMOTE_PROXY_HOST - unset GITTEST_REMOTE_PROXY_USER - unset GITTEST_REMOTE_PROXY_PASS - - echo "" - echo "Running proxy tests (NTLM authentication)" - echo "" - - export GITTEST_REMOTE_PROXY_HOST="localhost:8090" - export GITTEST_REMOTE_PROXY_USER="foo" - export GITTEST_REMOTE_PROXY_PASS="bar" - run_test proxy - unset GITTEST_REMOTE_PROXY_HOST - unset GITTEST_REMOTE_PROXY_USER - unset GITTEST_REMOTE_PROXY_PASS -fi - -if [ -z "$SKIP_SSH_TESTS" ]; then - echo "" - echo "Running ssh tests" - echo "" - - export GITTEST_REMOTE_URL="ssh://localhost:2222/$SSHD_DIR/test.git" - export GITTEST_REMOTE_USER=$USER - export GITTEST_REMOTE_SSH_KEY="${HOME}/.ssh/id_rsa" - export GITTEST_REMOTE_SSH_PUBKEY="${HOME}/.ssh/id_rsa.pub" - export GITTEST_REMOTE_SSH_PASSPHRASE="" - export GITTEST_REMOTE_SSH_FINGERPRINT="${SSH_FINGERPRINT}" - run_test ssh - unset GITTEST_REMOTE_URL - unset GITTEST_REMOTE_USER - unset GITTEST_REMOTE_SSH_KEY - unset GITTEST_REMOTE_SSH_PUBKEY - unset GITTEST_REMOTE_SSH_PASSPHRASE - unset GITTEST_REMOTE_SSH_FINGERPRINT -fi - -if [ -z "$SKIP_FUZZERS" ]; then - echo "" - echo "##############################################################################" - echo "## Running fuzzers" - echo "##############################################################################" - - ctest -V -R 'fuzzer' -fi - -cleanup - -if [ "$SUCCESS" -ne 1 ]; then - echo "Some tests failed." - exit 1 -fi - -echo "Success." -exit 0 -- cgit v1.2.1