blob: f3db9af1750ac1bf1c4b271a18423fdb1378e3a2 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#!/bin/sh
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
10#
11# This software is licensed as described in the file COPYING, which
12# you should have received as part of this distribution. The terms
13# are also available at https://curl.se/docs/copyright.html.
14#
15# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16# copies of the Software, and permit persons to whom the Software is
17# furnished to do so, under the terms of the COPYING file.
18#
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
21#
22# SPDX-License-Identifier: curl
23#
24###########################################################################
25
26autoreconf -fi
27mkdir -p cvr
28cd cvr
29../configure --disable-shared --enable-debug --enable-maintainer-mode --enable-code-coverage
30make -sj
31# the regular test run
32make TFLAGS=-n test-nonflaky
33# make all allocs/file operations fail
34#make TFLAGS=-n test-torture
35# do everything event-based
36make TFLAGS=-n test-event
37lcov -d . -c -o cov.lcov
38genhtml cov.lcov --output-directory coverage --title "curl code coverage"
39tar -cjf curl-coverage.tar.bz2 coverage