Debian Codegraph @

crt/s2n/codebuild/bin/install_ctverif.sh

raw symbols SCIP
1 #!/bin/bash
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License").
5 # You may not use this file except in compliance with the License.
6 # A copy of the License is located at
7 #
8 # http://aws.amazon.com/apache2.0
9 #
10 # or in the "license" file accompanying this file. This file is distributed
11 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 # express or implied. See the License for the specific language governing
13 # permissions and limitations under the License.
14 #
15
16 set -e
17
18 usage() {
19 echo "install_ctverif.sh install_dir"
20 exit 1
21 }
22
23 if [ "$#" -ne "1" ]; then
24 usage
25 fi
26
27 INSTALL_DIR=$1
28
29 cd "$INSTALL_DIR"
30
31 #install smack
32 git clone https://github.com/smackers/smack.git -b develop
33 cd smack/bin
34 git checkout 45e1fc5
35 ./build.sh
36
37 # Disabling ShellCheck using https://github.com/koalaman/shellcheck/wiki/Directive
38 # Turn of Warning in one line as https://github.com/koalaman/shellcheck/wiki/SC1090
39 # shellcheck disable=SC1090
40 source "$INSTALL_DIR"/smack.environment
41
42 #install ctverif
43 cd "$INSTALL_DIR"
44 git clone --depth 1 https://github.com/imdea-software/verifying-constant-time.git -b test-automation
45