Debian Codegraph @

crt/s2n/codebuild/spec/buildspec_fuzz_scheduled.yml

raw symbols SCIP
1 ---
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. A copy of the License is
6 # located at
7 #
8 # http://aws.amazon.com/apache2.0/
9 #
10 # or in the "license" file accompanying this file. This file is distributed on an
11 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied. See the License for the specific language governing permissions and
13 # limitations under the License.
14 version: 0.2
15
16 env:
17 variables:
18 S2N_LIBCRYPTO: "awslc"
19 COMPILER: clang
20
21 phases:
22 pre_build:
23 commands:
24 - |
25 if [ -d "third-party-src" ]; then
26 cd third-party-src;
27 fi
28 build:
29 on-failure: ABORT
30 commands:
31 - |
32 cmake . -Bbuild \
33 -DCMAKE_PREFIX_PATH=/usr/local/$S2N_LIBCRYPTO \
34 -DCMAKE_C_COMPILER=/usr/bin/$COMPILER \
35 -DS2N_FUZZ_TEST=on \
36 -DCOVERAGE=on \
37 -DBUILD_SHARED_LIBS=on
38 - cmake --build ./build -- -j $(nproc)
39 post_build:
40 on-failure: ABORT
41 commands:
42 - ./codebuild/bin/fuzz_corpus_download.sh
43 # -L: Restrict tests to labels matching the pattern 'fuzz'
44 # --timeout: override ctest's default timeout of 1500
45 - cmake --build build/ --target test -- ARGS="-L fuzz --output-on-failure -j $(nproc) --timeout 28800"
46 - ./codebuild/bin/fuzz_corpus_upload.sh
47 - ./codebuild/bin/fuzz_coverage_report.sh
48
49 artifacts:
50 # upload all files in the fuzz_coverage_report directory
51 files:
52 - '**/*'
53 base-directory: coverage/fuzz/total_fuzz_coverage