#!/bin/sh1#***************************************************************************2# _ _ ____ _3# Project ___| | | | _ \| |4# / __| | | | |_) | |5# | (__| |_| | _ <| |___6# \___|\___/|_| \_\_____|7#8# Copyright (C) Daniel Stenberg, <[email protected]>, et al.9#10# This software is licensed as described in the file COPYING, which11# you should have received as part of this distribution. The terms12# are also available at https://curl.se/docs/copyright.html.13#14# You may opt to use, copy, modify, merge, publish, distribute and/or sell15# copies of the Software, and permit persons to whom the Software is16# furnished to do so, under the terms of the COPYING file.17#18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY19# KIND, either express or implied.20#21# SPDX-License-Identifier: curl22#23###########################################################################2425set -eu2627autoreconf -fi28mkdir -p cvr29cd cvr30../configure --disable-shared --enable-debug --enable-maintainer-mode --enable-code-coverage31make -sj32# the regular test run33make TFLAGS=-n test-nonflaky34# make all allocs/file operations fail35#make TFLAGS=-n test-torture36# do everything event-based37make TFLAGS=-n test-event38lcov -d . -c -o cov.lcov39genhtml cov.lcov --output-directory coverage --title "curl code coverage"40tar -cjf curl-coverage.tar.bz2 coverage414243