blob: 9192678a5c18effb110771c6b27f5344ba23426b [file] [log] [blame]
Ron Eldorbf007d22016-12-15 14:42:37 +02001#!/bin/sh
Ron Eldord731eb82017-07-23 15:25:32 +03002# pre-push.sh
3#
Bence Szépkúti1e148272020-08-07 13:07:28 +02004# Copyright The Mbed TLS Contributors
Dave Rodgman16799db2023-11-02 19:47:20 +00005# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Bence Szépkútic7da1fe2020-05-26 01:54:15 +02006#
Ron Eldord731eb82017-07-23 15:25:32 +03007# Purpose
8#
Ron Eldorbf007d22016-12-15 14:42:37 +02009# Called by "git push" after it has checked the remote status, but before anything has been
10# pushed. If this script exits with a non-zero status nothing will be pushed.
Ron Eldord731eb82017-07-23 15:25:32 +030011# This script can also be used independently, not using git.
Ron Eldorbf007d22016-12-15 14:42:37 +020012#
13# This hook is called with the following parameters:
14#
15# $1 -- Name of the remote to which the push is being done
16# $2 -- URL to which the push is being done
17#
18# If pushing without using a named remote those arguments will be equal.
19#
20# Information about the commits which are being pushed is supplied as lines to
21# the standard input in the form:
22#
23# <local ref> <local sha1> <remote ref> <remote sha1>
24#
Ron Eldorbf007d22016-12-15 14:42:37 +020025
26REMOTE="$1"
27URL="$2"
28
29echo "REMOTE is $REMOTE"
30echo "URL is $URL"
31
Ron Eldord731eb82017-07-23 15:25:32 +030032set -eu
33
Manuel Pégourié-Gonnard129e13c2020-06-02 11:54:25 +020034tests/scripts/all.sh -q -k 'check_*'