• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# build and run the tests leaving the executables in place
2
3# (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
4# Use, modification and distribution is subject to the Boost Software
5# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6# http://www.boost.org/LICENSE_1_0.txt)
7
8# profile.sh --toolset=gcc preserve-test-targets=on variant=profile
9if test $# -eq 0
10then
11    echo "Usage: $0 <bjam arguments>"
12    echo "Typical bjam arguements are:"
13    echo "  toolset=msvc-7.1,gcc"
14    echo "  link=static,shared"
15    echo "  threading=single,multi"
16    echo "  -sBOOST_ARCHIVE_LIST=<archive name>"
17else
18    bjam --dump-tests variant=profile preserve-test-targets=on $@ >bjam.log 2>&1
19    process_jam_log --v2 <bjam.log
20
21    # for each test directory
22
23    for dir in                                                             \
24        ../../../bin.v2/libs/serialization/performance/*/gcc*/profile   \
25        ../../../bin.v2/libs/serialization/performance/*/gcc*/*/profile
26    do
27        # execute test
28        for exe in $dir/*.exe
29        do
30            # execute the test
31            echo executing $exe
32            $exe
33            # copy profile to test directory
34            gprof $exe gmon.out >$dir/profile.txt
35        done
36    done
37
38    library_status library_status.html links.html
39fi
40