summaryrefslogtreecommitdiff
path: root/tools/regression/src/library_test_all.sh
blob: ed5177d412176602afbef9bb5cb82eda111270a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
if test $# -eq 0
then
    echo "Usage: $0 <bjam arguments>"
    echo "Typical bjam arguments are:"
    echo "  toolset=msvc-7.1,gcc"
    echo "  variant=debug,release,profile"
    echo "  link=static,shared"
    echo "  threading=single,multi"
    echo
    echo "note: make sure this script is run from boost root directory !!!"
    exit 1
fi

if ! test -e libs
then
    echo No libs directory found. Run from boost root directory !!!
    exit 1
fi

#html header
cat <<end >status/library_status_contents.html
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--
(C) Copyright 2007 Robert Ramey - http://www.rrsd.com . 
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../boost.css">
<title>Library Status Contents</title>
<body>
end

cd >nul libs

# runtests, create library pages, and body of summary page
for lib_name in *
do
    if test -d $lib_name
    then
        cd >nul $lib_name

        if test -e "test/Jamfile.v2"
        then
            cd >nul test
            echo $lib_name
            echo >>../../../status/library_status_contents.html "<a target=\"detail\" href=\"../libs/$lib_name/test/library_status.html\">$lib_name</a><br>"
            ../../../tools/regression/src/library_test.sh $@
            cd >nul ..
        fi

        for sublib_name in *
        do
            if test -d $sublib_name
            then
                cd >nul $sublib_name
                if test -e "test/Jamfile.v2"
                then
                    cd >nul test
                    echo $lib_name/$sublib_name
                    echo >>../../../../status/library_status_contents.html "<a target=\"detail\" href=\"../libs/$lib_name/$sublib_name/test/library_status.html\">$lib_name/$sublib_name</a><br>"
                    ../../../../tools/regression/src/library_test.sh $@
                    cd >nul ..
                fi
                cd >nul ..
            fi
        done
           
        cd >nul ..
    fi
done


cd >nul ..

#html trailer
cat <<end >>status/library_status_contents.html
</body>
</html>
end