diff options
Diffstat (limited to 'tools/regression/test')
34 files changed, 1146 insertions, 0 deletions
diff --git a/tools/regression/test/Jamfile.v2 b/tools/regression/test/Jamfile.v2 new file mode 100644 index 0000000000..0c2ba68816 --- /dev/null +++ b/tools/regression/test/Jamfile.v2 @@ -0,0 +1,21 @@ +test-suite testlib : + [ compile-fail compile-fail~fail.cpp ] + [ compile-fail compile-fail~pass.cpp ] + [ compile compile~fail.cpp ] + [ compile compile~pass.cpp ] + [ compile compile~warn.cpp ] + [ link link~fail.cpp ] + [ link link~pass.cpp ] + [ link-fail link-fail~fail.cpp ] + [ link-fail link-fail~pass.cpp ] + [ run-fail run-fail~compile-fail.cpp ] + [ run-fail run-fail~fail-warn.cpp ] + [ run-fail run-fail~fail.cpp ] + [ run-fail run-fail~pass.cpp ] + [ run run~fail.cpp ] + [ run run~note.cpp ] + [ run run~pass.cpp ] + [ run run~warn-note.cpp ] + [ run run~warn.cpp ] + + ;
\ No newline at end of file diff --git a/tools/regression/test/compile-fail~fail.cpp b/tools/regression/test/compile-fail~fail.cpp new file mode 100644 index 0000000000..76fc53b9d7 --- /dev/null +++ b/tools/regression/test/compile-fail~fail.cpp @@ -0,0 +1,10 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +int main() { return 0; } + diff --git a/tools/regression/test/compile-fail~pass.cpp b/tools/regression/test/compile-fail~pass.cpp new file mode 100644 index 0000000000..cacb17d133 --- /dev/null +++ b/tools/regression/test/compile-fail~pass.cpp @@ -0,0 +1,9 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#error example of a compile failure diff --git a/tools/regression/test/compile~fail.cpp b/tools/regression/test/compile~fail.cpp new file mode 100644 index 0000000000..cacb17d133 --- /dev/null +++ b/tools/regression/test/compile~fail.cpp @@ -0,0 +1,9 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#error example of a compile failure diff --git a/tools/regression/test/compile~pass.cpp b/tools/regression/test/compile~pass.cpp new file mode 100644 index 0000000000..384b51fa4a --- /dev/null +++ b/tools/regression/test/compile~pass.cpp @@ -0,0 +1,9 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +int main() { return 0; } diff --git a/tools/regression/test/compile~warn.cpp b/tools/regression/test/compile~warn.cpp new file mode 100644 index 0000000000..7895a229e7 --- /dev/null +++ b/tools/regression/test/compile~warn.cpp @@ -0,0 +1,18 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +// provoke one or more compiler warnings + +int main(int argc, char * argv[] ) +{ + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + return 0; +} diff --git a/tools/regression/test/run-fail~compile-fail.cpp b/tools/regression/test/run-fail~compile-fail.cpp new file mode 100644 index 0000000000..cacb17d133 --- /dev/null +++ b/tools/regression/test/run-fail~compile-fail.cpp @@ -0,0 +1,9 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#error example of a compile failure diff --git a/tools/regression/test/run-fail~fail-warn.cpp b/tools/regression/test/run-fail~fail-warn.cpp new file mode 100644 index 0000000000..577d2bb890 --- /dev/null +++ b/tools/regression/test/run-fail~fail-warn.cpp @@ -0,0 +1,16 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +int main() +{ + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + return 0; +} diff --git a/tools/regression/test/run-fail~fail.cpp b/tools/regression/test/run-fail~fail.cpp new file mode 100644 index 0000000000..865b8eb3dd --- /dev/null +++ b/tools/regression/test/run-fail~fail.cpp @@ -0,0 +1,12 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +int main() +{ + return 0; +} diff --git a/tools/regression/test/run-fail~pass.cpp b/tools/regression/test/run-fail~pass.cpp new file mode 100644 index 0000000000..3e3ab13973 --- /dev/null +++ b/tools/regression/test/run-fail~pass.cpp @@ -0,0 +1,15 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + std::cout << "example of output from a run-time failure\n"; + return 1; +} diff --git a/tools/regression/test/run-fail~warn.cpp b/tools/regression/test/run-fail~warn.cpp new file mode 100644 index 0000000000..8cc21a110a --- /dev/null +++ b/tools/regression/test/run-fail~warn.cpp @@ -0,0 +1,20 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + + std::cout << "example of output from a run-time failure\n"; + return 1; +} diff --git a/tools/regression/test/run~compile-fail.cpp b/tools/regression/test/run~compile-fail.cpp new file mode 100644 index 0000000000..cacb17d133 --- /dev/null +++ b/tools/regression/test/run~compile-fail.cpp @@ -0,0 +1,9 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#error example of a compile failure diff --git a/tools/regression/test/run~fail-note.cpp b/tools/regression/test/run~fail-note.cpp new file mode 100644 index 0000000000..b514da0938 --- /dev/null +++ b/tools/regression/test/run~fail-note.cpp @@ -0,0 +1,17 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + std::cout << "example of output before a <note> line\n"; + std::cout << "<note>\n"; + std::cout << "example of output after a <note> line\n"; + return 1; +} diff --git a/tools/regression/test/run~fail-warn.cpp b/tools/regression/test/run~fail-warn.cpp new file mode 100644 index 0000000000..8cc21a110a --- /dev/null +++ b/tools/regression/test/run~fail-warn.cpp @@ -0,0 +1,20 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + + std::cout << "example of output from a run-time failure\n"; + return 1; +} diff --git a/tools/regression/test/run~fail.cpp b/tools/regression/test/run~fail.cpp new file mode 100644 index 0000000000..d6b8ffacf9 --- /dev/null +++ b/tools/regression/test/run~fail.cpp @@ -0,0 +1,14 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + return 1; +} diff --git a/tools/regression/test/run~note.cpp b/tools/regression/test/run~note.cpp new file mode 100644 index 0000000000..2841618522 --- /dev/null +++ b/tools/regression/test/run~note.cpp @@ -0,0 +1,17 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + std::cout << "example of output before a <note> line\n"; + std::cout << "<note>\n"; + std::cout << "example of output after a <note> line\n"; + return 0; +} diff --git a/tools/regression/test/run~pass.cpp b/tools/regression/test/run~pass.cpp new file mode 100644 index 0000000000..865b8eb3dd --- /dev/null +++ b/tools/regression/test/run~pass.cpp @@ -0,0 +1,12 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +int main() +{ + return 0; +} diff --git a/tools/regression/test/run~warn-note.cpp b/tools/regression/test/run~warn-note.cpp new file mode 100644 index 0000000000..36e1c5faf3 --- /dev/null +++ b/tools/regression/test/run~warn-note.cpp @@ -0,0 +1,24 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +#include <iostream> + +int main() +{ + std::cout << "example of output before a <note> line\n"; + std::cout << "<note>\n"; + std::cout << "example of output after a <note> line\n"; + + // provoke a compiler warning to make sure <note> takes priority over + // a warning, but neither is lost from status reporting links HTML. + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + return 0; +} diff --git a/tools/regression/test/run~warn.cpp b/tools/regression/test/run~warn.cpp new file mode 100644 index 0000000000..7895a229e7 --- /dev/null +++ b/tools/regression/test/run~warn.cpp @@ -0,0 +1,18 @@ +// (C) Copyright Beman Dawes 2003. Distributed under 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) + +// Test naming convention: the portion of the name before the tilde ("~") +// identifies the bjam test type. The portion after the tilde +// identifies the correct result to be reported by compiler_status. + +// provoke one or more compiler warnings + +int main(int argc, char * argv[] ) +{ + short s; + unsigned long ul; + s = s & ul; // warning from many compilers + if ( s == ul ) {} // warning from GCC + return 0; +} diff --git a/tools/regression/test/test-boost-build/ignored_rc/ignored_rc.jam b/tools/regression/test/test-boost-build/ignored_rc/ignored_rc.jam new file mode 100644 index 0000000000..61b1459292 --- /dev/null +++ b/tools/regression/test/test-boost-build/ignored_rc/ignored_rc.jam @@ -0,0 +1,11 @@ +rule failure + { + } + +actions failure + { + dir _ + echo a + } + +failure f ; diff --git a/tools/regression/test/test-boost-build/ignored_rc/recognized_rc.jam b/tools/regression/test/test-boost-build/ignored_rc/recognized_rc.jam new file mode 100644 index 0000000000..6afbc25ed4 --- /dev/null +++ b/tools/regression/test/test-boost-build/ignored_rc/recognized_rc.jam @@ -0,0 +1,12 @@ +rule failure + { + } + +actions failure + { + dir _ + if errorlevel 1 exit %errorlevel% + echo a + } + +failure f ; diff --git a/tools/regression/test/test-boost-build/missing_dependencies/Jamfile.v2 b/tools/regression/test/test-boost-build/missing_dependencies/Jamfile.v2 new file mode 100644 index 0000000000..d9e5149e8c --- /dev/null +++ b/tools/regression/test/test-boost-build/missing_dependencies/Jamfile.v2 @@ -0,0 +1,9 @@ +project + : requirements + <library>/boost/filesystem//boost_filesystem + <define>BOOST_ALL_NO_LIB + ; + + test-suite "missing_dependencies" : + [ run test.cpp lib//<link>static ] + ; diff --git a/tools/regression/test/test-boost-build/missing_dependencies/lib/Jamfile.v2 b/tools/regression/test/test-boost-build/missing_dependencies/lib/Jamfile.v2 new file mode 100644 index 0000000000..410e7edc9b --- /dev/null +++ b/tools/regression/test/test-boost-build/missing_dependencies/lib/Jamfile.v2 @@ -0,0 +1,7 @@ +SOURCES = + lib ; + +lib lib + : + $(SOURCES).cpp + ; diff --git a/tools/regression/test/test-boost-build/missing_dependencies/lib/lib.cpp b/tools/regression/test/test-boost-build/missing_dependencies/lib/lib.cpp new file mode 100644 index 0000000000..57c00cff3e --- /dev/null +++ b/tools/regression/test/test-boost-build/missing_dependencies/lib/lib.cpp @@ -0,0 +1 @@ +#error
\ No newline at end of file diff --git a/tools/regression/test/test-boost-build/missing_dependencies/test.cpp b/tools/regression/test/test-boost-build/missing_dependencies/test.cpp new file mode 100644 index 0000000000..c3aeba4bb6 --- /dev/null +++ b/tools/regression/test/test-boost-build/missing_dependencies/test.cpp @@ -0,0 +1 @@ +int main() { return 0; }
\ No newline at end of file diff --git a/tools/regression/test/test-cases/Huber2629/bjam.log b/tools/regression/test/test-cases/Huber2629/bjam.log new file mode 100644 index 0000000000..ca1fe1b9f4 --- /dev/null +++ b/tools/regression/test/test-cases/Huber2629/bjam.log @@ -0,0 +1,36 @@ +boost-test(RUN) "statechart/DllTestNative" : "libs/statechart/test/TuTestMain.cpp" +boost-test(RUN) "statechart/DllTestNormal" : "libs/statechart/test/TuTestMain.cpp" + +compile-c-c++ ..\..\..\bin.v2\libs\statechart\test\DllTestNormal.test\msvc-7.1\debug\threading-multi\TuTestMain.obj +TuTestMain.cpp +c:\Users\Misha\Stuff\boost\HEAD\boost\libs\statechart\test\TuTest.hpp(36) : warning C4275: non dll-interface class 'boost::statechart::event_base' used as base for dll-interface class 'boost::statechart::detail::rtti_policy::rtti_derived_type<MostDerived,Base>' + with + [ + MostDerived=EvX, + Base=boost::statechart::event_base + ] + ..\..\..\boost\statechart\event_base.hpp(49) : see declaration of 'boost::statechart::event_base' +compile-c-c++ ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLibTuTest.obj +TuTest.cpp +c:\Users\Misha\Stuff\boost\HEAD\boost\libs\statechart\test\TuTest.hpp(36) : warning C4275: non dll-interface class 'boost::statechart::event_base' used as base for dll-interface class 'boost::statechart::detail::rtti_policy::rtti_derived_type<MostDerived,Base>' + with + [ + MostDerived=EvX, + Base=boost::statechart::event_base + ] + ..\..\..\boost\statechart\event_base.hpp(49) : see declaration of 'boost::statechart::event_base' +msvc.link.dll ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib + Creating library ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib and object ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.exp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console /out:"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll" /IMPLIB:"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib" @"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.rsp" + if %errorlevel% 1 exit %errorlevel% + if exist "..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.manifest" ( + mt -nologo -manifest "..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.manifest" "-outputresource:..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll;2" + ) + +...failed msvc.link.dll ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib... +...removing ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll +...removing ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib +...skipped <p..\..\..\bin.v2\libs\statechart\test\DllTestNormal.test\msvc-7.1\debug\threading-multi>DllTestNormal.exe for lack of <p..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi>DllTestNormalLib-vc71-mt-gd-1_35.lib... +...skipped <p..\..\..\bin.v2\libs\statechart\test\DllTestNormal.test\msvc-7.1\debug\threading-multi>DllTestNormal.run for lack of <p..\..\..\bin.v2\libs\statechart\test\DllTestNormal.test\msvc-7.1\debug\threading-multi>DllTestNormal.exe... diff --git a/tools/regression/test/test-cases/Huber2629/expected/results.xml b/tools/regression/test/test-cases/Huber2629/expected/results.xml new file mode 100644 index 0000000000..44a32b04f5 --- /dev/null +++ b/tools/regression/test/test-cases/Huber2629/expected/results.xml @@ -0,0 +1,27 @@ +<test-log library="statechart" test-name="DllTestNormal" test-type="run" test-program="libs/statechart/test/TuTestMain.cpp" target-directory="bin.v2/libs/statechart/test/DllTestNormal.test/msvc-7.1/debug/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<lib result="fail" timestamp="">../../bin.v2/libs/statechart/test/msvc-7.1/debug/threading-multi</lib> +</test-log> + +<test-log library="statechart" test-name="" test-type="" test-program="" target-directory="bin.v2/libs/statechart/test/msvc-7.1/debug/threading-multi" toolset="" show-run-output="true"> +<compile result="succeed" timestamp=""> +TuTest.cpp +c:\Users\Misha\Stuff\boost\HEAD\boost\libs\statechart\test\TuTest.hpp(36) : warning C4275: non dll-interface class 'boost::statechart::event_base' used as base for dll-interface class 'boost::statechart::detail::rtti_policy::rtti_derived_type<MostDerived,Base>' + with + [ + MostDerived=EvX, + Base=boost::statechart::event_base + ] + ..\..\..\boost\statechart\event_base.hpp(49) : see declaration of 'boost::statechart::event_base' +</compile> +<link result="fail" timestamp=""> + Creating library ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib and object ..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.exp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console /out:"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll" /IMPLIB:"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.lib" @"..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.rsp" + if %errorlevel% 1 exit %errorlevel% + if exist "..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.manifest" ( + mt -nologo -manifest "..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll.manifest" "-outputresource:..\..\..\bin.v2\libs\statechart\test\msvc-7.1\debug\threading-multi\DllTestNormalLib-vc71-mt-gd-1_35.dll;2" + ) + +</link> +</test-log> diff --git a/tools/regression/test/test-cases/general/bjam.log b/tools/regression/test/test-cases/general/bjam.log new file mode 100644 index 0000000000..71013f7458 --- /dev/null +++ b/tools/regression/test/test-cases/general/bjam.log @@ -0,0 +1,325 @@ +locate-root "..\..\..\bin.v2" +C:\Users\Misha\Stuff\boost\HEAD\boost\tools\regression\test>C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost\tools\jam\src\bin.ntx86\bjam.exe --dump-tests --v2 msvc-7.1 "-sBOOST_BUILD_PATH=C:\Users\Misha\Stuff\boost\HEAD\bin\.." "-sBOOST_ROOT="C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost" +warning: Python location is not configured +warning: the Boost.Python library won't be built +Building Boost.Regex with the optional Unicode/ICU support disabled. +Please refer to the Boost.Regex documentation for more information +(and if you don't know what ICU is then you probably don't need it). +boost-test(RUN) "testlib/run~warn" : "tools/regression/test/run~warn.cpp" +boost-test(RUN) "testlib/run~warn-note" : "tools/regression/test/run~warn-note.cpp" +boost-test(RUN) "testlib/run~pass" : "tools/regression/test/run~pass.cpp" +boost-test(RUN) "testlib/run~note" : "tools/regression/test/run~note.cpp" +boost-test(RUN) "testlib/run~fail" : "tools/regression/test/run~fail.cpp" +boost-test(RUN_FAIL) "testlib/run-fail~pass" : "tools/regression/test/run-fail~pass.cpp" +boost-test(RUN_FAIL) "testlib/run-fail~fail" : "tools/regression/test/run-fail~fail.cpp" +boost-test(RUN_FAIL) "testlib/run-fail~fail-warn" : "tools/regression/test/run-fail~fail-warn.cpp" +boost-test(RUN_FAIL) "testlib/run-fail~compile-fail" : "tools/regression/test/run-fail~compile-fail.cpp" +boost-test(LINK_FAIL) "testlib/link-fail~pass" : "tools/regression/test/link-fail~pass.cpp" +boost-test(LINK_FAIL) "testlib/link-fail~fail" : "tools/regression/test/link-fail~fail.cpp" +boost-test(LINK) "testlib/link~pass" : "tools/regression/test/link~pass.cpp" +boost-test(LINK) "testlib/link~fail" : "tools/regression/test/link~fail.cpp" +boost-test(COMPILE) "testlib/compile~warn" : "tools/regression/test/compile~warn.cpp" +boost-test(COMPILE) "testlib/compile~pass" : "tools/regression/test/compile~pass.cpp" +boost-test(COMPILE) "testlib/compile~fail" : "tools/regression/test/compile~fail.cpp" +boost-test(COMPILE_FAIL) "testlib/compile-fail~pass" : "tools/regression/test/compile-fail~pass.cpp" +boost-test(COMPILE_FAIL) "testlib/compile-fail~fail" : "tools/regression/test/compile-fail~fail.cpp" +...found 210 targets... +...updating 157 targets... +MkDir1 ..\..\..\bin.v2\tools\regression\test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~fail.obj +compile-fail~fail.cpp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~fail.obj.rsp" + +...failed compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~fail.obj... +...removing ..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~fail.obj +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~pass.obj +compile-fail~pass.cpp +compile-fail~pass.cpp(9) : fatal error C1189: #error : example of a compile failure
+(failed-as-expected) ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~pass.obj +**passed** ..\..\..\bin.v2\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\threading-multi\compile~fail.obj +compile~fail.cpp +compile~fail.cpp(9) : fatal error C1189: #error : example of a compile failure
+ + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\threading-multi\compile~fail.obj.rsp" + +...failed compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\threading-multi\compile~fail.obj... +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1\debug\link-static\threading-multi\compile~pass.obj +compile~pass.cpp +**passed** ..\..\..\bin.v2\tools\regression\test\compile~pass.test\msvc-7.1\debug\link-static\threading-multi\compile~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~warn.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1\debug\link-static\threading-multi\compile~warn.obj +compile~warn.cpp +compile~warn.cpp(15) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\compile~warn.cpp(15) : warning C4700: local variable 'ul' used without having been initialized +**passed** ..\..\..\bin.v2\tools\regression\test\compile~warn.test\msvc-7.1\debug\link-static\threading-multi\compile~warn.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.obj +link~fail.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe +link~fail.obj : error LNK2019: unresolved external symbol "int __cdecl f(void)" (?f@@YAHXZ) referenced in function _main +..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe : fatal error LNK1120: 1 unresolved externals + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe" @"..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.rsp" + if errorlevel 1 exit %errorlevel% + if exist "..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.manifest" ( + mt -nologo -manifest "..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.manifest" "-outputresource:..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe;1" + ) + +...failed msvc.link ..\..\..\bin.v2\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe... +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug\link-static\threading-multi\link~pass.obj +link~pass.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug\link-static\threading-multi\link~pass.exe +**passed** ..\..\..\bin.v2\tools\regression\test\link~pass.test\msvc-7.1\debug\link-static\threading-multi\link~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.obj +link-fail~fail.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe" @"..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.rsp" + if errorlevel 1 exit %errorlevel% + if exist "..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.manifest" ( + mt -nologo -manifest "..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.manifest" "-outputresource:..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe;1" + ) + +...failed msvc.link ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe... +...removing ..\..\..\bin.v2\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.obj +link-fail~pass.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.exe +link-fail~pass.obj : error LNK2019: unresolved external symbol "int __cdecl f(void)" (?f@@YAHXZ) referenced in function _main +..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.exe : fatal error LNK1120: 1 unresolved externals +(failed-as-expected) ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.exe +**passed** ..\..\..\bin.v2\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~compile-fail.obj +run-fail~compile-fail.cpp +run-fail~compile-fail.cpp(9) : fatal error C1189: #error : example of a compile failure
+ + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~compile-fail.obj.rsp" + +...failed compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~compile-fail.obj... +...skipped <p..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi>run-fail~compile-fail.exe for lack of <p..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi>run-fail~compile-fail.obj... +...skipped <p..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi>run-fail~compile-fail.run for lack of <p..\..\..\bin.v2\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi>run-fail~compile-fail.exe... +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.obj +run-fail~fail-warn.cpp +run-fail~fail-warn.cpp(13) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run-fail~fail-warn.cpp(13) : warning C4700: local variable 'ul' used without having been initialized +msvc.link ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.run + 1 file(s) copied. + + + ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.exe > ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.output 2>&1 + set status=%ERRORLEVEL% + echo. >> ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.output + echo EXIT STATUS: %status% >> ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.output + if %status% EQU 0 ( + copy ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.output ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.run + ) + set verbose=0 + if %status% NEQ 0 ( + set verbose=1 + ) + if %verbose% EQU 1 ( + echo ====== BEGIN OUTPUT ====== + type ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.output + echo ====== END OUTPUT ====== + ) + exit %status% + +...failed testing.capture-output ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.run... +...removing ..\..\..\bin.v2\tools\regression\test\run-fail~fail-warn.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail-warn.run +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.obj +run-fail~fail.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.run + 1 file(s) copied. + + + ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.exe > ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.output 2>&1 + set status=%ERRORLEVEL% + echo. >> ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.output + echo EXIT STATUS: %status% >> ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.output + if %status% EQU 0 ( + copy ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.output ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.run + ) + set verbose=0 + if %status% NEQ 0 ( + set verbose=1 + ) + if %verbose% EQU 1 ( + echo ====== BEGIN OUTPUT ====== + type ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.output + echo ====== END OUTPUT ====== + ) + exit %status% + +...failed testing.capture-output ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.run... +...removing ..\..\..\bin.v2\tools\regression\test\run-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~fail.run +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\run-fail~pass.obj +run-fail~pass.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\run-fail~pass.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\run-fail~pass.run +====== BEGIN OUTPUT ====== +example of output from a run-time failure + +EXIT STATUS: 1 +====== END OUTPUT ====== + + del /f /q "..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\run-fail~pass.exe" + +...failed RmTemps ..\..\..\bin.v2\tools\regression\test\run-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\run-fail~pass.run... +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~fail.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug +...on 100th target... +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.obj +run~fail.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.run +====== BEGIN OUTPUT ====== + +EXIT STATUS: 1 +====== END OUTPUT ====== + + + ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.exe > ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.output 2>&1 + set status=%ERRORLEVEL% + echo. >> ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.output + echo EXIT STATUS: %status% >> ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.output + if %status% EQU 0 ( + copy ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.output ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.run + ) + set verbose=0 + if %status% NEQ 0 ( + set verbose=1 + ) + if %verbose% EQU 1 ( + echo ====== BEGIN OUTPUT ====== + type ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.output + echo ====== END OUTPUT ====== + ) + exit %status% + +...failed testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~fail.test\msvc-7.1\debug\link-static\threading-multi\run~fail.run... +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~note.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static\threading-multi\run~note.obj +run~note.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static\threading-multi\run~note.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static\threading-multi\run~note.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~note.test\msvc-7.1\debug\link-static\threading-multi\run~note.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj +run~pass.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn-note.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static\threading-multi\run~warn-note.obj +run~warn-note.cpp +run~warn-note.cpp(21) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run~warn-note.cpp(21) : warning C4700: local variable 'ul' used without having been initialized +msvc.link ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static\threading-multi\run~warn-note.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static\threading-multi\run~warn-note.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~warn-note.test\msvc-7.1\debug\link-static\threading-multi\run~warn-note.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static\threading-multi\run~warn.obj +run~warn.cpp +run~warn.cpp(15) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run~warn.cpp(15) : warning C4700: local variable 'ul' used without having been initialized +msvc.link ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static\threading-multi\run~warn.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static\threading-multi\run~warn.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~warn.test\msvc-7.1\debug\link-static\threading-multi\run~warn.test +...failed updating 9 targets... +...skipped 17 targets... +...updated 131 targets... diff --git a/tools/regression/test/test-cases/general/expected/results.xml b/tools/regression/test/test-cases/general/expected/results.xml new file mode 100644 index 0000000000..13224e0113 --- /dev/null +++ b/tools/regression/test/test-cases/general/expected/results.xml @@ -0,0 +1,167 @@ +<test-log library="" test-name="compile-fail~fail" test-type="" test-program="" target-directory="tools/regression/test/compile-fail~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="fail" timestamp="xxx"> +compile-fail~fail.cpp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~fail.obj.rsp" + +</compile> +</test-log> +<test-log library="" test-name="compile-fail~pass" test-type="" test-program="" target-directory="tools/regression/test/compile-fail~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +compile-fail~pass.cpp +compile-fail~pass.cpp(9) : fatal error C1189: #error : example of a compile failure +(failed-as-expected) C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\compile-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\compile-fail~pass.obj +</compile> +</test-log> +<test-log library="" test-name="compile~fail" test-type="" test-program="" target-directory="tools/regression/test/compile~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="fail" timestamp="xxx"> +compile~fail.cpp +compile~fail.cpp(9) : fatal error C1189: #error : example of a compile failure + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\threading-multi\compile~fail.obj.rsp" + +</compile> +</test-log> +<test-log library="" test-name="compile~pass" test-type="" test-program="" target-directory="tools/regression/test/compile~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +compile~pass.cpp +</compile> +</test-log> +<test-log library="" test-name="compile~warn" test-type="" test-program="" target-directory="tools/regression/test/compile~warn.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +compile~warn.cpp +compile~warn.cpp(15) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\compile~warn.cpp(15) : warning C4700: local variable 'ul' used without having been initialized +</compile> +</test-log> +<test-log library="" test-name="link-fail~fail" test-type="" test-program="" target-directory="tools/regression/test/link-fail~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +link-fail~fail.cpp +</compile> +<link result="fail" timestamp="xxx"> + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe" @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.rsp" + if errorlevel 1 exit %errorlevel% + if exist "C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.manifest" ( + mt -nologo -manifest "C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe.manifest" "-outputresource:C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~fail.test\msvc-7.1\debug\link-static\threading-multi\link-fail~fail.exe;1" + ) + +</link> +</test-log> +<test-log library="" test-name="link-fail~pass" test-type="" test-program="" target-directory="tools/regression/test/link-fail~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +link-fail~pass.cpp +</compile> +<link result="succeed" timestamp="xxx"> +link-fail~pass.obj : error LNK2019: unresolved external symbol "int __cdecl f(void)" (?f@@YAHXZ) referenced in function _main +C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.exe : fatal error LNK1120: 1 unresolved externals +(failed-as-expected) C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link-fail~pass.test\msvc-7.1\debug\link-static\threading-multi\link-fail~pass.exe +</link> +</test-log> +<test-log library="" test-name="link~fail" test-type="" test-program="" target-directory="tools/regression/test/link~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +link~fail.cpp +</compile> +<link result="fail" timestamp="xxx"> +link~fail.obj : error LNK2019: unresolved external symbol "int __cdecl f(void)" (?f@@YAHXZ) referenced in function _main +C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe : fatal error LNK1120: 1 unresolved externals + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe" @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.rsp" + if errorlevel 1 exit %errorlevel% + if exist "C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.manifest" ( + mt -nologo -manifest "C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe.manifest" "-outputresource:C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\link~fail.test\msvc-7.1\debug\link-static\threading-multi\link~fail.exe;1" + ) + +</link> +</test-log> +<test-log library="" test-name="link~pass" test-type="" test-program="" target-directory="tools/regression/test/link~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +link~pass.cpp +</compile> +<link result="succeed" timestamp="xxx"> +</link> +</test-log> +<test-log library="" test-name="run-fail~compile-fail" test-type="" test-program="" target-directory="tools/regression/test/run-fail~compile-fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="fail" timestamp="xxx"> +run-fail~compile-fail.cpp +run-fail~compile-fail.cpp(9) : fatal error C1189: #error : example of a compile failure + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\general\actual\tools\regression\test\run-fail~compile-fail.test\msvc-7.1\debug\link-static\threading-multi\run-fail~compile-fail.obj.rsp" + +</compile> +</test-log> +<test-log library="" test-name="run-fail~fail-warn" test-type="" test-program="" target-directory="tools/regression/test/run-fail~fail-warn.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run-fail~fail-warn.cpp +run-fail~fail-warn.cpp(13) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run-fail~fail-warn.cpp(13) : warning C4700: local variable 'ul' used without having been initialized +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="fail" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run-fail~fail" test-type="" test-program="" target-directory="tools/regression/test/run-fail~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run-fail~fail.cpp +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="fail" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run-fail~pass" test-type="" test-program="" target-directory="tools/regression/test/run-fail~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run-fail~pass.cpp +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="succeed" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run~fail" test-type="" test-program="" target-directory="tools/regression/test/run~fail.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run~fail.cpp +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="fail" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run~note" test-type="" test-program="" target-directory="tools/regression/test/run~note.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run~note.cpp +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="succeed" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run~pass" test-type="" test-program="" target-directory="tools/regression/test/run~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run~pass.cpp +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="succeed" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run~warn-note" test-type="" test-program="" target-directory="tools/regression/test/run~warn-note.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run~warn-note.cpp +run~warn-note.cpp(21) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run~warn-note.cpp(21) : warning C4700: local variable 'ul' used without having been initialized +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="succeed" timestamp="xxx"> +</run> +</test-log> +<test-log library="" test-name="run~warn" test-type="" test-program="" target-directory="tools/regression/test/run~warn.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="succeed" timestamp="xxx"> +run~warn.cpp +run~warn.cpp(15) : warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data +c:\users\misha\stuff\boost\head\boost\tools\regression\test\run~warn.cpp(15) : warning C4700: local variable 'ul' used without having been initialized +</compile> +<link result="succeed" timestamp="xxx"></link> +<run result="succeed" timestamp="xxx"> +</run> +</test-log> diff --git a/tools/regression/test/test-cases/incremental/bjam.log b/tools/regression/test/test-cases/incremental/bjam.log new file mode 100644 index 0000000000..65db0844c2 --- /dev/null +++ b/tools/regression/test/test-cases/incremental/bjam.log @@ -0,0 +1,33 @@ +locate-root "..\..\..\bin.v2" +C:\Users\Misha\Stuff\boost\HEAD\boost\tools\regression\test>C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost\tools\jam\src\bin.ntx86\bjam.exe --dump-tests --v2 msvc-7.1 "-sBOOST_BUILD_PATH=C:\Users\Misha\Stuff\boost\HEAD\bin\.." "-sBOOST_ROOT="C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost" + +boost-test(RUN) "testlib/run~pass" : "tools/regression/test/run~pass.cpp" +boost-test(RUN) "testlib/run~pass" : "tools/regression/test/run~pass2s.cpp" + +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj +run~pass.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.test + +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.obj +run~pass2.cpp +msvc.link ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe +testing.capture-output ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.run + 1 file(s) copied. +**passed** ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.test + +...failed updating 9 targets... +...skipped 17 targets... +...updated 131 targets... diff --git a/tools/regression/test/test-cases/incremental/bjam.log.1 b/tools/regression/test/test-cases/incremental/bjam.log.1 new file mode 100644 index 0000000000..967ed9eb23 --- /dev/null +++ b/tools/regression/test/test-cases/incremental/bjam.log.1 @@ -0,0 +1,38 @@ +locate-root "..\..\..\bin.v2" +C:\Users\Misha\Stuff\boost\HEAD\boost\tools\regression\test>C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost\tools\jam\src\bin.ntx86\bjam.exe --dump-tests --v2 msvc-7.1 "-sBOOST_BUILD_PATH=C:\Users\Misha\Stuff\boost\HEAD\bin\.." "-sBOOST_ROOT="C:\Users\Misha\Stuff\boost\HEAD\bin\..\boost" + +boost-test(RUN) "testlib/run~pass" : "tools/regression/test/run~pass.cpp" + +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj +run~pass.cpp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj.rsp" + +...failed compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj... + +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1 +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static +MkDir1 ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi +compile-c-c++ ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.obj +run~pass2.cpp + +msvc.link ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe" @"..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe.rsp" + if errorlevel 1 exit %errorlevel% + if exist "..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe.manifest" ( + mt -nologo -manifest "..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe.manifest" "-outputresource:..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe;1" + ) + +...failed msvc.link ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe... +...removing ..\..\..\bin.v2\tools\regression\test\run~pass2.test\msvc-7.1\debug\link-static\threading-multi\run~pass2.exe + + +...failed updating 9 targets... +...skipped 17 targets... +...updated 131 targets... diff --git a/tools/regression/test/test-cases/incremental/expected/results.xml b/tools/regression/test/test-cases/incremental/expected/results.xml new file mode 100644 index 0000000000..0580bd588f --- /dev/null +++ b/tools/regression/test/test-cases/incremental/expected/results.xml @@ -0,0 +1,9 @@ +<test-log library="" test-name="run~pass" test-type="" test-program="" target-directory="tools/regression/test/run~pass.test/msvc-7.1/debug/link-static/threading-multi" toolset="msvc-7.1" show-run-output="false"> +<compile result="fail" timestamp="xxx"> +run~pass.cpp + + call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul +cl /Zm800 -nologo @"C:\users\Misha\Stuff\boost\boost\tools\regression\test\test-cases\incremental\actual\tools\regression\test\run~pass.test\msvc-7.1\debug\link-static\threading-multi\run~pass.obj.rsp" + +</compile> +</test-log> diff --git a/tools/regression/test/test.bat b/tools/regression/test/test.bat new file mode 100644 index 0000000000..200c716cba --- /dev/null +++ b/tools/regression/test/test.bat @@ -0,0 +1,10 @@ +set TEST_LOCATE_ROOT=d:\temp + +echo Begin test processing... +bjam --dump-tests "-sALL_LOCATE_TARGET=%TEST_LOCATE_ROOT%" %* >bjam.log 2>&1 +echo Begin log processing... +process_jam_log %TEST_LOCATE_ROOT% <bjam.log +start bjam.log +echo Begin compiler status processing... +compiler_status --locate-root %TEST_LOCATE_ROOT% %BOOST_ROOT% test_status.html test_links.html +start test_status.html diff --git a/tools/regression/test/test.py b/tools/regression/test/test.py new file mode 100644 index 0000000000..5a627ea2b5 --- /dev/null +++ b/tools/regression/test/test.py @@ -0,0 +1,181 @@ +# Copyright (c) MetaCommunications, Inc. 2003-2005 +# +# Distributed under 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) + +import difflib +import os +import re +import shutil +import string +import sys + + + +def scan_for_test_cases(): + return [ os.path.join( "test-cases", x ) for x in os.listdir( "test-cases" ) if x != "CVS" ] + +def clean_dir( dir ): + if os.path.exists( dir ): + shutil.rmtree( dir ) + os.makedirs( dir ) + +def system( commands ): + if sys.platform == 'win32': + f = open( 'tmp.cmd', 'w' ) + f.write( string.join( commands, '\n' ) ) + f.close() + rc = os.system( 'tmp.cmd' ) + os.unlink( 'tmp.cmd' ) + return rc + else: + rc = os.system( '&&'.join( commands ) ) + return rc + +def checked_system( commands, valid_return_codes = [ 0 ] ): + rc = system( commands ) + if rc not in [ 0 ] + valid_return_codes: + raise Exception( 'Command sequence "%s" failed with return code %d' % ( commands, rc ) ) + return rc + +def list_recursively( dir ): + r = [] + for root, dirs, files in os.walk( dir, topdown=False ): + root = root[ len( dir ) + 1 : ] + r.extend( [ os.path.join( root, x ) for x in dirs ] ) + r.extend( [ os.path.join( root, x ) for x in files ] ) + + return r + +def find_process_jam_log(): + root = "../../../" + + for root, dirs, files in os.walk( os.path.join( root, "bin.v2" ), topdown=False ): + if "process_jam_log.exe" in files: + return os.path.abspath( os.path.normpath( os.path.join( root, "process_jam_log.exe" ) ) ) + if "process_jam_log" in files: + return os.path.abspath( os.path.normpath( os.path.join( root, "process_jam_log" ) ) ) + return None + +def process_jam_log( executable, file, locate_root, results_dir ): + args = [] + args.append( executable ) + # args.append( '--echo' ) + args.append( '--create-directories' ) + args.append( '--v2' ) + args.append( locate_root ) + args.append( '<' ) + args.append( file ) + + cmd = " ".join( args ) + print "Running process_jam_log (%s)" % cmd + checked_system( [ cmd ] ) + + +def read_file( file_path ): + f = open( file_path ) + try: + return f.read() + finally: + f.close() + +def remove_timestamps( log_lines ): + return [ re.sub( "timestamp=\"[^\"]+\"", "timestamp=\"\"", x ) for x in log_lines ] + +def determine_locate_root( bjam_log ): + locate_root = None + f = open( 'bjam.log' ) + try: + locate_root_re = re.compile( r'locate-root\s+"(.*)"' ) + for l in f.readlines(): + m = locate_root_re.match( l ) + if m: + locate_root = m.group(1) + break + finally: + f.close() + return locate_root + +def read_file( path ): + f = open( path ) + try: + return f.read() + finally: + f.close() + +def read_file_lines( path ): + f = open( path ) + try: + return f.readlines() + finally: + f.close() + +def write_file( path, content ): + f = open( path, 'w' ) + try: + return f.write( content ) + finally: + f.close() + +def write_file_lines( path, content ): + f = open( path, 'w' ) + try: + return f.writelines( content ) + finally: + f.close() + + +def run_test_cases( test_cases ): + process_jam_log_executable = find_process_jam_log() + print 'Found process_jam_log: %s' % process_jam_log_executable + initial_dir = os.getcwd() + for test_case in test_cases: + os.chdir( initial_dir ) + print 'Running test case "%s"' % test_case + os.chdir( test_case ) + if os.path.exists( "expected" ): + locate_root = determine_locate_root( 'bjam.log' ) + print 'locate_root: %s' % locate_root + + actual_results_dir = os.path.join( test_case, "actual" ) + clean_dir( "actual" ) + os.chdir( "actual" ) + root = os.getcwd() + i = 0 + while 1: + if i == 0: + bjam_log_file = 'bjam.log' + else: + bjam_log_file = 'bjam.log.%0d' % i + i += 1 + print 'Looking for %s' % bjam_log_file + if not os.path.exists( os.path.join( '..', bjam_log_file ) ): + print ' does not exists' + break + print ' found' + write_file_lines(bjam_log_file.replace( 'bjam', 'bjam_' ), + [ x.replace( locate_root, root ) for x in read_file_lines( os.path.join( '..', bjam_log_file ) ) ] ) + + process_jam_log( executable = process_jam_log_executable + , results_dir = "." + , locate_root = root + , file=bjam_log_file.replace( 'bjam', 'bjam_' ) ) + + actual_content = list_recursively( "." ) + actual_content.sort() + result_xml = [] + for test_log in [ x for x in actual_content if os.path.splitext( x )[1] == '.xml' ]: + print 'reading %s' % test_log + result = [ re.sub( r'timestamp="(.*)"', 'timestamp="xxx"', x ) for x in read_file_lines( test_log ) ] + result_xml.extend( result ) + + write_file_lines( 'results.xml', result_xml ) + os.chdir( '..' ) + assert read_file( 'expected/results.xml' ) == read_file( 'actual/results.xml' ) + os.chdir( '..' ) + else: + raise ' Test case "%s" doesn\'t contain the expected results directory ("expected" )' % ( test_case ) + +run_test_cases( scan_for_test_cases() ) +# print find_process_jam_log() |