Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(247783)

Side by Side Diff: Modules/_decimal/LIBTEST.txt

Issue 7652: Merge C version of decimal into py3k.
Patch Set: Created 7 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/_decimal/ISSUES.txt ('k') | Modules/_decimal/literature/bignum.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 # ======================================================================
3 # Unix: build Python
4 # ======================================================================
5
6 # First, do the regular Python build:
7 cd ../../
8 ./configure
9 make
10 cd Modules/_decimal
11
12
13 # ======================================================================
14 # Unix: short library tests
15 # ======================================================================
16
17 ./configure
18 make # gmake
19 make check
20
21
22 # ======================================================================
23 # Unix: long library tests
24 # ======================================================================
25
26 # Some of these tests require libgmp-dev.
27 ./configure
28 make extended # gmake
29 cd tests && ./runalltests.sh
30
31
32 # ======================================================================
33 # Unix: tests against decNumber
34 # ======================================================================
35
36 # It is assumed that libmpdec has been built already.
37
38 # Get decNumber and apply required patch:
39 ./getdn.sh
40 make deccheck # gmake
41
42 # Run the tests:
43 # --short: random tests
44 # --exit: exit on error (by default the error is just printed).
45 # --minalloc: iterate through all possible values for MPD_MINALLOC.
46 ./deccheck [--short|--minalloc|--exit]
47
48
49 # ======================================================================
50 # Unix: all configurations
51 # ======================================================================
52
53 #
54 # Here is the list of possible configurations:
55 #
56 # 1. x64 - 64-bit OS with x86_64 processor (AMD, Intel)
57 #
58 # 2. uint128 - 64-bit OS, compiler has __uint128_t (should be
59 # the case for gcc)
60 #
61 # 3. ansi64 - 64-bit OS, double width multiplication and
62 # division in ANSI C.
63 #
64 # 3. ppro - 32-bit OS with any x86 processor that has at
65 # least PentiumPro capabilities
66 #
67 # 5. ansi32 - 32-bit or 64-bit OS, produces 32-bit library
68 #
69 # 6. ansi-legacy - 32-bit OS, compiler without uint64_t
70 #
71 # TESTING ONLY:
72 #
73 # 7. full_coverage - 64bit OS, produces 64-bit library,
74 # using CONFIG_32.
75 #
76
77 # On amd64 with multilib it is possible to run all configs. Otherwise,
78 # edit runallconfigs.sh and delete configs as appropriate.
79 cd tests && ./runallconfigs.sh
80
81 # With Valgrind:
82 cd tests && ./runallconfigs.sh --valgrind
83
84
85 # ======================================================================
86 # Unix: code coverage tests
87 # ======================================================================
88
89 # These tests require gcc/gcov and take quite long. To achieve 100%
90 # coverage of the various multiplication functions, 4-8GB of RAM is
91 # required for CONFIG_32, 1TB for CONFIG_64.
92 #
93 # So, realistically it is only possible to get 100% coverage using
94 # ./configure MACHINE=full_coverage on a 64-bit machine with 8GB of
95 # memory.
96 #
97 # !!! MACHINE=full_coverage is for testing only and does not work
98 # for pycoverage.
99
100 # Library coverage:
101 ./configure
102 make libcoverage # gmake
103 python tests/covreport.py
104 make distclean
105
106 # 100% library coverage (64-bit OS):
107 ./configure MACHINE=full_coverage
108 patch < tests/fullcov_header.patch
109 make libcoverage # gmake
110 python tests/covreport.py
111 make distclean
112 patch -R < tests/fullcov_header.patch
113
114 # Module coverage:
115 ./configure
116 make pycoverage # gmake
117 python tests/covreport.py
118 make distclean
119
120 # lib/pycoverage:
121 ./configure
122 make coverage # gmake
123 python tests/covreport.py
124 make distclean
125
126
127 # ======================================================================
128 # 64-bit Windows
129 # ======================================================================
130
131 copy Makefile.vc Makefile
132
133 # Find the path to vcvarsamd64.bat (or vcvars64.bat) and execute it. Example:
134 "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat "
135
136 # Build static library:
137 nmake MACHINE=x64
138 # Short tests
139 nmake MACHINE=x64 check
140 # Long tests
141 make MACHINE=x64 extended
142 cd tests && runalltests.bat
143 # Long tests requires gmp, edit paths to gmp libs in Makefile:
144 make MACHINE=x64 extended_gmp
145 cd tests && runalltests.bat
146
147
148 # ======================================================================
149 # 32-bit Windows
150 # ======================================================================
151
152 copy Makefile.vc Makefile
153
154 # Find the path to vcvars32.bat and execute it. Example:
155 "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
156
157 # Build static library:
158 nmake MACHINE=ppro
159 # Short tests
160 nmake MACHINE=ppro check
161 # Long tests
162 make MACHINE=ppro extended
163 cd tests && runalltests.bat
164 # Long tests requires gmp, edit paths to gmp libs in Makefile:
165 make MACHINE=x64 extended_gmp
166 cd tests && runalltests.bat
167
168
169
OLDNEW
« no previous file with comments | « Modules/_decimal/ISSUES.txt ('k') | Modules/_decimal/literature/bignum.txt » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+