File: runshort_alloc.bat

package info (click to toggle)
mpdecimal 4.0.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,236 kB
  • sloc: ansic: 17,917; cpp: 6,508; sh: 4,236; makefile: 621; lisp: 502; python: 85; asm: 18
file content (140 lines) | stat: -rwxr-xr-x 3,404 bytes parent folder | download | duplicates (2)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
@ECHO OFF


rem Choose release or debug build.
set DBG=0
if "%1%" == "/d" set DBG=1

rem Build libmpdec tests.
cd ..\tests
copy /y Makefile.vc Makefile
nmake clean
nmake DEBUG=%DBG%


rem # Download the official test cases (text files).
call gettests.bat

echo.
echo # ========================================================================
echo #                         libmpdec: static library
echo # ========================================================================
echo.

echo.
<nul (set /p x="Running official tests with allocation failures ... ")
echo.
echo.
runtest.exe official.decTest --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running additional tests with allocation failures ... ")
echo.
echo.
runtest.exe additional.decTest --alloc
if %errorlevel% neq 0 goto out

echo.
echo # ========================================================================
echo #                         libmpdec: shared library
echo # ========================================================================
echo.

echo.
<nul (set /p x="Running official tests with allocation failures ... ")
echo.
echo.
runtest_shared.exe official.decTest --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running additional tests with allocation failures ... ")
echo.
echo.
runtest_shared.exe additional.decTest --alloc
if %errorlevel% neq 0 goto out


rem Build libmpdec++ tests.
cd ..\tests++
copy /y Makefile.vc Makefile
nmake clean
nmake DEBUG=%DBG%

rem # Copy or download the official test cases (text files).
call gettests.bat

echo.
echo # ========================================================================
echo #                        libmpdec++: static library
echo # ========================================================================
echo.

echo.
<nul (set /p x="Running official tests with allocation failures ... ")
echo.
echo.
runtest.exe official.topTest --thread --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running additional tests with allocation failures ... ")
echo.
echo.
runtest.exe additional.topTest --thread --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running API tests (single thread) ... ")
echo.
echo.
apitest.exe
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running API tests (threaded) ... ")
echo.
echo.
apitest.exe --thread
if %errorlevel% neq 0 goto out

echo.
echo # ========================================================================
echo #                        libmpdec++: shared library
echo # ========================================================================
echo.

echo.
<nul (set /p x="Running official tests with allocation failures ... ")
echo.
echo.
runtest_shared.exe official.topTest --thread --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running additional tests with allocation failures ... ")
echo.
echo.
runtest_shared.exe additional.topTest --thread --alloc
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running API tests (single thread) ... ")
echo.
echo.
apitest_shared.exe
if %errorlevel% neq 0 goto out

echo.
<nul (set /p x="Running API tests (threaded) ... ")
echo.
echo.
apitest_shared.exe --thread
if %errorlevel% neq 0 goto out


:out
set exitcode=%errorlevel%
cd ..\vcbuild
exit /b %exitcode%