├── .appveyor.yml ├── .circleci └── config.yml ├── .gitignore ├── .travis.yml ├── AUTHORS ├── CMakeLists.txt ├── CMakeModules ├── CMakeLists.test.txt ├── FindOpenCL.cmake ├── FindOpenCV.cmake ├── FindSCOTCH.cmake ├── FindSilo.cmake ├── FindVisIt.cmake ├── testguard.h └── util.cmake ├── LICENSE ├── README ├── doc └── misc │ └── opencl │ ├── by-sa.eps │ ├── fau.eps │ ├── logo_i3.png │ ├── logo_i3.xcf │ └── opencl.tex ├── lib ├── build_scotch ├── cxxtest │ ├── .gitignore │ ├── COPYING │ ├── README │ ├── Versions │ ├── admin │ │ ├── announcement │ │ ├── cloudbees_cxxtest │ │ ├── cxxtest.spec │ │ ├── jenkins_cxxtest │ │ ├── virtualenv.py │ │ └── virtualenv_1.7.py │ ├── bin │ │ ├── cxxtestgen │ │ └── cxxtestgen.bat │ ├── build_tools │ │ ├── SCons │ │ │ ├── AUTHORS │ │ │ ├── cxxtest.py │ │ │ └── test │ │ │ │ ├── default_env │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ └── TestDef.py │ │ │ │ ├── empty_source_list │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ ├── requirement.hpp │ │ │ │ ├── test_bar.t.h │ │ │ │ └── test_foo.t.h │ │ │ │ ├── eprouvette.py │ │ │ │ ├── expanding_# │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ └── TestDef.py │ │ │ │ ├── globbing │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── requirement.cpp │ │ │ │ │ ├── requirement.h │ │ │ │ │ ├── test_bar.t.h │ │ │ │ │ └── test_foo.t.h │ │ │ │ ├── globbing_edmundo │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ ├── hello.cc │ │ │ │ ├── hello.hh │ │ │ │ ├── hellotest.t.h │ │ │ │ └── main.cpp │ │ │ │ ├── include_CCFLAGS │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── not-with-pedantic.h │ │ │ │ │ └── only_with_ansi.t.h │ │ │ │ ├── include_CXXFLAGS │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ └── not-with-pedantic.h │ │ │ │ ├── libpath │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ ├── src │ │ │ │ │ ├── SConscript │ │ │ │ │ └── foo.cpp │ │ │ │ └── test │ │ │ │ │ ├── SConscript │ │ │ │ │ └── test.t.h │ │ │ │ ├── libpath_multitarget │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ ├── src1 │ │ │ │ │ ├── SConscript │ │ │ │ │ └── foo.cpp │ │ │ │ ├── src2 │ │ │ │ │ ├── SConscript │ │ │ │ │ └── bar.cpp │ │ │ │ └── test │ │ │ │ │ ├── SConscript │ │ │ │ │ ├── test1.t.h │ │ │ │ │ └── test2.t.h │ │ │ │ ├── multifile_tests │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── requirement.cpp │ │ │ │ │ ├── requirement.h │ │ │ │ │ ├── test_bar.t.h │ │ │ │ │ └── test_foo.t.h │ │ │ │ ├── need_cpppath │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── cpppath.t.h │ │ │ │ │ └── cpppathdir │ │ │ │ │ └── include.h │ │ │ │ ├── nonstandard_cxxtest_dir │ │ │ │ ├── SConstruct │ │ │ │ └── TestDef.py │ │ │ │ ├── printer_propagation │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ ├── cxxtest │ │ │ │ │ └── CrazyRunner.h │ │ │ │ └── src │ │ │ │ │ └── failtest.t.h │ │ │ │ ├── recursive_sources │ │ │ │ ├── README │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── requirement.cpp │ │ │ │ │ ├── requirement.h │ │ │ │ │ ├── test_bar.t.h │ │ │ │ │ └── test_foo.t.h │ │ │ │ ├── string_cpppath │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ │ ├── cpppath.t.h │ │ │ │ │ └── cpppathdir │ │ │ │ │ └── include.h │ │ │ │ └── target_syntax │ │ │ │ ├── SConstruct │ │ │ │ ├── TestDef.py │ │ │ │ └── src │ │ │ │ ├── cpppath.t.h │ │ │ │ └── cpppathdir │ │ │ │ └── include.h │ │ └── cmake │ │ │ ├── CxxTest.cmake │ │ │ └── FindCxxTest.cmake │ ├── cxxtest │ │ ├── Descriptions.cpp │ │ ├── Descriptions.h │ │ ├── DummyDescriptions.cpp │ │ ├── DummyDescriptions.h │ │ ├── ErrorFormatter.h │ │ ├── ErrorPrinter.h │ │ ├── Flags.h │ │ ├── GlobalFixture.cpp │ │ ├── GlobalFixture.h │ │ ├── Gui.h │ │ ├── LinkedList.cpp │ │ ├── LinkedList.h │ │ ├── MSVCErrorPrinter.h │ │ ├── Mock.h │ │ ├── ParenPrinter.h │ │ ├── QtGui.h │ │ ├── RealDescriptions.cpp │ │ ├── RealDescriptions.h │ │ ├── Root.cpp │ │ ├── SelfTest.h │ │ ├── StdHeaders.h │ │ ├── StdTestSuite.h │ │ ├── StdValueTraits.h │ │ ├── StdioFilePrinter.h │ │ ├── StdioPrinter.h │ │ ├── TeeListener.h │ │ ├── TestListener.h │ │ ├── TestMain.h │ │ ├── TestRunner.h │ │ ├── TestSuite.cpp │ │ ├── TestSuite.h │ │ ├── TestTracker.cpp │ │ ├── TestTracker.h │ │ ├── ValueTraits.cpp │ │ ├── ValueTraits.h │ │ ├── Win32Gui.h │ │ ├── X11Gui.h │ │ ├── XUnitPrinter.h │ │ ├── XmlFormatter.h │ │ ├── XmlPrinter.h │ │ ├── YesNoRunner.h │ │ └── unix.h │ ├── doc │ │ ├── Makefile │ │ ├── README.txt │ │ ├── catalog.xml │ │ ├── epub │ │ │ ├── README │ │ │ ├── bin │ │ │ │ ├── dbtoepub │ │ │ │ ├── lib │ │ │ │ │ └── docbook.rb │ │ │ │ └── xslt │ │ │ │ │ └── obfuscate.xsl │ │ │ └── docbook.xsl │ │ ├── examples │ │ │ ├── Assertions.h │ │ │ ├── BadTestSuite1.h │ │ │ ├── GetGlobals.sh │ │ │ ├── MockTestSuite.h │ │ │ ├── MyClass.h │ │ │ ├── MyTestSuite1.h │ │ │ ├── MyTestSuite10.h │ │ │ ├── MyTestSuite11.h │ │ │ ├── MyTestSuite12.h │ │ │ ├── MyTestSuite2.h │ │ │ ├── MyTestSuite3.h │ │ │ ├── MyTestSuite4.h │ │ │ ├── MyTestSuite5.h │ │ │ ├── MyTestSuite6.h │ │ │ ├── MyTestSuite7.h │ │ │ ├── MyTestSuite8.h │ │ │ ├── MyTestSuite9.h │ │ │ ├── Namespace1.h │ │ │ ├── Namespace2.h │ │ │ ├── TMyClass.h │ │ │ ├── buildRunner.log │ │ │ ├── buildRunner.sh │ │ │ ├── buildRunner.txt │ │ │ ├── buildRunner10.sh │ │ │ ├── buildRunner10.txt │ │ │ ├── buildRunner11.sh │ │ │ ├── buildRunner11.txt │ │ │ ├── buildRunner12.sh │ │ │ ├── buildRunner12.txt │ │ │ ├── buildRunner13.sh │ │ │ ├── buildRunner14.sh │ │ │ ├── buildRunner14.txt │ │ │ ├── buildRunner15.sh │ │ │ ├── buildRunner15.txt │ │ │ ├── buildRunner16.sh │ │ │ ├── buildRunner16.txt │ │ │ ├── buildRunner17.sh │ │ │ ├── buildRunner17.txt │ │ │ ├── buildRunner18.sh │ │ │ ├── buildRunner18.txt │ │ │ ├── buildRunner19.sh │ │ │ ├── buildRunner19.txt │ │ │ ├── buildRunner2.log │ │ │ ├── buildRunner2.sh │ │ │ ├── buildRunner2.txt │ │ │ ├── buildRunner20.sh │ │ │ ├── buildRunner20.txt │ │ │ ├── buildRunner21.sh │ │ │ ├── buildRunner21.txt │ │ │ ├── buildRunner22.sh │ │ │ ├── buildRunner22.txt │ │ │ ├── buildRunner23.sh │ │ │ ├── buildRunner23.txt │ │ │ ├── buildRunner24.sh │ │ │ ├── buildRunner24.txt │ │ │ ├── buildRunner25.sh │ │ │ ├── buildRunner25.txt │ │ │ ├── buildRunner3.sh │ │ │ ├── buildRunner3.txt │ │ │ ├── buildRunner4.sh │ │ │ ├── buildRunner4.txt │ │ │ ├── buildRunner5.sh │ │ │ ├── buildRunner5.txt │ │ │ ├── buildRunner6.sh │ │ │ ├── buildRunner6.txt │ │ │ ├── buildRunner7.sh │ │ │ ├── buildRunner7.txt │ │ │ ├── buildRunner8.sh │ │ │ ├── buildRunner9.sh │ │ │ ├── cxxtestgen.out │ │ │ ├── rand_example.cpp │ │ │ ├── runner10.tpl │ │ │ ├── runner13.MyTestSuite2.txt │ │ │ ├── runner13.help.txt │ │ │ ├── runner13.helpTests.txt │ │ │ ├── runner13.testMultiplication.txt │ │ │ ├── runner13.testMultiplicationVerbose.txt │ │ │ ├── test_examples.py │ │ │ ├── time_mock.cpp │ │ │ ├── time_mock.h │ │ │ └── time_real.cpp │ │ ├── guide.txt │ │ ├── images │ │ │ └── icons │ │ │ │ ├── README │ │ │ │ ├── callouts │ │ │ │ ├── 1.png │ │ │ │ ├── 10.png │ │ │ │ ├── 11.png │ │ │ │ ├── 12.png │ │ │ │ ├── 13.png │ │ │ │ ├── 14.png │ │ │ │ ├── 15.png │ │ │ │ ├── 2.png │ │ │ │ ├── 3.png │ │ │ │ ├── 4.png │ │ │ │ ├── 5.png │ │ │ │ ├── 6.png │ │ │ │ ├── 7.png │ │ │ │ ├── 8.png │ │ │ │ └── 9.png │ │ │ │ ├── caution.png │ │ │ │ ├── example.png │ │ │ │ ├── home.png │ │ │ │ ├── important.png │ │ │ │ ├── next.png │ │ │ │ ├── note.png │ │ │ │ ├── prev.png │ │ │ │ ├── tip.png │ │ │ │ ├── up.png │ │ │ │ └── warning.png │ │ └── include_anchors.py │ ├── python │ │ ├── README.txt │ │ ├── convert.py │ │ ├── cxxtest │ │ │ ├── .gitignore │ │ │ ├── __init__.py │ │ │ ├── __release__.py │ │ │ ├── cxx_parser.py │ │ │ ├── cxxtest_fog.py │ │ │ ├── cxxtest_misc.py │ │ │ ├── cxxtest_parser.py │ │ │ └── cxxtestgen.py │ │ ├── python3 │ │ │ ├── cxxtest │ │ │ │ ├── __init__.py │ │ │ │ ├── __release__.py │ │ │ │ ├── cxx_parser.py │ │ │ │ ├── cxxtest_fog.py │ │ │ │ ├── cxxtest_misc.py │ │ │ │ ├── cxxtest_parser.py │ │ │ │ └── cxxtestgen.py │ │ │ └── scripts │ │ │ │ └── cxxtestgen │ │ ├── scripts │ │ │ └── cxxtestgen │ │ └── setup.py │ ├── sample │ │ ├── .cvsignore │ │ ├── Construct │ │ ├── CreatedTest.h │ │ ├── DeltaTest.h │ │ ├── EnumTraits.h │ │ ├── ExceptionTest.h │ │ ├── FixtureTest.h │ │ ├── Makefile.PL │ │ ├── Makefile.bcc32 │ │ ├── Makefile.msvc │ │ ├── Makefile.unix │ │ ├── MessageTest.h │ │ ├── SCons │ │ │ ├── SConstruct │ │ │ ├── include │ │ │ │ └── stack.h │ │ │ ├── src │ │ │ │ └── stack.c │ │ │ └── tests │ │ │ │ └── stack_test.h │ │ ├── SimpleTest.h │ │ ├── TraitsTest.h │ │ ├── aborter.tpl │ │ ├── file_printer.tpl │ │ ├── gui │ │ │ └── GreenYellowRed.h │ │ ├── mock │ │ │ ├── Dice.cpp │ │ │ ├── Dice.h │ │ │ ├── Makefile │ │ │ ├── MockStdlib.h │ │ │ ├── T │ │ │ │ └── stdlib.h │ │ │ ├── TestDice.h │ │ │ ├── mock_stdlib.cpp │ │ │ ├── real_stdlib.cpp │ │ │ └── roll.cpp │ │ ├── msvc │ │ │ ├── CxxTest_1_Run.dsp │ │ │ ├── CxxTest_2_Build.dsp │ │ │ ├── CxxTest_3_Generate.dsp │ │ │ ├── CxxTest_Workspace.dsw │ │ │ ├── FixFiles.bat │ │ │ ├── Makefile │ │ │ └── ReadMe.txt │ │ ├── only.tpl │ │ ├── parts │ │ │ ├── .cvsignore │ │ │ └── Makefile.unix │ │ ├── winddk │ │ │ ├── Makefile │ │ │ ├── Makefile.inc │ │ │ ├── RunTests.tpl │ │ │ └── SOURCES │ │ └── yes_no_runner.cpp │ └── test │ │ ├── .cvsignore │ │ ├── AborterNoThrow.h │ │ ├── BadTest.h │ │ ├── Comments.h │ │ ├── Comments2.h │ │ ├── CppTemplateTest.h │ │ ├── DeepAbort.h │ │ ├── DefaultAbort.h │ │ ├── DefaultTraits.h │ │ ├── DoubleCall.h │ │ ├── DynamicAbort.h │ │ ├── DynamicMax.h │ │ ├── EmptySuite.h │ │ ├── Exceptions.h │ │ ├── Factor.h │ │ ├── ForceNoEh.h │ │ ├── GfSetUpFails.h │ │ ├── GfSetUpThrows.h │ │ ├── GfTearDownFails.h │ │ ├── GfTearDownThrows.h │ │ ├── GlobalFixtures.h │ │ ├── GoodSuite.h │ │ ├── GuiWait.h │ │ ├── HaveEH.tpl │ │ ├── HaveStd.h │ │ ├── HaveStd.tpl │ │ ├── IncludeTest.h │ │ ├── InheritedTest.h │ │ ├── Int64.h │ │ ├── LessThanEquals.h │ │ ├── LongLong.h │ │ ├── LongTraits.h │ │ ├── Makefile │ │ ├── MaxDump.h │ │ ├── MockTest.h │ │ ├── Namespace1.h │ │ ├── Namespace2.h │ │ ├── NoEh.h │ │ ├── Part1.h │ │ ├── Part2.h │ │ ├── Relation.h │ │ ├── SameData.h │ │ ├── SameFiles.h │ │ ├── SameFilesLonger.h │ │ ├── SameZero.h │ │ ├── SetUpWorldError.h │ │ ├── SetUpWorldFails.h │ │ ├── SetUpWorldThrows.h │ │ ├── SimpleInheritedTest.h │ │ ├── SimpleInheritedTest2.h │ │ ├── Something.h │ │ ├── StlTraits.h │ │ ├── TearDownWorldFails.h │ │ ├── TearDownWorldThrows.h │ │ ├── TestNonFinite.h │ │ ├── ThrowNoStd.h │ │ ├── ThrowNoStd.tpl │ │ ├── ThrowsAssert.h │ │ ├── TraitsTest.h │ │ ├── Tsm.h │ │ ├── UserTraits.h │ │ ├── UserTraits.tpl │ │ ├── VoidTraits.h │ │ ├── WideCharTest.h │ │ ├── WorldFixtures.h │ │ ├── __init__.py │ │ ├── abort.out │ │ ├── activate.tpl │ │ ├── anything.cpp │ │ ├── bad.out │ │ ├── comments.out │ │ ├── comments2.out │ │ ├── cxxtest │ │ └── DummyGui.h │ │ ├── default_abort.out │ │ ├── eh_normals.out │ │ ├── eh_plus_abort.out │ │ ├── error.out │ │ ├── factor.out │ │ ├── fake │ │ ├── .cvsignore │ │ ├── X11 │ │ │ ├── Xlib.h │ │ │ └── Xutil.h │ │ ├── commctrl.h │ │ ├── qapplication.h │ │ ├── qglobal.h │ │ ├── qlabel.h │ │ ├── qlayout.h │ │ ├── qmessagebox.h │ │ ├── qpixmap.h │ │ ├── qprogressbar.h │ │ ├── qstatusbar.h │ │ ├── qstring.h │ │ ├── qwidget.h │ │ └── windows.h │ │ ├── gfsuf.out │ │ ├── gfsut.out │ │ ├── gftdf.out │ │ ├── gftdt.out │ │ ├── gfxs.out │ │ ├── good.out │ │ ├── gui.out │ │ ├── gui_paren.out │ │ ├── include.out │ │ ├── infinite.out │ │ ├── inheritance.out │ │ ├── int64.cpp │ │ ├── int64.out │ │ ├── longlong.cpp │ │ ├── longlong.out │ │ ├── main.cpp │ │ ├── max.out │ │ ├── namespace.out │ │ ├── normal.out │ │ ├── normal.xml │ │ ├── paren.out │ │ ├── parts.out │ │ ├── preamble.out │ │ ├── preamble.tpl │ │ ├── runner.out │ │ ├── simple_inheritance.out │ │ ├── simple_inheritance2.out │ │ ├── std.out │ │ ├── stl.out │ │ ├── stpltpl.cpp │ │ ├── suite.out │ │ ├── suite_test.out │ │ ├── suwe.out │ │ ├── suwf.out │ │ ├── suwt.out │ │ ├── tdwf.out │ │ ├── tdwt.out │ │ ├── template.out │ │ ├── test_cxxtest.py │ │ ├── test_doc.py │ │ ├── throw.out │ │ ├── tpltpl.cpp │ │ ├── unit │ │ ├── LinkedList_test.t.h │ │ └── SConstruct │ │ ├── user.out │ │ ├── wchar.cpp │ │ ├── wchar.out │ │ ├── wildcard.out │ │ └── world.out ├── libflatarray │ ├── AUTHORS │ ├── CMakeLists.txt │ ├── CMakeModules │ │ └── FindSilo.cmake │ ├── LICENSE │ ├── README │ ├── examples │ │ ├── CMakeLists.txt │ │ ├── gauss │ │ │ ├── CMakeLists.txt │ │ │ ├── filter_c99.c │ │ │ └── main.cpp │ │ ├── jacobi │ │ │ ├── CMakeLists.txt │ │ │ ├── main.cpp │ │ │ └── update_c99.c │ │ ├── lbm │ │ │ ├── CMakeLists.txt │ │ │ ├── cell.h │ │ │ ├── cudalineupdatefunctorprototype.h │ │ │ ├── flatarray_implementation_0.cu │ │ │ ├── flatarray_implementation_1.cu │ │ │ ├── flatarray_implementation_10.cu │ │ │ ├── flatarray_implementation_2.cu │ │ │ ├── flatarray_implementation_3.cu │ │ │ ├── flatarray_implementation_4.cu │ │ │ ├── flatarray_implementation_5.cu │ │ │ ├── flatarray_implementation_6.cu │ │ │ ├── flatarray_implementation_7.cu │ │ │ ├── flatarray_implementation_8.cu │ │ │ ├── flatarray_implementation_9.cu │ │ │ ├── generator │ │ │ ├── main.cu │ │ │ ├── update_lbm_classic.h │ │ │ ├── update_lbm_cuda_flat_array.h │ │ │ ├── update_lbm_object_oriented.h │ │ │ └── util.h │ │ ├── performance_tests │ │ │ ├── CMakeLists.txt │ │ │ ├── main.cpp │ │ │ └── plot │ │ └── smoothed_particle_hydrodynamics │ │ │ ├── CMakeLists.txt │ │ │ ├── kernels.c │ │ │ ├── kernels.h │ │ │ ├── kernels.hpp │ │ │ └── main.cpp │ ├── include │ │ └── libflatarray │ │ │ ├── aggregated_member_size.hpp │ │ │ ├── aligned_allocator.hpp │ │ │ ├── alignment.hpp │ │ │ ├── api_traits.hpp │ │ │ ├── coord.hpp │ │ │ ├── cuda_allocator.hpp │ │ │ ├── cuda_array.hpp │ │ │ ├── detail │ │ │ ├── construct_functor.hpp │ │ │ ├── copy_functor.hpp │ │ │ ├── destroy_functor.hpp │ │ │ ├── dual_callback_helper.hpp │ │ │ ├── generate_cuda_launch_config.hpp │ │ │ ├── generic_destruct.hpp │ │ │ ├── get_instance_functor.hpp │ │ │ ├── init_kernel.hpp │ │ │ ├── load_functor.hpp │ │ │ ├── macros.hpp │ │ │ ├── offset.hpp │ │ │ ├── preprocessor.hpp │ │ │ ├── save_functor.hpp │ │ │ ├── set_byte_size_functor.hpp │ │ │ ├── set_instance_functor.hpp │ │ │ ├── short_vec_avx512_double_16.hpp │ │ │ ├── short_vec_avx512_double_32.hpp │ │ │ ├── short_vec_avx512_double_8.hpp │ │ │ ├── short_vec_avx512_float_16.hpp │ │ │ ├── short_vec_avx512_float_32.hpp │ │ │ ├── short_vec_avx512_int_16.hpp │ │ │ ├── short_vec_avx512_int_32.hpp │ │ │ ├── short_vec_avx_double_16.hpp │ │ │ ├── short_vec_avx_double_32.hpp │ │ │ ├── short_vec_avx_double_4.hpp │ │ │ ├── short_vec_avx_double_8.hpp │ │ │ ├── short_vec_avx_float_16.hpp │ │ │ ├── short_vec_avx_float_32.hpp │ │ │ ├── short_vec_avx_float_8.hpp │ │ │ ├── short_vec_avx_int_16.hpp │ │ │ ├── short_vec_avx_int_32.hpp │ │ │ ├── short_vec_avx_int_8.hpp │ │ │ ├── short_vec_helpers.hpp │ │ │ ├── short_vec_mic_double_16.hpp │ │ │ ├── short_vec_mic_double_32.hpp │ │ │ ├── short_vec_mic_double_8.hpp │ │ │ ├── short_vec_mic_float_16.hpp │ │ │ ├── short_vec_mic_float_32.hpp │ │ │ ├── short_vec_neon_float_16.hpp │ │ │ ├── short_vec_neon_float_32.hpp │ │ │ ├── short_vec_neon_float_4.hpp │ │ │ ├── short_vec_neon_float_8.hpp │ │ │ ├── short_vec_qpx_double_16.hpp │ │ │ ├── short_vec_qpx_double_32.hpp │ │ │ ├── short_vec_qpx_double_4.hpp │ │ │ ├── short_vec_qpx_double_8.hpp │ │ │ ├── short_vec_scalar_double_1.hpp │ │ │ ├── short_vec_scalar_double_16.hpp │ │ │ ├── short_vec_scalar_double_2.hpp │ │ │ ├── short_vec_scalar_double_32.hpp │ │ │ ├── short_vec_scalar_double_4.hpp │ │ │ ├── short_vec_scalar_double_8.hpp │ │ │ ├── short_vec_scalar_float_1.hpp │ │ │ ├── short_vec_scalar_float_16.hpp │ │ │ ├── short_vec_scalar_float_2.hpp │ │ │ ├── short_vec_scalar_float_32.hpp │ │ │ ├── short_vec_scalar_float_4.hpp │ │ │ ├── short_vec_scalar_float_8.hpp │ │ │ ├── short_vec_scalar_int_1.hpp │ │ │ ├── short_vec_scalar_int_16.hpp │ │ │ ├── short_vec_scalar_int_2.hpp │ │ │ ├── short_vec_scalar_int_32.hpp │ │ │ ├── short_vec_scalar_int_4.hpp │ │ │ ├── short_vec_scalar_int_8.hpp │ │ │ ├── short_vec_sse_double_16.hpp │ │ │ ├── short_vec_sse_double_2.hpp │ │ │ ├── short_vec_sse_double_32.hpp │ │ │ ├── short_vec_sse_double_4.hpp │ │ │ ├── short_vec_sse_double_8.hpp │ │ │ ├── short_vec_sse_float_16.hpp │ │ │ ├── short_vec_sse_float_32.hpp │ │ │ ├── short_vec_sse_float_4.hpp │ │ │ ├── short_vec_sse_float_8.hpp │ │ │ ├── short_vec_sse_int_16.hpp │ │ │ ├── short_vec_sse_int_32.hpp │ │ │ ├── short_vec_sse_int_4.hpp │ │ │ ├── short_vec_sse_int_8.hpp │ │ │ ├── sibling_short_vec_switch.hpp │ │ │ ├── simple_streak.hpp │ │ │ ├── soa_array_member_copy_helper.hpp │ │ │ ├── sqrt_reference.hpp │ │ │ ├── staging_buffer.hpp │ │ │ └── streaming_short_vec_switch.hpp │ │ │ ├── estimate_optimum_short_vec_type.hpp │ │ │ ├── flat_array.hpp │ │ │ ├── ilp_to_arity.hpp │ │ │ ├── loop_peeler.hpp │ │ │ ├── macros.hpp │ │ │ ├── member_ptr_to_offset.hpp │ │ │ ├── number_of_members.hpp │ │ │ ├── preprocessor.hpp │ │ │ ├── short_vec.hpp │ │ │ ├── short_vec_base.hpp │ │ │ ├── soa_accessor.hpp │ │ │ ├── soa_array.hpp │ │ │ ├── soa_grid.hpp │ │ │ ├── soa_vector.hpp │ │ │ ├── streaming_short_vec.hpp │ │ │ └── testbed │ │ │ ├── benchmark.hpp │ │ │ ├── cpu_benchmark.hpp │ │ │ ├── evaluate.hpp │ │ │ └── gpu_benchmark.hpp │ └── test │ │ ├── CMakeLists.txt │ │ ├── aligned_allocator_test.cpp │ │ ├── api_traits_test.cpp │ │ ├── cuda_allocator_test.cu │ │ ├── cuda_array_test.cu │ │ ├── estimate_optimum_short_vec_type_test.cpp │ │ ├── loop_peeler_test.cpp │ │ ├── preprocessor_test.cpp │ │ ├── short_vec_additional_test.cpp │ │ ├── short_vec_test.cpp │ │ ├── soa_array_cuda_test.cu │ │ ├── soa_array_test.cpp │ │ ├── soa_grid_cuda_test.cu │ │ ├── soa_grid_test.cpp │ │ ├── soa_vector_test.cpp │ │ ├── streaming_short_vec_test.cpp │ │ └── test.hpp └── scotch.patch ├── libgeodecomp_icon.png ├── src ├── CMakeLists.txt ├── doxygen.conf ├── examples │ ├── CMakeLists.txt │ ├── adaptivemeshrefinement │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── ants │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── bouncingspheres │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── cars │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── chromatography │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── circle │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── gameoflife │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── gameoflife3d │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── gameoflife_adcirc │ │ ├── CMakeLists.txt │ │ ├── hull.cpp │ │ ├── hull.h │ │ ├── kernel.f │ │ └── main.cpp │ ├── gameoflife_hpx │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── gameoflife_live │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── globalreductions │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── hardwarefluke │ │ ├── CMakeLists.txt │ │ ├── main.cpp │ │ └── pic9_evil_smiley.ppm │ ├── jacobi2d │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── jacobi3d │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── jacobi3dupdateline │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── jacobi3dvectorized │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── latticeboltzmann │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── latticegas │ │ ├── CMakeLists.txt │ │ ├── bigcell.h │ │ ├── cameratester.h │ │ ├── cell.h │ │ ├── flowwidget.h │ │ ├── framegrabber.cpp │ │ ├── framegrabber.h │ │ ├── interactivesimulator.h │ │ ├── main.cu │ │ ├── simparams.cpp │ │ └── simparams.h │ ├── redblackgaussseidel │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── spmvm │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── spmvmvectorized │ │ ├── CMakeLists.txt │ │ └── main.cpp │ ├── voronoi │ │ ├── CMakeLists.txt │ │ └── main.cpp │ └── wing │ │ ├── CMakeLists.txt │ │ └── main.cpp ├── libgeodecomp.h ├── libgeodecomp │ ├── communication │ │ ├── CMakeLists.txt │ │ ├── boostserialization.h │ │ ├── hpxcomponentregsitrationhelper.h │ │ ├── hpxpatchlink.h │ │ ├── hpxreceiver.cpp │ │ ├── hpxreceiver.h │ │ ├── hpxserialization.cpp │ │ ├── hpxserialization.h │ │ ├── hpxserializationwrapper.h │ │ ├── mpilayer.h │ │ ├── patchlink.h │ │ ├── serializationhelpers.h │ │ ├── test │ │ │ ├── parallel_hpx_4 │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── hpxpatchlinktest.h │ │ │ │ └── hpxreceivertest.h │ │ │ ├── parallel_mpi_1 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── mpilayertest.h │ │ │ ├── parallel_mpi_2 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── mpilayertest.h │ │ │ └── parallel_mpi_4 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── patchlinktest.h │ │ ├── typemaps.cpp │ │ └── typemaps.h │ ├── geometry │ │ ├── CMakeLists.txt │ │ ├── adjacency.h │ │ ├── adjacencymanufacturer.h │ │ ├── convexpolytope.h │ │ ├── coord.h │ │ ├── coordbox.h │ │ ├── cudaregion.h │ │ ├── dummyadjacencymanufacturer.h │ │ ├── fixedcoord.h │ │ ├── floatcoord.h │ │ ├── partitionmanager.h │ │ ├── partitions │ │ │ ├── CMakeLists.txt │ │ │ ├── checkerboardingpartition.h │ │ │ ├── distributedptscotchunstructuredpartition.h │ │ │ ├── hilbertpartition.cpp │ │ │ ├── hilbertpartition.h │ │ │ ├── hindexingpartition.cpp │ │ │ ├── hindexingpartition.h │ │ │ ├── partition.h │ │ │ ├── ptscotchpartition.h │ │ │ ├── ptscotchunstructuredpartition.h │ │ │ ├── recursivebisectionpartition.h │ │ │ ├── scotchpartition.h │ │ │ ├── spacefillingcurve.h │ │ │ ├── stripingpartition.h │ │ │ ├── test │ │ │ │ ├── parallel_mpi_1 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── ptscotchpartitiontest.h │ │ │ │ ├── parallel_mpi_2 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── ptscotchpartitiontest.h │ │ │ │ ├── parallel_mpi_4 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── ptscotchpartitiontest.h │ │ │ │ └── unit │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── checkerboardingpartitiontest.h │ │ │ │ │ ├── hilbertpartitiontest.h │ │ │ │ │ ├── hindexingpartitiontest.h │ │ │ │ │ ├── recursivebisectionpartitiontest.h │ │ │ │ │ ├── scotchpartitiontest.h │ │ │ │ │ ├── stripingpartitiontest.h │ │ │ │ │ ├── unstructuredstripingpartitiontest.h │ │ │ │ │ └── zcurvepartitiontest.h │ │ │ ├── unstructuredstripingpartition.h │ │ │ └── zcurvepartition.h │ │ ├── plane.h │ │ ├── region.h │ │ ├── regionbasedadjacency.h │ │ ├── regionstreakiterator.h │ │ ├── stencils.h │ │ ├── streak.h │ │ ├── test │ │ │ ├── parallel_hpx_1 │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── coordboxtest.h │ │ │ │ ├── coordtest.h │ │ │ │ ├── floatcoordtest.h │ │ │ │ ├── regiontest.h │ │ │ │ └── streaktest.h │ │ │ ├── parallel_mpi_4 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── partitionmanagertest.h │ │ │ ├── parallel_mpi_9 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── partitionmanagertest.h │ │ │ └── unit │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── convexpolytopetest.h │ │ │ │ ├── coord2test.h │ │ │ │ ├── coordboxtest.h │ │ │ │ ├── coordtest.h │ │ │ │ ├── cudaregiontest.h │ │ │ │ ├── fixedcoordtest.h │ │ │ │ ├── floatcoordtest.h │ │ │ │ ├── partitionmanagertest.h │ │ │ │ ├── planetest.h │ │ │ │ ├── regionbasedadjacencytest.h │ │ │ │ ├── regionstreakiteratortest.h │ │ │ │ ├── regiontest.h │ │ │ │ ├── stencilstest.h │ │ │ │ ├── streaktest.h │ │ │ │ ├── topologiestest.h │ │ │ │ ├── unstructuredgridmeshertest.h │ │ │ │ └── voronoimeshertest.h │ │ ├── topologies.h │ │ ├── unstructuredgridmesher.h │ │ └── voronoimesher.h │ ├── io │ │ ├── CMakeLists.txt │ │ ├── asciiwriter.h │ │ ├── bovoutput.h │ │ ├── bovwriter.h │ │ ├── clonableinitializer.h │ │ ├── clonableinitializerwrapper.h │ │ ├── collectingwriter.h │ │ ├── imagepainter.h │ │ ├── initializer.h │ │ ├── ioexception.h │ │ ├── logger.h │ │ ├── memorywriter.h │ │ ├── mockinitializer.cpp │ │ ├── mockinitializer.h │ │ ├── mocksteerer.h │ │ ├── mockwriter.h │ │ ├── mpiio.h │ │ ├── mpiioinitializer.h │ │ ├── mpiiowriter.h │ │ ├── parallelmemorywriter.h │ │ ├── parallelmpiiowriter.h │ │ ├── paralleltestwriter.h │ │ ├── parallelwriter.h │ │ ├── plotter.h │ │ ├── ppmwriter.h │ │ ├── qtwidgetwriter.h │ │ ├── remotesteerer.h │ │ ├── remotesteerer │ │ │ ├── CMakeLists.txt │ │ │ ├── action.h │ │ │ ├── commandserver.h │ │ │ ├── getaction.h │ │ │ ├── gethandler.h │ │ │ ├── handler.h │ │ │ ├── interactor.h │ │ │ ├── passthroughaction.h │ │ │ ├── pipe.h │ │ │ ├── setaction.h │ │ │ ├── test │ │ │ │ ├── parallel_mpi_1 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── actiontest.h │ │ │ │ │ ├── commandservertest.h │ │ │ │ │ └── handlertest.h │ │ │ │ ├── parallel_mpi_2 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── interactortest.h │ │ │ │ ├── parallel_mpi_4 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── pipetest.h │ │ │ │ └── unit │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── interactortest.h │ │ │ └── waitaction.h │ │ ├── sellsortingwriter.h │ │ ├── serialbovwriter.h │ │ ├── silowriter.h │ │ ├── simplecellplotter.h │ │ ├── simpleinitializer.h │ │ ├── steerer.h │ │ ├── test │ │ │ ├── parallel_mpi_1 │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── asciiwritertest.h │ │ │ │ ├── ioexceptiontest.h │ │ │ │ ├── mpiiotest.h │ │ │ │ ├── mpiiowritertest.h │ │ │ │ ├── plottertest.h │ │ │ │ ├── ppmwritertest.h │ │ │ │ ├── qtwidgetwritertest.h │ │ │ │ ├── testinitializertest.h │ │ │ │ ├── teststeerertest.h │ │ │ │ ├── tracingwritertest.h │ │ │ │ └── writertest.h │ │ │ ├── parallel_mpi_2 │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── bovwritertest.h │ │ │ │ ├── collectingwritertest.h │ │ │ │ ├── mpiioinitializertest.h │ │ │ │ ├── mpiiotest.h │ │ │ │ ├── parallelmemorywritertest.h │ │ │ │ ├── parallelmpiiowritertest.h │ │ │ │ ├── remotesteerertest.h │ │ │ │ └── tracingwritertest.h │ │ │ └── unit │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── clonableinitializerwrappertest.h │ │ │ │ ├── initializertest.h │ │ │ │ ├── serialbovwritertest.h │ │ │ │ ├── silowritertest.h │ │ │ │ ├── steerertest.h │ │ │ │ ├── timestringconversiontest.h │ │ │ │ ├── unstructuredtestinitializertest.h │ │ │ │ └── visitwritertest.h │ │ ├── testinitializer.h │ │ ├── teststeerer.h │ │ ├── testwriter.h │ │ ├── timestringconversion.h │ │ ├── tracingwriter.h │ │ ├── unstructuredtestinitializer.h │ │ ├── varstepinitializerproxy.h │ │ ├── visitwriter.h │ │ └── writer.h │ ├── loadbalancer │ │ ├── CMakeLists.txt │ │ ├── biasbalancer.cpp │ │ ├── biasbalancer.h │ │ ├── loadbalancer.cpp │ │ ├── loadbalancer.h │ │ ├── mockbalancer.cpp │ │ ├── mockbalancer.h │ │ ├── noopbalancer.h │ │ ├── oozebalancer.cpp │ │ ├── oozebalancer.h │ │ ├── randombalancer.cpp │ │ ├── randombalancer.h │ │ ├── test │ │ │ ├── parallel_hpx_1 │ │ │ │ └── oozebalancertest.h │ │ │ └── unit │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── biasbalancertest.h │ │ │ │ ├── loadbalancertest.h │ │ │ │ ├── noopbalancertest.h │ │ │ │ ├── oozebalancertest.h │ │ │ │ ├── randombalancertest.h │ │ │ │ └── tracingbalancertest.h │ │ └── tracingbalancer.h │ ├── misc │ │ ├── CMakeLists.txt │ │ ├── apitraits.h │ │ ├── cacheblockingsimulationfactory.h │ │ ├── chronometer.h │ │ ├── clonable.h │ │ ├── color.cpp │ │ ├── color.h │ │ ├── cudaboostworkaround.h │ │ ├── cudasimulationfactory.h │ │ ├── cudautil.h │ │ ├── fpscounter.h │ │ ├── likely.h │ │ ├── limits.h │ │ ├── math.h │ │ ├── nonpodtestcell.h │ │ ├── optimizer.h │ │ ├── palette.h │ │ ├── patternoptimizer.cpp │ │ ├── patternoptimizer.h │ │ ├── quickpalette.h │ │ ├── random.cpp │ │ ├── random.h │ │ ├── scopedtimer.h │ │ ├── serialsimulationfactory.h │ │ ├── sharedptr.h │ │ ├── simfabtestmodel.h │ │ ├── simplexoptimizer.cpp │ │ ├── simplexoptimizer.h │ │ ├── simulationfactory.h │ │ ├── simulationparameters.h │ │ ├── stdcontaineroverloads.h │ │ ├── stringops.h │ │ ├── stringvec.h │ │ ├── tempfile.cpp │ │ ├── tempfile.h │ │ ├── test │ │ │ ├── parallel_mpi_1 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── apitraitstest.h │ │ │ ├── parallel_openmp_1 │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── simulationfactorytest.h │ │ │ └── unit │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── apitraitstest.h │ │ │ │ ├── chronometertest.h │ │ │ │ ├── clonabletest.h │ │ │ │ ├── cudautiltest.h │ │ │ │ ├── limitstest.h │ │ │ │ ├── nonpodtestcelltest.h │ │ │ │ ├── optimizertest.h │ │ │ │ ├── optimizertestfunctions.h │ │ │ │ ├── palettetest.h │ │ │ │ ├── quickpalettetest.h │ │ │ │ ├── randomtest.h │ │ │ │ ├── scopedtimertest.h │ │ │ │ ├── simulationfactorywithcudatest.h │ │ │ │ ├── simulationfactorywithoutcudatest.h │ │ │ │ ├── simulationparameterstest.h │ │ │ │ ├── stdcontaineroverloadstest.h │ │ │ │ ├── stringopstest.h │ │ │ │ ├── tempfiletest.h │ │ │ │ ├── testcelltest.h │ │ │ │ ├── testhelpertest.h │ │ │ │ └── unstructuredtestcelltest.h │ │ ├── testcell.h │ │ ├── testhelper.h │ │ └── unstructuredtestcell.h │ ├── parallelization │ │ ├── CMakeLists.txt │ │ ├── autotuningsimulator.h │ │ ├── cacheblockingsimulator.h │ │ ├── cudasimulator.h │ │ ├── distributedsimulator.h │ │ ├── hierarchicalsimulator.h │ │ ├── hiparsimulator.h │ │ ├── hpxdataflowsimulator.h │ │ ├── hpxsimulator.cpp │ │ ├── hpxsimulator.h │ │ ├── mocksimulator.cpp │ │ ├── mocksimulator.h │ │ ├── monolithicsimulator.h │ │ ├── nesting │ │ │ ├── CMakeLists.txt │ │ │ ├── commonstepper.h │ │ │ ├── cudastepper.h │ │ │ ├── eventpoint.h │ │ │ ├── hpxstepper.h │ │ │ ├── hpxupdategroup.h │ │ │ ├── mpiupdategroup.h │ │ │ ├── multicorestepper.h │ │ │ ├── offsethelper.h │ │ │ ├── parallelwriteradapter.h │ │ │ ├── steereradapter.h │ │ │ ├── stepper.h │ │ │ ├── test │ │ │ │ ├── parallel_hpx_4 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── hpxupdategrouptest.h │ │ │ │ ├── parallel_mpi_1 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── cudasteppertest.h │ │ │ │ │ ├── mpiupdategrouptest.h │ │ │ │ │ ├── multicoresteppertest.h │ │ │ │ │ ├── vanillastepperbasictest.h │ │ │ │ │ └── vanillastepperregiontest.h │ │ │ │ ├── parallel_mpi_14 │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── parallel_mpi_4 │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── mpiupdategrouptest.h │ │ │ │ │ └── vanillasteppertest.h │ │ │ │ └── unit │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── offsethelpertest.h │ │ │ ├── updategroup.h │ │ │ └── vanillastepper.h │ │ ├── openmpsimulator.h │ │ ├── serialsimulator.h │ │ ├── simulator.h │ │ ├── stripingsimulator.h │ │ └── test │ │ │ ├── parallel_hpx_4_1 │ │ │ ├── CMakeLists.txt │ │ │ ├── hpxdataflowsimulatortest.h │ │ │ ├── hpxsimulator2test.h │ │ │ ├── hpxsimulator3test.h │ │ │ ├── hpxsimulator4test.h │ │ │ ├── hpxsimulator5test.h │ │ │ ├── hpxsimulator6test.h │ │ │ └── hpxsimulatortest.h │ │ │ ├── parallel_mpi_1 │ │ │ ├── CMakeLists.txt │ │ │ ├── hiparsimulatortest.h │ │ │ └── stripingsimulatortest.h │ │ │ ├── parallel_mpi_4 │ │ │ ├── CMakeLists.txt │ │ │ ├── hiparsimulator2test.h │ │ │ ├── hiparsimulatortest.h │ │ │ └── stripingsimulatortest.h │ │ │ ├── parallel_openmp_1 │ │ │ ├── CMakeLists.txt │ │ │ └── cacheblockingsimulatortest.h │ │ │ ├── parallel_openmp_4 │ │ │ ├── CMakeLists.txt │ │ │ └── openmpsimulatortest.h │ │ │ └── unit │ │ │ ├── CMakeLists.txt │ │ │ ├── autotuningsimulatorwithcudatest.h │ │ │ ├── autotuningsimulatorwithoutcudatest.h │ │ │ ├── cudasimulatortest.h │ │ │ ├── serialsimulatortest.h │ │ │ └── simulatortest.h │ └── storage │ │ ├── CMakeLists.txt │ │ ├── arrayfilter.h │ │ ├── boxcell.h │ │ ├── collectioninterface.h │ │ ├── containercell.h │ │ ├── coordmap.h │ │ ├── cudagrid.h │ │ ├── cudagridtypeselector.h │ │ ├── cudasoagrid.h │ │ ├── cudaupdatefunctor.h │ │ ├── dataaccessor.h │ │ ├── defaultarrayfilter.h │ │ ├── defaultcudaarrayfilter.h │ │ ├── defaultcudafilter.h │ │ ├── defaultfilter.h │ │ ├── defaultfilterfactory.h │ │ ├── displacedgrid.h │ │ ├── filter.h │ │ ├── filterbase.h │ │ ├── fixedarray.h │ │ ├── fixedneighborhood.h │ │ ├── fixedneighborhoodupdatefunctor.h │ │ ├── grid.h │ │ ├── gridbase.h │ │ ├── gridtypeselector.h │ │ ├── image.cpp │ │ ├── image.h │ │ ├── linepointerassembly.h │ │ ├── linepointerneighborhood.h │ │ ├── linepointerupdatefunctor.h │ │ ├── memberfilter.h │ │ ├── memorylocation.h │ │ ├── meshlessadapter.h │ │ ├── mockpatchaccepter.h │ │ ├── multicontainercell.h │ │ ├── neighborhoodadapter.h │ │ ├── neighborhooditerator.h │ │ ├── passthroughcontainer.h │ │ ├── patchaccepter.h │ │ ├── patchbuffer.h │ │ ├── patchbufferfixed.h │ │ ├── patchprovider.h │ │ ├── pointerneighborhood.h │ │ ├── proxygrid.h │ │ ├── reorderingunstructuredgrid.h │ │ ├── selector.h │ │ ├── sellcsigmasparsematrixcontainer.h │ │ ├── serializationbuffer.h │ │ ├── simplearrayfilter.h │ │ ├── simplefilter.h │ │ ├── soagrid.h │ │ ├── test │ │ ├── parallel_mpi_2 │ │ │ ├── CMakeLists.txt │ │ │ ├── memberfiltertest.h │ │ │ └── selectortest.h │ │ ├── parallel_openmp_4 │ │ │ ├── CMakeLists.txt │ │ │ └── unstructuredupdatefunctortest.h │ │ └── unit │ │ │ ├── CMakeLists.txt │ │ │ ├── boxcelltest.h │ │ │ ├── collectioninterfacetest.h │ │ │ ├── containercelltest.h │ │ │ ├── coordmaptest.h │ │ │ ├── cudagridtest.h │ │ │ ├── cudasoagridtest.h │ │ │ ├── defaultarrayfiltertest.h │ │ │ ├── defaultcudaarrayfiltertest.h │ │ │ ├── defaultcudafiltertest.h │ │ │ ├── defaultfiltertest.h │ │ │ ├── displacedgridtest.h │ │ │ ├── fixedarraytest.h │ │ │ ├── fixedneighborhoodupdatefunctortest.h │ │ │ ├── gridbasetest.h │ │ │ ├── gridtest.h │ │ │ ├── imagetest.h │ │ │ ├── linepointerassemblytest.h │ │ │ ├── linepointerneighborhoodtest.h │ │ │ ├── linepointerupdatefunctortest.h │ │ │ ├── memberfiltercudatest.h │ │ │ ├── memberfiltertest.h │ │ │ ├── meshlessadaptertest.h │ │ │ ├── multicontainercelltest.h │ │ │ ├── neighborhooditeratortest.h │ │ │ ├── passthroughcontainertest.h │ │ │ ├── patchbufferfixedtest.h │ │ │ ├── patchbuffertest.h │ │ │ ├── pointerneighborhoodtest.h │ │ │ ├── proxygridtest.h │ │ │ ├── reorderingunstructuredgridtest.h │ │ │ ├── selectorcudatest.h │ │ │ ├── selectortest.h │ │ │ ├── sellcsigmasparsematrixcontainertest.h │ │ │ ├── serializationbuffertest.h │ │ │ ├── soagridtest.h │ │ │ ├── unstructuredgridtest.h │ │ │ ├── unstructuredneighborhoodtest.h │ │ │ ├── unstructuredsoagridtest.h │ │ │ ├── unstructuredupdatefunctortest.h │ │ │ ├── updatefunctortest.h │ │ │ └── vanillaupdatefunctortest.h │ │ ├── unstructuredgrid.h │ │ ├── unstructuredlooppeeler.h │ │ ├── unstructuredneighborhood.h │ │ ├── unstructuredsoagrid.h │ │ ├── unstructuredsoaneighborhood.h │ │ ├── unstructuredsoaneighborhoodnew.h │ │ ├── unstructuredupdatefunctor.h │ │ ├── updatefunctor.h │ │ ├── updatefunctormacros.h │ │ ├── updatefunctormacrosmsvc.h │ │ ├── updatefunctortestbase.h │ │ └── vanillaupdatefunctor.h └── testbed │ ├── CMakeLists.txt │ ├── hpxperformancetests │ ├── CMakeLists.txt │ └── main.cpp │ ├── jacobituning │ ├── CMakeLists.txt │ └── main.cu │ ├── parallelperformancetests │ ├── CMakeLists.txt │ ├── main.cpp │ └── mysimplecell.h │ ├── performancetests │ ├── CMakeLists.txt │ ├── cell.h │ ├── cpubenchmark.h │ ├── cudatests.cu │ └── main.cpp │ ├── reversetimemigration │ ├── CMakeLists.txt │ ├── config.h │ └── main.cpp │ └── spmvmtests │ ├── CMakeLists.txt │ ├── fetch_matrices.sh │ ├── main.cpp │ ├── mmio.cpp │ └── mmio.h └── tools ├── buildsystem ├── rakefile.rb ├── src │ ├── CMakeLists.txt │ ├── configure.example │ ├── doxygen.conf │ ├── rakefile.rb │ └── util.cmake └── test │ ├── acceptance │ └── raketest.rb │ ├── common.rb │ ├── crossplatform │ └── raketest.rb │ ├── fixtures │ ├── lib │ │ ├── cxxtest │ │ └── cxxtest-3.10.1-r1 │ │ │ ├── COPYING │ │ │ ├── README │ │ │ ├── TODO │ │ │ ├── Versions │ │ │ ├── cxxtest.spec │ │ │ ├── cxxtest │ │ │ ├── Descriptions.cpp │ │ │ ├── Descriptions.h │ │ │ ├── DummyDescriptions.cpp │ │ │ ├── DummyDescriptions.h │ │ │ ├── ErrorFormatter.h │ │ │ ├── ErrorPrinter.h │ │ │ ├── Flags.h │ │ │ ├── GlobalFixture.cpp │ │ │ ├── GlobalFixture.h │ │ │ ├── Gui.h │ │ │ ├── LinkedList.cpp │ │ │ ├── LinkedList.h │ │ │ ├── Mock.h │ │ │ ├── ParenPrinter.h │ │ │ ├── QtGui.h │ │ │ ├── RealDescriptions.cpp │ │ │ ├── RealDescriptions.h │ │ │ ├── Root.cpp │ │ │ ├── SelfTest.h │ │ │ ├── StdHeaders.h │ │ │ ├── StdValueTraits.h │ │ │ ├── StdioFilePrinter.h │ │ │ ├── StdioPrinter.h │ │ │ ├── TeeListener.h │ │ │ ├── TestListener.h │ │ │ ├── TestRunner.h │ │ │ ├── TestSuite.cpp │ │ │ ├── TestSuite.h │ │ │ ├── TestTracker.cpp │ │ │ ├── TestTracker.h │ │ │ ├── ValueTraits.cpp │ │ │ ├── ValueTraits.h │ │ │ ├── Win32Gui.h │ │ │ ├── X11Gui.h │ │ │ └── YesNoRunner.h │ │ │ ├── cxxtestgen.pl │ │ │ ├── cxxtestgen.py │ │ │ ├── docs │ │ │ ├── convert.pl │ │ │ ├── guide.html │ │ │ ├── index.html │ │ │ ├── qt.png │ │ │ ├── qt2.png │ │ │ ├── win32.png │ │ │ └── x11.png │ │ │ └── sample │ │ │ ├── Construct │ │ │ ├── CreatedTest.h │ │ │ ├── DeltaTest.h │ │ │ ├── EnumTraits.h │ │ │ ├── ExceptionTest.h │ │ │ ├── FixtureTest.h │ │ │ ├── Makefile.PL │ │ │ ├── Makefile.bcc32 │ │ │ ├── Makefile.msvc │ │ │ ├── Makefile.unix │ │ │ ├── MessageTest.h │ │ │ ├── SimpleTest.h │ │ │ ├── TraitsTest.h │ │ │ ├── aborter.tpl │ │ │ ├── file_printer.tpl │ │ │ ├── gui │ │ │ └── GreenYellowRed.h │ │ │ ├── mock │ │ │ ├── Dice.cpp │ │ │ ├── Dice.h │ │ │ ├── Makefile │ │ │ ├── MockStdlib.h │ │ │ ├── T │ │ │ │ └── stdlib.h │ │ │ ├── TestDice.h │ │ │ ├── mock_stdlib.cpp │ │ │ ├── real_stdlib.cpp │ │ │ └── roll.cpp │ │ │ ├── msvc │ │ │ ├── CxxTest_1_Run.dsp │ │ │ ├── CxxTest_2_Build.dsp │ │ │ ├── CxxTest_3_Generate.dsp │ │ │ ├── CxxTest_Workspace.dsw │ │ │ ├── FixFiles.bat │ │ │ ├── Makefile │ │ │ └── ReadMe.txt │ │ │ ├── only.tpl │ │ │ ├── parts │ │ │ └── Makefile.unix │ │ │ ├── winddk │ │ │ ├── Makefile │ │ │ ├── Makefile.inc │ │ │ ├── RunTests.tpl │ │ │ └── SOURCES │ │ │ └── yes_no_runner.cpp │ ├── src │ │ ├── CMakeLists.txt │ │ ├── mpilayer │ │ │ └── CMakeLists.txt │ │ ├── testexe │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ └── testlib │ │ │ ├── CMakeLists.txt │ │ │ ├── echo.cpp │ │ │ ├── echo.h │ │ │ ├── test │ │ │ └── unit │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── echotest.h │ │ │ └── testlib.h │ ├── src_additional_class │ │ └── testlib │ │ │ ├── incrementer.cpp │ │ │ └── incrementer.h │ ├── src_additional_exe │ │ ├── CMakeLists.txt │ │ └── powermonger │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ ├── src_additional_files │ │ ├── blah │ │ │ └── foobar │ │ └── foobar │ ├── src_additional_header-only_class │ │ └── testlib │ │ │ └── greeter.h │ ├── src_additional_library │ │ ├── CMakeLists.txt │ │ └── multiplier │ │ │ ├── CMakeLists.txt │ │ │ ├── multiplier.cpp │ │ │ └── multiplier.h │ ├── src_additional_library_tests │ │ └── multiplier │ │ │ ├── CMakeLists.txt │ │ │ └── test │ │ │ └── unit │ │ │ ├── CMakeLists.txt │ │ │ └── multipliertest.h │ ├── src_crossplatform │ │ ├── CMakeLists.txt │ │ ├── testexe │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ └── testlib │ │ │ ├── CMakeLists.txt │ │ │ ├── echo.cpp │ │ │ ├── echo.h │ │ │ └── testlib.h │ ├── src_faulty_test │ │ └── testlib │ │ │ └── test │ │ │ └── unit │ │ │ └── echotest.h │ ├── src_mpi_tests │ │ └── testlib │ │ │ ├── CMakeLists.txt │ │ │ └── test │ │ │ └── parallel_mpi_9 │ │ │ ├── CMakeLists.txt │ │ │ ├── mpiglobalfixturetest.h │ │ │ └── ringtest.h │ ├── src_patched_class │ │ └── testlib │ │ │ └── echo.cpp │ ├── src_patched_header │ │ └── testlib │ │ │ └── echo.h │ └── tools │ │ └── typemapgenerator │ └── windows │ └── raketest.rb ├── codequality └── custom_checks ├── mpiexec_sde_wrapper └── typemapgenerator ├── README ├── basicgenerator.rb ├── boostgenerator.rb ├── datatype.rb ├── generate.rb ├── hpxgenerator.rb ├── mpigenerator.rb ├── mpiparser.rb ├── rakefile.rb ├── sample ├── compile.sh ├── doxygen.conf └── src │ ├── Makefile │ ├── car.cpp │ ├── car.h │ ├── carcontainer.h │ ├── engine.h │ ├── main.cpp │ ├── mech.cpp │ ├── mech.h │ ├── rim.h │ ├── tire.h │ └── wheel.h ├── template_generatesinglemap.cpp ├── template_serialization.cpp ├── template_serialization.h ├── template_typemaps.cpp ├── template_typemaps.h ├── test ├── fixtures │ ├── doc │ │ ├── html │ │ │ ├── annotated.html │ │ │ ├── annotated.js │ │ │ ├── arrowdown.png │ │ │ ├── arrowright.png │ │ │ ├── bc_s.png │ │ │ ├── bdwn.png │ │ │ ├── bmw_8h.html │ │ │ ├── bmw_8h_source.html │ │ │ ├── car_8cpp.html │ │ │ ├── car_8h.html │ │ │ ├── car_8h_source.html │ │ │ ├── carcontainer_8h.html │ │ │ ├── carcontainer_8h_source.html │ │ │ ├── classBMW-members.html │ │ │ ├── classBMW.html │ │ │ ├── classBMW.js │ │ │ ├── classBMW.png │ │ │ ├── classCar-members.html │ │ │ ├── classCar.html │ │ │ ├── classCar.js │ │ │ ├── classCar.png │ │ │ ├── classCarContainer-members.html │ │ │ ├── classCarContainer.html │ │ │ ├── classCarContainer.js │ │ │ ├── classCoord.html │ │ │ ├── classCoordContainer-members.html │ │ │ ├── classCoordContainer.html │ │ │ ├── classCoordContainer.js │ │ │ ├── classCoordContainerContainer-members.html │ │ │ ├── classCoordContainerContainer.html │ │ │ ├── classCoordContainerContainer.js │ │ │ ├── classCoordPair-members.html │ │ │ ├── classCoordPair.html │ │ │ ├── classCoordPair.js │ │ │ ├── classCoord_3_011_01_4-members.html │ │ │ ├── classCoord_3_011_01_4.html │ │ │ ├── classCoord_3_011_01_4.js │ │ │ ├── classCoord_3_012_01_4-members.html │ │ │ ├── classCoord_3_012_01_4.html │ │ │ ├── classCoord_3_012_01_4.js │ │ │ ├── classCoord_3_013_01_4-members.html │ │ │ ├── classCoord_3_013_01_4.html │ │ │ ├── classCoord_3_013_01_4.js │ │ │ ├── classDummy-members.html │ │ │ ├── classDummy.html │ │ │ ├── classDummy.js │ │ │ ├── classEngine-members.html │ │ │ ├── classEngine.html │ │ │ ├── classEngine.js │ │ │ ├── classFloatCoord-members.html │ │ │ ├── classFloatCoord.html │ │ │ ├── classFloatCoord.js │ │ │ ├── classFloatCoordTypemapsHelper-members.html │ │ │ ├── classFloatCoordTypemapsHelper.html │ │ │ ├── classFloatCoordTypemapsHelper.js │ │ │ ├── classLabel-members.html │ │ │ ├── classLabel.html │ │ │ ├── classLabel.js │ │ │ ├── classLuxury-members.html │ │ │ ├── classLuxury.html │ │ │ ├── classLuxury.js │ │ │ ├── classLuxury.png │ │ │ ├── classMech-members.html │ │ │ ├── classMech.html │ │ │ ├── classMech.js │ │ │ ├── classRim-members.html │ │ │ ├── classRim.html │ │ │ ├── classRim.js │ │ │ ├── classTire-members.html │ │ │ ├── classTire.html │ │ │ ├── classTire.js │ │ │ ├── classWheel-members.html │ │ │ ├── classWheel.html │ │ │ ├── classWheel.js │ │ │ ├── classes.html │ │ │ ├── closed.png │ │ │ ├── coord_8h.html │ │ │ ├── coord_8h_source.html │ │ │ ├── coordcontainer_8h.html │ │ │ ├── coordcontainer_8h_source.html │ │ │ ├── coordcontainercontainer_8h.html │ │ │ ├── coordcontainercontainer_8h.js │ │ │ ├── coordcontainercontainer_8h_source.html │ │ │ ├── dir_68267d1309a1af8e8297ef4c3efbcdba.html │ │ │ ├── dir_68267d1309a1af8e8297ef4c3efbcdba.js │ │ │ ├── doc.png │ │ │ ├── doxygen.css │ │ │ ├── doxygen.png │ │ │ ├── dynsections.js │ │ │ ├── engine_8h.html │ │ │ ├── engine_8h_source.html │ │ │ ├── files.html │ │ │ ├── files.js │ │ │ ├── floatcoordbase_8h.html │ │ │ ├── floatcoordbase_8h_source.html │ │ │ ├── folderclosed.png │ │ │ ├── folderopen.png │ │ │ ├── functions.html │ │ │ ├── functions_enum.html │ │ │ ├── functions_eval.html │ │ │ ├── functions_func.html │ │ │ ├── functions_rela.html │ │ │ ├── functions_vars.html │ │ │ ├── globals.html │ │ │ ├── globals_defs.html │ │ │ ├── globals_func.html │ │ │ ├── hierarchy.html │ │ │ ├── hierarchy.js │ │ │ ├── index.html │ │ │ ├── jquery.js │ │ │ ├── label_8h.html │ │ │ ├── label_8h_source.html │ │ │ ├── luxury_8h.html │ │ │ ├── luxury_8h_source.html │ │ │ ├── main_8cpp.html │ │ │ ├── main_8cpp.js │ │ │ ├── mech_8cpp.html │ │ │ ├── mech_8h.html │ │ │ ├── mech_8h_source.html │ │ │ ├── nav_f.png │ │ │ ├── nav_g.png │ │ │ ├── nav_h.png │ │ │ ├── navtree.css │ │ │ ├── navtree.js │ │ │ ├── navtreedata.js │ │ │ ├── navtreeindex0.js │ │ │ ├── open.png │ │ │ ├── pair_8h.html │ │ │ ├── pair_8h_source.html │ │ │ ├── resize.js │ │ │ ├── rim_8h.html │ │ │ ├── rim_8h_source.html │ │ │ ├── splitbar.png │ │ │ ├── sync_off.png │ │ │ ├── sync_on.png │ │ │ ├── tab_a.png │ │ │ ├── tab_b.png │ │ │ ├── tab_h.png │ │ │ ├── tab_s.png │ │ │ ├── tabs.css │ │ │ ├── tire_8h.html │ │ │ ├── tire_8h_source.html │ │ │ ├── wheel_8h.html │ │ │ └── wheel_8h_source.html │ │ └── xml │ │ │ ├── bmw_8h.xml │ │ │ ├── car_8cpp.xml │ │ │ ├── car_8h.xml │ │ │ ├── carcontainer_8h.xml │ │ │ ├── classBMW.xml │ │ │ ├── classCar.xml │ │ │ ├── classCarContainer.xml │ │ │ ├── classCoord.xml │ │ │ ├── classCoordContainer.xml │ │ │ ├── classCoordContainerContainer.xml │ │ │ ├── classCoordPair.xml │ │ │ ├── classCoord_3_011_01_4.xml │ │ │ ├── classCoord_3_012_01_4.xml │ │ │ ├── classCoord_3_013_01_4.xml │ │ │ ├── classDummy.xml │ │ │ ├── classEngine.xml │ │ │ ├── classFloatCoord.xml │ │ │ ├── classFloatCoordTypemapsHelper.xml │ │ │ ├── classLabel.xml │ │ │ ├── classLuxury.xml │ │ │ ├── classMech.xml │ │ │ ├── classRim.xml │ │ │ ├── classTire.xml │ │ │ ├── classWheel.xml │ │ │ ├── combine.xslt │ │ │ ├── compound.xsd │ │ │ ├── coord_8h.xml │ │ │ ├── coordcontainer_8h.xml │ │ │ ├── coordcontainercontainer_8h.xml │ │ │ ├── dir_68267d1309a1af8e8297ef4c3efbcdba.xml │ │ │ ├── engine_8h.xml │ │ │ ├── floatcoordbase_8h.xml │ │ │ ├── index.xml │ │ │ ├── index.xsd │ │ │ ├── label_8h.xml │ │ │ ├── luxury_8h.xml │ │ │ ├── main_8cpp.xml │ │ │ ├── mech_8cpp.xml │ │ │ ├── mech_8h.xml │ │ │ ├── pair_8h.xml │ │ │ ├── rim_8h.xml │ │ │ ├── tire_8h.xml │ │ │ └── wheel_8h.xml │ ├── doxygen.conf │ ├── references │ │ ├── boostserialize.h │ │ ├── generatemapengine.cpp │ │ ├── hpxserialize.h │ │ ├── typemaps.cpp │ │ └── typemaps.h │ └── src │ │ ├── Makefile │ │ ├── bmw.h │ │ ├── car.cpp │ │ ├── car.h │ │ ├── carcontainer.h │ │ ├── coord.h │ │ ├── coordcontainer.h │ │ ├── coordcontainercontainer.h │ │ ├── engine.h │ │ ├── floatcoordbase.h │ │ ├── label.h │ │ ├── luxury.h │ │ ├── main.cpp │ │ ├── mech.cpp │ │ ├── mech.h │ │ ├── pair.h │ │ ├── rim.h │ │ ├── tire.h │ │ └── wheel.h └── unit │ ├── boostgeneratortest.rb │ ├── datatypetest.rb │ ├── hpxgeneratortest.rb │ ├── mpigeneratortest.rb │ ├── mpiparsertest.rb │ └── typemapgeneratortest.rb └── typemapgenerator.rb /.appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | 3 | shallow_clone: true 4 | 5 | matrix: 6 | fast_finish: true 7 | 8 | environment: 9 | matrix: 10 | - GENERATOR: "Visual Studio 14" 11 | CONFIG: Debug 12 | 13 | - GENERATOR: "Visual Studio 14" 14 | CONFIG: Release 15 | 16 | os: Visual Studio 2015 17 | 18 | build_script: 19 | - cmake "-G%GENERATOR%" -H. -B_builds 20 | - cmake --build _builds --config "%CONFIG%" 21 | - cmake --build _builds --config "%CONFIG%" --target tests 22 | 23 | -------------------------------------------------------------------------------- /CMakeModules/testguard.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // include MPI header first to skirt troubles with Intel MPI and standard C library 4 | #ifdef LIBGEODECOMP_WITH_MPI 5 | #include 6 | #endif 7 | 8 | // nvcc complains about some type traits if we don't define this macro 9 | #ifdef __CUDACC__ 10 | #define CXXTEST_NO_COPY_CONST 11 | #endif 12 | -------------------------------------------------------------------------------- /doc/misc/opencl/logo_i3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/doc/misc/opencl/logo_i3.png -------------------------------------------------------------------------------- /doc/misc/opencl/logo_i3.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/doc/misc/opencl/logo_i3.xcf -------------------------------------------------------------------------------- /lib/cxxtest/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | *.pyc 3 | *.bak 4 | .* 5 | guide.epub 6 | guide.pdf 7 | guide.html 8 | parsetab.py 9 | TEST-cxxtest.xml 10 | -------------------------------------------------------------------------------- /lib/cxxtest/bin/cxxtestgen: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | # 3 | # The CxxTest driver script, which uses the cxxtest Python package. 4 | # 5 | 6 | import sys 7 | import os 8 | from os.path import realpath, dirname 9 | if sys.version_info < (3,0): 10 | sys.path.insert(0, dirname(dirname(realpath(__file__)))+os.sep+'python') 11 | else: 12 | sys.path.insert(0, dirname(dirname(realpath(__file__)))+os.sep+'python'+os.sep+'python3') 13 | sys.path.append(".") 14 | 15 | import cxxtest 16 | 17 | cxxtest.main(sys.argv) 18 | 19 | -------------------------------------------------------------------------------- /lib/cxxtest/bin/cxxtestgen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem Just run the python script 3 | python %0 %* 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/AUTHORS: -------------------------------------------------------------------------------- 1 | This file is meant to be a full credit of the people who helped make the CxxTest 2 | builder what it is today. 3 | 4 | 5 | Current maintainer: 6 | Gašper Ažman (gasper dot azman at gmail.com) 7 | 8 | 9 | Original author: 10 | Gašper Ažman 11 | 12 | Additional patches and tests: 13 | Diego Nieto Cid 14 | Edmundo López Bobeda 15 | John Darby Mitchell 16 | Pavol Juhas 17 | 18 | Other helpful suggestions: 19 | John Darby Mitchell 20 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/default_env/README: -------------------------------------------------------------------------------- 1 | Tests if the 'default environment' defaults are sane and work out of the box. 2 | by: Gašper Ažman 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/default_env/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment( 2 | toolpath=['../../'], 3 | tools=['default','cxxtest'] 4 | ) 5 | 6 | env['CXXTEST_SKIP_ERRORS'] = True 7 | env.CxxTest(['src/ThrowNoStd.h']) 8 | env.CxxTest(['src/AborterNoThrow.h']) 9 | env.CxxTest(['src/Comments.h']) 10 | 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/README: -------------------------------------------------------------------------------- 1 | Tests if cxxtest behaves correctly if no sources are given. 2 | by: Gašper Ažman 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | env.CxxTest('test_bar') 4 | env.CxxTest('test_foo') 5 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'cxxtest' : '../../../../'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/requirement.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file requirement.cpp 3 | * Implementation of the requirement function. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-08-29 10:09:42 AM 8 | */ 9 | 10 | bool call_a_requirement() { 11 | return true; 12 | } 13 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/test_bar.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_BAR_T_H 2 | #define TEST_BAR_T_H 3 | /** 4 | * @file test_bar.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:04:06 AM 10 | */ 11 | 12 | #include 13 | #include "requirement.hpp" 14 | 15 | class TestBar : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/empty_source_list/test_foo.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_FOO_T_H 2 | #define TEST_FOO_T_H 3 | /** 4 | * @file test_foo.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:02:06 AM 10 | */ 11 | 12 | #include "requirement.hpp" 13 | #include 14 | 15 | class TestFoo : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/expanding_#/README: -------------------------------------------------------------------------------- 1 | Tests whether expanding '#' to the top-level directory works as intended in 2 | scons. 3 | by: Gašper Ažman 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/expanding_#/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment( 2 | toolpath=['../../'], 3 | tools=['default','cxxtest'], 4 | CXXTEST='./../../../../bin/cxxtestgen' 5 | ) 6 | 7 | env['CXXTEST_SKIP_ERRORS'] = True 8 | env.CxxTest(['src/ThrowNoStd.h']) 9 | env.CxxTest(['src/AborterNoThrow.h']) 10 | env.CxxTest(['src/Comments.h']) 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/expanding_#/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'src' : '../../../../test'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/README: -------------------------------------------------------------------------------- 1 | Tests whether we can swallow file nodes as sources as well as strings. 2 | by: Gašper Ažman 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | env.CxxTest('joint_tests',[Glob('src/*.t.h'), 'src/requirement.cpp']) 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'cxxtest' : '../../../../'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/src/requirement.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file requirement.cpp 3 | * Implementation of the requirement function. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-08-29 10:09:42 AM 8 | */ 9 | 10 | #include "requirement.h" 11 | 12 | bool call_a_requirement() { 13 | return true; 14 | } 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/src/requirement.h: -------------------------------------------------------------------------------- 1 | #ifndef REQUIREMENT_H 2 | #define REQUIREMENT_H 3 | /** 4 | * @file requirement.h 5 | * Prototype for the call_a_requirement() function. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:08:35 AM 10 | */ 11 | 12 | bool call_a_requirement(); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/src/test_bar.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_BAR_T_H 2 | #define TEST_BAR_T_H 3 | /** 4 | * @file test_bar.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:04:06 AM 10 | */ 11 | 12 | #include 13 | #include "requirement.h" 14 | 15 | class TestBar : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing/src/test_foo.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_FOO_T_H 2 | #define TEST_FOO_T_H 3 | /** 4 | * @file test_foo.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:02:06 AM 10 | */ 11 | 12 | #include "requirement.h" 13 | #include 14 | 15 | class TestFoo : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/README: -------------------------------------------------------------------------------- 1 | Test for various things cxxtest failed to do, but now does. 2 | by: Edmundo López B. 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'cxxtest' : '../../../../'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/hello.cc: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * Implementation of class. 4 | */ 5 | /**************************************************** 6 | * Author: Edmundo LOPEZ 7 | * email: lopezed5@etu.unige.ch 8 | * 9 | * This code was written as a part of my bachelor 10 | * thesis at the University of Geneva. 11 | * 12 | * $Id$ 13 | * 14 | * **************************************************/ 15 | 16 | #include 17 | 18 | int 19 | Hello::foo(int x, int y) 20 | { 21 | return x + y; 22 | } 23 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/hello.hh: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * File containing a class 4 | */ 5 | /**************************************************** 6 | * Author: Edmundo LOPEZ 7 | * email: lopezed5@etu.unige.ch 8 | * 9 | * **************************************************/ 10 | 11 | class Hello 12 | { 13 | public: 14 | int foo(int x, int y); 15 | }; 16 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/hellotest.t.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * The test file. 4 | */ 5 | /**************************************************** 6 | * Author: Edmundo LOPEZ 7 | * email: lopezed5@etu.unige.ch 8 | * 9 | * **************************************************/ 10 | 11 | #include 12 | #include 13 | 14 | 15 | class helloTestSuite : public CxxTest::TestSuite 16 | { 17 | public: 18 | void testFoo() 19 | { 20 | Hello h; 21 | TS_ASSERT_EQUALS (h.foo(2,2), 4); 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/globbing_edmundo/main.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * Main function comes here. 4 | */ 5 | /**************************************************** 6 | * Author: Edmundo LOPEZ 7 | * email: lopezed5@etu.unige.ch 8 | * 9 | * **************************************************/ 10 | 11 | #include 12 | #include 13 | 14 | int main (int argc, char *argv[]) 15 | { 16 | Hello h; 17 | std::cout << h.foo(2,3) << std::endl; 18 | } 19 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CCFLAGS/README: -------------------------------------------------------------------------------- 1 | Tests: 2 | - if CXXTEST_CXXFLAGS_REMOVE and CXXTEST_CCFLAGS_REMOVE flags work, 3 | - if CCFLAGS and CXXFLAGS vars work. 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CCFLAGS/SConstruct: -------------------------------------------------------------------------------- 1 | flags = '-pedantic-errors -Weffc++ -Wall -Wextra -ansi' 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CCFLAGS=flags, 6 | CXXFLAGS=flags, 7 | CXXTEST_CXXFLAGS_REMOVE=['-pedantic-errors','-Weffc++','-Wextra','-Wall','-W'], 8 | CXXTEST_CCFLAGS_REMOVE=['-pedantic-errors','-Weffc++','-Wextra','-Wall','-W'] 9 | ) 10 | 11 | env.CxxTest(['src/not-with-pedantic.h']) 12 | env.CxxTest(['src/only_with_ansi.t.h']) 13 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CCFLAGS/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'cxxtest' : '../../../../'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CCFLAGS/src/not-with-pedantic.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file not-with-pedantic.h 3 | * Compiles, but not with -pedantic. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-09-30 13:33:50 8 | */ 9 | 10 | 11 | #include 12 | 13 | class TestPedantic : public CxxTest::TestSuite 14 | { 15 | public: 16 | void testPedanticPresent() { 17 | TS_ASSERT(true); 18 | int f = (true)?:5; 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CCFLAGS/src/only_with_ansi.t.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file only_with_ansi.t.h 3 | * This test only runs correctly if -ansi was supplied as a g++ switch. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2009-02-11 06:26:59 PM 8 | */ 9 | 10 | #include 11 | 12 | class TestAnsi : public CxxTest::TestSuite 13 | { 14 | public: 15 | void testAnsiPresent() { 16 | #ifdef __STRICT_ANSI__ 17 | TS_ASSERT(true); 18 | #else 19 | TS_ASSERT(false); 20 | #endif 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CXXFLAGS/README: -------------------------------------------------------------------------------- 1 | This test tests whether variables that are put into the environment after it has 2 | been initialised work as expected. 3 | 4 | If they do not, -pedantic-errors will appear in the gcc commandline and the 5 | compilation WILL FAIL, failing the test. 6 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CXXFLAGS/SConstruct: -------------------------------------------------------------------------------- 1 | flags = '-Weffc++ -Wall -Wextra -std=gnu++0x' 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CCFLAGS = Split(flags) + ['-pedantic-errors'], 6 | CXXFLAGS = Split(flags) + ['-pedantic-errors'] 7 | ) 8 | 9 | env['CXXTEST_CXXFLAGS_REMOVE']=['-Weffc++','-Wextra','-Wall','-W'] 10 | env['CXXTEST_CCFLAGS_REMOVE']='-Weffc++ -Wextra -Wall -W' 11 | env['CCFLAGS'] = flags 12 | env['CXXFLAGS'] = flags 13 | env['CXXTEST_SKIP_ERRORS'] = True 14 | 15 | env.CxxTest(['src/not-with-pedantic.h']) 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/include_CXXFLAGS/src/not-with-pedantic.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file not-with-pedantic.h 3 | * Compiles, but not with -pedantic. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-09-30 13:33:50 8 | */ 9 | 10 | 11 | #include 12 | 13 | class TestPedantic : public CxxTest::TestSuite 14 | { 15 | public: 16 | void testPedanticPresent() { 17 | int f = (true)?:5; 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/README: -------------------------------------------------------------------------------- 1 | Test whether we can run program that depends on (shared) libraries that we know 2 | but they are outside of standard load path. 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | SConscript(['src/SConscript', 'test/SConscript'], exports = ['env']) 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/TestDef.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | links = {'cxxtest' : '../../../../'} 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/src/SConscript: -------------------------------------------------------------------------------- 1 | Import('env') 2 | 3 | env.SharedLibrary('foo', 'foo.cpp') 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/src/foo.cpp: -------------------------------------------------------------------------------- 1 | int foo() 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/test/SConscript: -------------------------------------------------------------------------------- 1 | Import('env') 2 | env.CxxTest('test.t.h', LIBS = ['foo'], CXXTEST_LIBPATH = ['../src']) 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath/test/test.t.h: -------------------------------------------------------------------------------- 1 | // test/test.t.h 2 | #include 3 | 4 | extern int foo(); 5 | class FooTestSuite1 : public CxxTest::TestSuite 6 | { 7 | public: 8 | void testFoo(void) 9 | { 10 | TS_ASSERT_EQUALS(foo(), 0); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/README: -------------------------------------------------------------------------------- 1 | Test whether we can run program that depends on (shared) libraries that we know 2 | but they are outside of standard load path. Test whether multiple test runners 3 | do not alter each other. 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | SConscript(['src1/SConscript', 'src2/SConscript', 'test/SConscript'], exports = ['env']) 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/src1/SConscript: -------------------------------------------------------------------------------- 1 | Import('env') 2 | 3 | env.SharedLibrary('foo', 'foo.cpp') 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/src1/foo.cpp: -------------------------------------------------------------------------------- 1 | int foo() 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/src2/SConscript: -------------------------------------------------------------------------------- 1 | Import('env') 2 | 3 | env.SharedLibrary('bar', 'bar.cpp') 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/src2/bar.cpp: -------------------------------------------------------------------------------- 1 | int bar() 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/test/SConscript: -------------------------------------------------------------------------------- 1 | Import('env') 2 | env.CxxTest('test1.t.h', LIBS = ['foo'], CXXTEST_LIBPATH = ['../src1'], CXXTEST_TARGET = 'check-1') 3 | env.CxxTest('test2.t.h', LIBS = ['bar'], CXXTEST_LIBPATH = ['../src2'], CXXTEST_TARGET = 'check-2') 4 | env.Alias('check', ['check-1', 'check-2']) 5 | env.AlwaysBuild('check') 6 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/test/test1.t.h: -------------------------------------------------------------------------------- 1 | // test/test.t.h 2 | #include 3 | 4 | extern int foo(); 5 | class FooTestSuite1 : public CxxTest::TestSuite 6 | { 7 | public: 8 | void testFoo(void) 9 | { 10 | TS_ASSERT_EQUALS(foo(), 0); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/libpath_multitarget/test/test2.t.h: -------------------------------------------------------------------------------- 1 | // test/test.t.h 2 | #include 3 | 4 | extern int bar(); 5 | class BarTestSuite1 : public CxxTest::TestSuite 6 | { 7 | public: 8 | void testBar(void) 9 | { 10 | TS_ASSERT_EQUALS(bar(), 0); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/multifile_tests/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | env.CxxTest('joint_tests', 4 | Split('src/test_foo.t.h ' 5 | 'src/test_bar.t.h ' 6 | 'src/requirement.cpp' 7 | ) 8 | ) 9 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/multifile_tests/src/requirement.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file requirement.cpp 3 | * Implementation of the requirement function. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-08-29 10:09:42 AM 8 | */ 9 | 10 | #include "requirement.h" 11 | 12 | bool call_a_requirement() { 13 | return true; 14 | } 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/multifile_tests/src/requirement.h: -------------------------------------------------------------------------------- 1 | #ifndef REQUIREMENT_H 2 | #define REQUIREMENT_H 3 | /** 4 | * @file requirement.h 5 | * Prototype for the call_a_requirement() function. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:08:35 AM 10 | */ 11 | 12 | bool call_a_requirement(); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/multifile_tests/src/test_bar.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_BAR_T_H 2 | #define TEST_BAR_T_H 3 | /** 4 | * @file test_bar.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:04:06 AM 10 | */ 11 | 12 | #include 13 | #include "requirement.h" 14 | 15 | class TestBar : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/multifile_tests/src/test_foo.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_FOO_T_H 2 | #define TEST_FOO_T_H 3 | /** 4 | * @file test_foo.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:02:06 AM 10 | */ 11 | 12 | #include "requirement.h" 13 | #include 14 | 15 | class TestFoo : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/need_cpppath/SConstruct: -------------------------------------------------------------------------------- 1 | 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CXXTEST_INSTALL_DIR = '../../../../', 6 | CPPPATH = ['src/cpppathdir/'] 7 | ) 8 | 9 | env.CxxTest(['src/cpppath.t.h']) 10 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/need_cpppath/TestDef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/build_tools/SCons/test/need_cpppath/TestDef.py -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/need_cpppath/src/cpppath.t.h: -------------------------------------------------------------------------------- 1 | #ifndef CPPPATH_T_H 2 | #define CPPPATH_T_H 3 | 4 | /** 5 | * @file cpppath.t.h 6 | * This file needs the include in the include dir. 7 | * 8 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 9 | * @version 1.0 10 | * @since 2008-08-28 11:16:46 AM 11 | */ 12 | 13 | // actual path cpppathdir/include.h 14 | #include "include.h" 15 | #include 16 | 17 | class CppPathTest : public CxxTest::TestSuite 18 | { 19 | public: 20 | void test_i_need_me_exists() { 21 | TS_ASSERT(i_need_me() == 0); 22 | } 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/need_cpppath/src/cpppathdir/include.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDE_H 2 | #define INCLUDE_H 3 | /** 4 | * @file include.h 5 | * Include file for this test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-28 11:15:40 AM 10 | */ 11 | 12 | int i_need_me() { 13 | return 0; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/nonstandard_cxxtest_dir/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment( 2 | toolpath=['../../'], 3 | tools=['default','cxxtest'], 4 | CXXTEST_INSTALL_DIR = '../../../../' 5 | ) 6 | 7 | env['CXXTEST_SKIP_ERRORS'] = True 8 | env.CxxTest(['src/ThrowNoStd.h']) 9 | env.CxxTest(['src/AborterNoThrow.h']) 10 | env.CxxTest(['src/Comments.h']) 11 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/printer_propagation/SConstruct: -------------------------------------------------------------------------------- 1 | 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CXXTEST_INSTALL_DIR = '../../../../', 6 | ) 7 | 8 | env.CxxTest(['src/failtest.t.h'], CPPPATH=['#'], CXXTEST_RUNNER="CrazyRunner") 9 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/printer_propagation/TestDef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/build_tools/SCons/test/printer_propagation/TestDef.py -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/printer_propagation/cxxtest/CrazyRunner.h: -------------------------------------------------------------------------------- 1 | #ifndef __cxxtest_CrazyRunner_h__ 2 | #define __cxxtest_CrazyRunner_h__ 3 | 4 | 5 | /* 6 | * This is not a proper runner. Just a simple class that looks like one. 7 | */ 8 | namespace CxxTest { 9 | class CrazyRunner { 10 | public: 11 | int run() { return 0; } 12 | void process_commandline(int argc, char** argv) { } 13 | }; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/printer_propagation/src/failtest.t.h: -------------------------------------------------------------------------------- 1 | #ifndef FAILTEST_T_H 2 | #define FAILTEST_T_H 3 | 4 | /** 5 | * @file failtest.t.h 6 | * This test will succed only with a CrazyRunner. 7 | * 8 | * @author 9 | * @version 1.0 10 | * @since jue ago 28 14:18:57 ART 2008 11 | */ 12 | 13 | #include 14 | 15 | class CppPathTest : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_i_will_fail() { 19 | TS_ASSERT(false); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/README: -------------------------------------------------------------------------------- 1 | Tests whether we can swallow recursively supplied sources - a list of lists, for 2 | instance. 3 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/SConstruct: -------------------------------------------------------------------------------- 1 | env = Environment(toolpath=['../../'],tools=['default','cxxtest']) 2 | 3 | env.CxxTest('joint_tests',['src/test_foo.t.h',['src/test_bar.t.h','src/requirement.cpp']]) 4 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/src/requirement.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file requirement.cpp 3 | * Implementation of the requirement function. 4 | * 5 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 | * @version 1.0 7 | * @since 2008-08-29 10:09:42 AM 8 | */ 9 | 10 | #include "requirement.h" 11 | 12 | bool call_a_requirement() { 13 | return true; 14 | } 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/src/requirement.h: -------------------------------------------------------------------------------- 1 | #ifndef REQUIREMENT_H 2 | #define REQUIREMENT_H 3 | /** 4 | * @file requirement.h 5 | * Prototype for the call_a_requirement() function. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:08:35 AM 10 | */ 11 | 12 | bool call_a_requirement(); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/src/test_bar.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_BAR_T_H 2 | #define TEST_BAR_T_H 3 | /** 4 | * @file test_bar.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:04:06 AM 10 | */ 11 | 12 | #include 13 | #include "requirement.h" 14 | 15 | class TestBar : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/recursive_sources/src/test_foo.t.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_FOO_T_H 2 | #define TEST_FOO_T_H 3 | /** 4 | * @file test_foo.t.h 5 | * Test one for the joint test ehm, test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-29 10:02:06 AM 10 | */ 11 | 12 | #include "requirement.h" 13 | #include 14 | 15 | class TestFoo : public CxxTest::TestSuite 16 | { 17 | public: 18 | void test_foo() { 19 | TS_ASSERT(call_a_requirement()); 20 | } 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/string_cpppath/SConstruct: -------------------------------------------------------------------------------- 1 | 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CXXTEST_INSTALL_DIR = '../../../../', 6 | CPPPATH = 'src/cpppathdir/' 7 | ) 8 | 9 | env.CxxTest(['src/cpppath.t.h']) 10 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/string_cpppath/TestDef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/build_tools/SCons/test/string_cpppath/TestDef.py -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/string_cpppath/src/cpppath.t.h: -------------------------------------------------------------------------------- 1 | #ifndef CPPPATH_T_H 2 | #define CPPPATH_T_H 3 | 4 | /** 5 | * @file cpppath.t.h 6 | * This file needs the include in the include dir. 7 | * 8 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 9 | * @version 1.0 10 | * @since 2008-08-28 11:16:46 AM 11 | */ 12 | 13 | // actual path cpppathdir/include.h 14 | #include "include.h" 15 | #include 16 | 17 | class CppPathTest : public CxxTest::TestSuite 18 | { 19 | public: 20 | void test_i_need_me_exists() { 21 | TS_ASSERT(i_need_me() == 0); 22 | } 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/string_cpppath/src/cpppathdir/include.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDE_H 2 | #define INCLUDE_H 3 | /** 4 | * @file include.h 5 | * Include file for this test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-28 11:15:40 AM 10 | */ 11 | 12 | int i_need_me() { 13 | return 0; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/target_syntax/SConstruct: -------------------------------------------------------------------------------- 1 | 2 | env = Environment( 3 | toolpath=['../../'], 4 | tools=['default','cxxtest'], 5 | CXXTEST_INSTALL_DIR = '../../../../', 6 | CPPPATH = ['src/cpppathdir/'] 7 | ) 8 | 9 | env.CxxTest('src/cpppath') 10 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/target_syntax/TestDef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/build_tools/SCons/test/target_syntax/TestDef.py -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/target_syntax/src/cpppath.t.h: -------------------------------------------------------------------------------- 1 | #ifndef CPPPATH_T_H 2 | #define CPPPATH_T_H 3 | 4 | /** 5 | * @file cpppath.t.h 6 | * This file needs the include in the include dir. 7 | * 8 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 9 | * @version 1.0 10 | * @since 2008-08-28 11:16:46 AM 11 | */ 12 | 13 | // actual path cpppathdir/include.h 14 | #include "include.h" 15 | #include 16 | 17 | class CppPathTest : public CxxTest::TestSuite 18 | { 19 | public: 20 | void test_i_need_me_exists() { 21 | TS_ASSERT(i_need_me() == 0); 22 | } 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /lib/cxxtest/build_tools/SCons/test/target_syntax/src/cpppathdir/include.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDE_H 2 | #define INCLUDE_H 3 | /** 4 | * @file include.h 5 | * Include file for this test. 6 | * 7 | * @author Gašper Ažman (GA), gasper.azman@gmail.com 8 | * @version 1.0 9 | * @since 2008-08-28 11:15:40 AM 10 | */ 11 | 12 | int i_need_me() { 13 | return 0; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/BadTestSuite1.h: -------------------------------------------------------------------------------- 1 | // BadTestSuite1.h 2 | #include 3 | 4 | class BadTestSuite1 : public CxxTest::TestSuite 5 | { 6 | public: 7 | void testAddition(void) 8 | { 9 | TS_ASSERT(1 + 1 > 1); 10 | TS_ASSERT_EQUALS(1 + 1, 2); 11 | } 12 | #if 0 13 | void testSubtraction(void) 14 | { 15 | TS_ASSERT(1 - 1 < 1); 16 | TS_ASSERT_EQUALS(1 - 1, 0); 17 | } 18 | #endif 19 | }; 20 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/GetGlobals.sh: -------------------------------------------------------------------------------- 1 | if [[ "x$CXXTEST" -eq "x" ]] 2 | then 3 | CXXTEST="../../" 4 | fi 5 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite1.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite1.h 2 | #include 3 | 4 | class MyTestSuite1 : public CxxTest::TestSuite 5 | { 6 | public: 7 | void testAddition(void) 8 | { 9 | TS_ASSERT(1 + 1 > 1); 10 | TS_ASSERT_EQUALS(1 + 1, 2); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite10.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite10.h 2 | #include 3 | #include 4 | 5 | class MyTestSuite10 : public CxxTest::TestSuite 6 | { 7 | public: 8 | void test_le() 9 | { 10 | MyClass x(1), y(2); 11 | TS_ASSERT_LESS_THAN(x, y); 12 | } 13 | 14 | void test_eq() 15 | { 16 | MyClass x(1), y(2); 17 | TS_ASSERT_EQUALS(x, y); 18 | } 19 | }; 20 | 21 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite11.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite11.h 2 | #include 3 | #include 4 | 5 | class MyTestSuite11 : public CxxTest::TestSuite 6 | { 7 | public: 8 | void test_le() 9 | { 10 | TMyClass x(1), y(2); 11 | TS_ASSERT_LESS_THAN(x, y); 12 | } 13 | 14 | void test_eq() 15 | { 16 | TMyClass x(1), y(2); 17 | TS_ASSERT_EQUALS(x, y); 18 | } 19 | }; 20 | 21 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite12.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite12.h 2 | #include 3 | 4 | class MyTestSuite1 : public CxxTest::TestSuite 5 | { 6 | public: 7 | void testAddition(void) 8 | { 9 | TS_ASSERT(1 + 1 > 1); 10 | TS_ASSERT_EQUALS(1 + 1, 2); 11 | } 12 | }; 13 | 14 | 15 | #ifndef CXXTEST_RUNNING 16 | #include 17 | 18 | int main(int argc, char *argv[]) 19 | { 20 | 21 | std::cout << "Non-CxxTest stuff is happening now." << std::endl; 22 | 23 | } 24 | #endif 25 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite2.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite2.h 2 | #include 3 | 4 | class MyTestSuite2 : public CxxTest::TestSuite 5 | { 6 | public: 7 | void testAddition(void) 8 | { 9 | TS_ASSERT(1 + 1 > 1); 10 | TS_ASSERT_EQUALS(1 + 1, 2); 11 | } 12 | 13 | void testMultiplication(void) 14 | { 15 | TS_TRACE("Starting multiplication test"); 16 | TS_ASSERT_EQUALS(2 * 2, 5); 17 | TS_TRACE("Finishing multiplication test"); 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite4.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite4.h 2 | #include 3 | 4 | class MyTestSuite4 5 | : 6 | public CxxTest::TestSuite 7 | { 8 | public: 9 | void testAddition(void) 10 | { 11 | TS_ASSERT(1 + 1 > 1); 12 | TS_ASSERT_EQUALS(1 + 1, 2); 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/MyTestSuite6.h: -------------------------------------------------------------------------------- 1 | // MyTestSuite6.h 2 | #include 3 | 4 | class MyTestSuite6 : public CxxTest::TestSuite 5 | { 6 | public: 7 | 8 | static MyTestSuite6* createSuite() 9 | { 10 | #ifdef _MSC_VER 11 | return new MyTestSuite6(); 12 | #else 13 | return 0; 14 | #endif 15 | } 16 | 17 | static void destroySuite(MyTestSuite6* suite) 18 | { delete suite; } 19 | 20 | void test_nothing() 21 | { 22 | TS_FAIL("Nothing to test"); 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner.log: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test).OK! 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite1.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner > buildRunner.log 15 | # @run: 16 | ./runner 17 | # @:run 18 | \rm -f runner runner.cpp 19 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test).OK! 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner10.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen -o runner.cpp --template runner10.tpl MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner10.txt: -------------------------------------------------------------------------------- 1 | Starting test runner 2 | Running cxxtest tests (2 tests). 3 | In MyTestSuite2::testMultiplication: 4 | MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 5 | Failed 1 and Skipped 0 of 2 tests 6 | Success rate: 50% 7 | Stopping test runner 8 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner11.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | 5 | export PATH=$CXXTEST/bin:$PATH 6 | 7 | # @main: 8 | cxxtestgen -f --error-printer -o runner.cpp MyTestSuite3.h 9 | # @:main 10 | 11 | # @compile: 12 | g++ -o runner -I$CXXTEST runner.cpp 13 | # @:compile 14 | 15 | ./runner 16 | \rm -f runner runner.cpp 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner11.txt: -------------------------------------------------------------------------------- 1 | Parsing file MyTestSuite3.h done. 2 | Running cxxtest tests (1 test).OK! 3 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner12.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | 5 | export PATH=$CXXTEST/bin:$PATH 6 | 7 | # @main: 8 | cxxtestgen -f --error-printer -o runner.cpp MyTestSuite4.h 9 | # @:main 10 | 11 | # @compile: 12 | g++ -o runner -I$CXXTEST runner.cpp 13 | # @:compile 14 | 15 | ./runner 16 | \rm -f runner runner.cpp 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner12.txt: -------------------------------------------------------------------------------- 1 | Parsing file MyTestSuite4.h done. 2 | Running cxxtest tests (1 test).OK! 3 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner14.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite5.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner14.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)..OK! 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner15.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite6.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner15.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In MyTestSuite6::: 3 | MyTestSuite6.h:8: Error: Test failed: createSuite() failed 4 | MyTestSuite6.h:8: Error: Assertion failed: suite() != 0 5 | Failed 1 and Skipped 0 of 1 test 6 | Success rate: 0% 7 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner16.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MockTestSuite.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I. -I$CXXTEST runner.cpp time_mock.cpp rand_example.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner16.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test).OK! 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner17.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite7.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner17.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In MyTestSuite7::testCompareData: 3 | MyTestSuite7.h:28: Error: Expected (x == y), found ({ 12 12 12 } != { F6 F6 F6 }) 4 | MyTestSuite7.h:33: Error: Expected sizeof(z) (3) bytes to be equal at (&z) and (&w), found: 5 | { 12 12 12 } 6 | differs from 7 | { F6 F6 F6 } 8 | Failed 1 and Skipped 0 of 1 test 9 | Success rate: 0% 10 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner18.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite8.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner18.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)Starting a test suite 2 | Starting a test suite 3 | ..Finishing a test suite 4 | Finishing a test suite 5 | OK! 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner19.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite9.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner19.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In EnumTraits::test_Enum_traits: 3 | MyTestSuite9.h:27: Error: Test failed: Yes 4 | MyTestSuite9.h:28: Error: Test failed: No 5 | MyTestSuite9.h:29: Error: Test failed: Maybe 6 | MyTestSuite9.h:30: Error: Test failed: DontKnow 7 | MyTestSuite9.h:31: Error: Test failed: DontCare 8 | MyTestSuite9.h:32: Error: Test failed: (Answer)1000 9 | Failed 1 and Skipped 0 of 1 test 10 | Success rate: 0% 11 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner2.log: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner > buildRunner2.log 15 | cat buildRunner2.log 16 | \rm -f runner runner.cpp 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner2.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner20.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite10.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST -I. runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner20.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite10::test_eq: 3 | MyTestSuite10.h:17: Error: Expected (x == y), found (MyClass( 1 ) != MyClass( 2 )) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner21.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite11.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST -I. runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner21.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite11::test_eq: 3 | MyTestSuite11.h:17: Error: Expected (x == y), found (8TMyClassIiE( 1 ) != 8TMyClassIiE( 1 )) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner22.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --fog --error-printer -o runner.cpp Namespace1.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST -I. runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | #\rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner22.txt: -------------------------------------------------------------------------------- 1 | Parsing file Namespace1.h done. 2 | Running cxxtest tests (2 tests)..OK! 3 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner23.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp Namespace2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST -I. runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner23.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)..OK! 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner24.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --fog --error-printer -o runner.cpp Namespace2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST -I. runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner24.txt: -------------------------------------------------------------------------------- 1 | Parsing file Namespace2.h done. 2 | Running cxxtest tests (2 tests)..OK! 3 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner25.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --error-printer -o runner.cpp MyTestSuite12.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner > buildRunner.log 15 | # @run: 16 | ./runner 17 | # @:run 18 | \rm -f runner runner.cpp 19 | 20 | 21 | cp MyTestSuite12.h runner2.cpp 22 | g++ -o runner2 -I$CXXTEST runner2.cpp 23 | ./runner2 24 | \rm -f runner2 runner2.cpp 25 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner25.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test).OK! 2 | Non-CxxTest stuff is happening now. 3 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --runner=ParenPrinter -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner3.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | MyTestSuite2.h(16): Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --runner=StdioPrinter -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner4.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner5.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --runner=YesNoRunner -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | echo $? 16 | 17 | \rm -f runner runner.cpp 18 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner5.txt: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner6.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --runner=XmlPrinter -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner6.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error: Expected (2 * 2 == 5), found (4 != 5) 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner7.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --xunit-printer -o runner.cpp MyTestSuite2.h 8 | # @:main 9 | 10 | # @compile: 11 | g++ -o runner -I$CXXTEST runner.cpp 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner7.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner8.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @main: 7 | cxxtestgen --gui=X11Gui -o runner.cpp MyTestSuite2.h ../../sample/gui/GreenYellowRed.h 8 | # @:main 9 | 10 | # @compile: 11 | /opt/local/bin/g++-mp-4.4 -o runner -I$CXXTEST runner.cpp -L/opt/local/lib -lX11 12 | # @:compile 13 | 14 | ./runner 15 | \rm -f runner runner.cpp 16 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/buildRunner9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . GetGlobals.sh 4 | export PATH=$CXXTEST/bin:$PATH 5 | 6 | # @part: 7 | cxxtestgen --part --error-printer -o MyTestSuite1.cpp MyTestSuite1.h 8 | cxxtestgen --part --error-printer -o MyTestSuite2.cpp MyTestSuite2.h 9 | # @:part 10 | 11 | # @root: 12 | cxxtestgen --root --error-printer -o runner.cpp 13 | # @:root 14 | 15 | # @compile: 16 | g++ -o runner -I$CXXTEST runner.cpp MyTestSuite1.cpp MyTestSuite2.cpp 17 | # @:compile 18 | 19 | ./runner -v 20 | 21 | rm -f MyTestSuite1.cpp MyTestSuite2.cpp runner.cpp runner 22 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/rand_example.cpp: -------------------------------------------------------------------------------- 1 | // rand_example.cpp 2 | #include 3 | 4 | int generateRandomNumber() 5 | { 6 | return T::time(NULL) * 3; 7 | } 8 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner10.tpl: -------------------------------------------------------------------------------- 1 | #define CXXTEST_HAVE_EH 2 | #define CXXTEST_ABORT_TEST_ON_FAIL 3 | #include 4 | 5 | int main() 6 | { 7 | std::cout << "Starting test runner" << std::endl; 8 | int status = CxxTest::ErrorPrinter().run(); 9 | std::cout << "Stopping test runner" << std::endl; 10 | return status; 11 | } 12 | 13 | // The CxxTest "world" 14 | 15 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner13.MyTestSuite2.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests). 2 | In MyTestSuite2::testMultiplication: 3 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 2 tests 5 | Success rate: 50% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner13.help.txt: -------------------------------------------------------------------------------- 1 | ./runner 2 | ./runner 3 | ./runner -h 4 | ./runner --help 5 | ./runner --help-tests 6 | ./runner -v Enable tracing output. 7 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner13.helpTests.txt: -------------------------------------------------------------------------------- 1 | Suite/Test Names 2 | --------------------------------------------------------------------------- 3 | MyTestSuite1 testAddition 4 | MyTestSuite2 testAddition 5 | MyTestSuite2 testMultiplication 6 | MyTestSuite4 testAddition 7 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner13.testMultiplication.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In MyTestSuite2::testMultiplication: 3 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/runner13.testMultiplicationVerbose.txt: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In MyTestSuite2::testMultiplication: 3 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:15: Trace: Starting multiplication test 4 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:16: Error: Expected (2 * 2 == 5), found (4 != 5) 5 | /Users/wehart/home/mac/src/cxxtest/doc/examples/MyTestSuite2.h:17: Trace: Finishing multiplication test 6 | Failed 1 and Skipped 0 of 1 test 7 | Success rate: 0% 8 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/time_mock.cpp: -------------------------------------------------------------------------------- 1 | // time_mock.cpp 2 | #define CXXTEST_MOCK_TEST_SOURCE_FILE 3 | #include 4 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/time_mock.h: -------------------------------------------------------------------------------- 1 | // time_mock.h 2 | #include 3 | #include 4 | 5 | CXXTEST_MOCK_GLOBAL(time_t, /* Return type */ 6 | time, /* Name of the function */ 7 | (time_t *t), /* Prototype */ 8 | (t) /* Argument list */); 9 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/examples/time_real.cpp: -------------------------------------------------------------------------------- 1 | // time_real.cpp 2 | #define CXXTEST_MOCK_REAL_SOURCE_FILE 3 | #include 4 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/README: -------------------------------------------------------------------------------- 1 | Replaced the plain DocBook XSL admonition icons with Jimmac's DocBook 2 | icons (http://jimmac.musichall.cz/ikony.php3). I dropped transparency 3 | from the Jimmac icons to get round MS IE and FOP PNG incompatibilies. 4 | 5 | Stuart Rackham 6 | -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/1.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/10.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/11.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/12.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/13.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/14.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/15.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/2.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/3.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/4.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/5.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/6.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/7.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/8.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/callouts/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/callouts/9.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/caution.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/example.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/home.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/important.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/next.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/note.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/prev.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/tip.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/up.png -------------------------------------------------------------------------------- /lib/cxxtest/doc/images/icons/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/lib/cxxtest/doc/images/icons/warning.png -------------------------------------------------------------------------------- /lib/cxxtest/python/README.txt: -------------------------------------------------------------------------------- 1 | CxxTest Python Package 2 | ====================== 3 | 4 | The CxxTest Python package includes utilities that are used by the 5 | CxxTest unit testing framework. Specifically, this Python package 6 | supports C++ parsing and code generation done in the cxxtestgen 7 | script. 8 | 9 | -------------------------------------------------------------------------------- /lib/cxxtest/python/cxxtest/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /lib/cxxtest/python/python3/scripts/cxxtestgen: -------------------------------------------------------------------------------- 1 | #! python 2 | 3 | import cxxtest.cxxtestgen 4 | 5 | cxxtest.cxxtestgen.main() 6 | -------------------------------------------------------------------------------- /lib/cxxtest/python/scripts/cxxtestgen: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | import os.path 5 | 6 | try: 7 | import cxxtest.cxxtestgen 8 | except ImportError: 9 | currdir = os.path.dirname(os.path.abspath(__file__)) 10 | 11 | if sys.version_info < (3,0): 12 | sys.path.append( os.path.abspath( os.path.sep.join([currdir, '..']) ) ) 13 | else: 14 | sys.path.append( os.path.abspath( os.path.sep.join([currdir, '..', python3]) ) ) 15 | 16 | import cxxtest.cxxtestgen 17 | 18 | cxxtest.cxxtestgen.main() 19 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/.cvsignore: -------------------------------------------------------------------------------- 1 | .consign 2 | Makefile 3 | *_runner* 4 | tests.cpp error_printer.cpp stdio_printer.cpp file_printer.cpp aborter.cpp only.cpp 5 | error_printer stdio_printer file_printer aborter only 6 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/SCons/include/stack.h: -------------------------------------------------------------------------------- 1 | #ifndef STACK_H 2 | #define STACK_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | typedef struct stack_t { 9 | int size; 10 | int* vals; 11 | int capacity; 12 | } stack_t; 13 | 14 | stack_t* stack_create(); 15 | void stack_free(stack_t* stack); 16 | int stack_size(stack_t* stack); 17 | void stack_push(stack_t* stack, int val); 18 | int stack_pop(stack_t* stack); 19 | int stack_peak(stack_t* stack); 20 | int stack_capacity(stack_t* stack); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/aborter.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | // This template file demonstrates the use of CXXTEST_ABORT_TEST_ON_FAIL 3 | // 4 | 5 | #define CXXTEST_HAVE_STD 6 | #define CXXTEST_ABORT_TEST_ON_FAIL 7 | #include 8 | 9 | int main() 10 | { 11 | return CxxTest::ErrorPrinter().run(); 12 | } 13 | 14 | // The CxxTest "world" 15 | 16 | 17 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/file_printer.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | // This is a sample of a custom test runner 3 | // using CxxTest template files. 4 | // This prints the output to a file given on the command line. 5 | // 6 | 7 | #include 8 | #include 9 | 10 | int main( int argc, char *argv[] ) 11 | { 12 | if ( argc != 2 ) { 13 | fprintf( stderr, "Usage: %s \n", argv[0] ); 14 | return -1; 15 | } 16 | 17 | return CxxTest::StdioPrinter( fopen( argv[1], "w" ) ).run(); 18 | } 19 | 20 | // The CxxTest "world" 21 | 22 | 23 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/Dice.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Dice.h" 3 | 4 | Dice::Dice() 5 | { 6 | T::srand(T::time(0)); 7 | } 8 | 9 | unsigned Dice::roll() 10 | { 11 | return (T::rand() % 6) + 1; 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/Dice.h: -------------------------------------------------------------------------------- 1 | #ifndef __DICE_H 2 | #define __DICE_H 3 | 4 | class Dice 5 | { 6 | public: 7 | Dice(); 8 | 9 | unsigned roll(); 10 | }; 11 | 12 | #endif // __DICE_H 13 | 14 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/Makefile: -------------------------------------------------------------------------------- 1 | all: roll run 2 | 3 | clean: 4 | rm -f *~ *.o roll test test.cpp 5 | 6 | CXXTEST = ../.. 7 | CCFLAGS = -I. -I$(CXXTEST) 8 | 9 | roll: roll.o Dice.o real_stdlib.o 10 | g++ -o $@ $^ 11 | 12 | run: test 13 | ./test 14 | 15 | test: test.o Dice.o mock_stdlib.o 16 | g++ -o $@ $^ 17 | 18 | .cpp.o: 19 | g++ -c -o $@ $(CCFLAGS) $< 20 | 21 | test.cpp: TestDice.h 22 | $(CXXTEST)/bin/cxxtestgen -o $@ --error-printer $< 23 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/MockStdlib.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class MockStdlib : 4 | public T::Base_srand, 5 | public T::Base_rand, 6 | public T::Base_time 7 | { 8 | public: 9 | unsigned lastSeed; 10 | 11 | void srand(unsigned seed) 12 | { 13 | lastSeed = seed; 14 | } 15 | 16 | int nextRand; 17 | 18 | int rand() 19 | { 20 | return nextRand; 21 | } 22 | 23 | time_t nextTime; 24 | 25 | time_t time(time_t *t) 26 | { 27 | if (t) 28 | { 29 | *t = nextTime; 30 | } 31 | return nextTime; 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/T/stdlib.h: -------------------------------------------------------------------------------- 1 | #ifndef __T__STDLIB_H 2 | #define __T__STDLIB_H 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | CXXTEST_MOCK_VOID_GLOBAL( srand, ( unsigned seed ), ( seed ) ); 10 | CXXTEST_MOCK_GLOBAL( int, rand, ( void ), () ); 11 | CXXTEST_MOCK_GLOBAL( time_t, time, ( time_t *t ), ( t ) ); 12 | 13 | #endif // __T__STDLIB_H 14 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/mock_stdlib.cpp: -------------------------------------------------------------------------------- 1 | #define CXXTEST_MOCK_TEST_SOURCE_FILE 2 | #include 3 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/real_stdlib.cpp: -------------------------------------------------------------------------------- 1 | #define CXXTEST_MOCK_REAL_SOURCE_FILE 2 | #include 3 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/mock/roll.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Dice.h" 3 | 4 | int main() 5 | { 6 | Dice dice; 7 | printf("First roll: %u\n", dice.roll()); 8 | printf("Second roll: %u\n", dice.roll()); 9 | 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/parts/.cvsignore: -------------------------------------------------------------------------------- 1 | *.cpp *.o runner -------------------------------------------------------------------------------- /lib/cxxtest/sample/winddk/Makefile: -------------------------------------------------------------------------------- 1 | # Standard DDK Makefile 2 | !include $(NTMAKEENV)\makefile.def 3 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/winddk/Makefile.inc: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | 3 | # 4 | # Tell the DDK how to generate RunTests.cpp from RunTests.tpl and the tests 5 | # 6 | 7 | PYTHON=python 8 | CXXTESTGEN=$(PYTHON) $(CXXTESTDIR)/bin/cxxtestgen 9 | 10 | TEST_SUITES=$(SUITESDIR)/*.h 11 | 12 | RunTests.cpp: RunTests.tpl $(TEST_SUITES) 13 | $(CXXTESTGEN) -o $@ --template=RunTests.tpl $(TEST_SUITES) 14 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/winddk/RunTests.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // 4 | // The DDK doesn't handle too well 5 | // 6 | #include 7 | 8 | int __cdecl main() 9 | { 10 | return CxxTest::StdioPrinter().run(); 11 | } 12 | 13 | 14 | -------------------------------------------------------------------------------- /lib/cxxtest/sample/yes_no_runner.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // A sample program that uses class YesNoRunner to run all the tests 3 | // and find out if all pass. 4 | // 5 | 6 | #include 7 | 8 | int main() { 9 | return CxxTest::YesNoRunner().run(); 10 | } 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/.cvsignore: -------------------------------------------------------------------------------- 1 | *pl.cpp *py.cpp *pl.out *py.out *px *px.exe *px.out *build.log *root.cpp 2 | -------------------------------------------------------------------------------- /lib/cxxtest/test/AborterNoThrow.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This is a test suite which doesn't use exception handling. 5 | // It is used to verify --abort-on-fail + --have-eh 6 | // 7 | 8 | class AborterNoThrow : public CxxTest::TestSuite 9 | { 10 | public: 11 | void testFailures() 12 | { 13 | TS_FAIL(1); 14 | TS_FAIL(2); 15 | TS_FAIL(3); 16 | TS_FAIL(4); 17 | TS_FAIL(5); 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Comments.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This is a test of commenting out tests in CxxTest 5 | // 6 | 7 | class Comments : public CxxTest::TestSuite 8 | { 9 | public: 10 | void test_Something() 11 | { 12 | TS_WARN("Something"); 13 | } 14 | 15 | // void test_Something_else() 16 | // { 17 | // TS_WARN( "Something else" ); 18 | // } 19 | 20 | //void test_Something_else() 21 | //{ 22 | // TS_WARN( "Something else" ); 23 | //} 24 | }; 25 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Comments2.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This is a test of commenting out tests in CxxTest 5 | // 6 | 7 | class Comments : public CxxTest::TestSuite 8 | { 9 | public: 10 | void test_Something() 11 | { 12 | TS_WARN("Something"); 13 | } 14 | 15 | /* 16 | void test_Something_else() 17 | { 18 | TS_WARN( "Something else" ); 19 | } 20 | */ 21 | }; 22 | -------------------------------------------------------------------------------- /lib/cxxtest/test/DefaultAbort.h: -------------------------------------------------------------------------------- 1 | #define CXXTEST_HAVE_EH 2 | #define CXXTEST_ABORT_TEST_ON_FAIL 3 | #define CXXTEST_DEFAULT_ABORT false 4 | -------------------------------------------------------------------------------- /lib/cxxtest/test/EmptySuite.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class EmptySuite : public CxxTest::TestSuite 4 | { 5 | public: 6 | static EmptySuite *createSuite() { return new EmptySuite(); } 7 | static void destroySuite(EmptySuite *suite) { delete suite; } 8 | 9 | void setUp() {} 10 | void tearDown() {} 11 | 12 | void thisSuiteHasNoTests() 13 | { 14 | TS_FAIL("This suite has no tests"); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /lib/cxxtest/test/ForceNoEh.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class ForceNoEh : public CxxTest::TestSuite 4 | { 5 | public: 6 | void testCxxTestCanCompileWithoutExceptionHandling() 7 | { 8 | TS_ASSERT_EQUALS(1, 2); 9 | TS_ASSERT_EQUALS(2, 3); 10 | TS_ASSERT_THROWS_NOTHING(foo()); 11 | } 12 | 13 | void foo() 14 | { 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /lib/cxxtest/test/GuiWait.h: -------------------------------------------------------------------------------- 1 | #ifndef __GUI_WAIT_H 2 | #define __GUI_WAIT_H 3 | 4 | #define CXXTEST_SAMPLE_GUI_WAIT() 5 | 6 | #endif // __GUI_WAIT_H 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/HaveEH.tpl: -------------------------------------------------------------------------------- 1 | #define CXXTEST_HAVE_EH 2 | #include 3 | 4 | int main( int argc, char *argv[] ) { 5 | CxxTest::ErrorPrinter tmp; 6 | return CxxTest::Main( tmp, argc, argv ); 7 | } 8 | 9 | // The CxxTest "world" 10 | 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/HaveStd.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This tests CxxTest's `--have-std' option 5 | // 6 | #include "Something.h" 7 | 8 | class HaveStd : public CxxTest::TestSuite 9 | { 10 | public: 11 | void testHaveStd() 12 | { 13 | TS_ASSERT_EQUALS(something(), "Something"); 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /lib/cxxtest/test/HaveStd.tpl: -------------------------------------------------------------------------------- 1 | #define CXXTEST_HAVE_STD 2 | #include 3 | 4 | int main( int argc, char *argv[] ) { 5 | CxxTest::ErrorPrinter tmp; 6 | return CxxTest::Main( tmp, argc, argv ); 7 | } 8 | 9 | // The CxxTest "world" 10 | 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/IncludeTest.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This is a test for the --include option 5 | // 6 | 7 | class IncludesTest : public CxxTest::TestSuite 8 | { 9 | public: 10 | void testTraits() 11 | { 12 | TS_WARN((void *)0); 13 | TS_WARN((long *)0); 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Int64.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This tests CxxTest's handling of "__int64" 5 | // 6 | 7 | class Int64 : public CxxTest::TestSuite 8 | { 9 | public: 10 | void testInt64() 11 | { 12 | TS_ASSERT_EQUALS((__int64)1, (__int64)2); 13 | TS_ASSERT_DIFFERS((__int64)3, (__int64)3); 14 | TS_ASSERT_LESS_THAN((__int64)5, (__int64)4); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /lib/cxxtest/test/LessThanEquals.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This test suites demonstrated TS_LESS_THAN_EQUALS 5 | // and how it fails. 6 | // 7 | 8 | class LessThanEquals : public CxxTest::TestSuite 9 | { 10 | public: 11 | void testLessThanEquals() 12 | { 13 | TS_ASSERT_LESS_THAN_EQUALS(1, 2); 14 | TS_ASSERT_LESS_THAN_EQUALS(1, 1); 15 | 16 | TS_ASSERT_LESS_THAN_EQUALS(1, 0); 17 | TSM_ASSERT_LESS_THAN_EQUALS("1 <=? 0", 1, 0); 18 | 19 | ETS_ASSERT_LESS_THAN(1, 0); 20 | ETSM_ASSERT_LESS_THAN_EQUALS("1 <=? 0", 1, 0); 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /lib/cxxtest/test/LongLong.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This tests CxxTest's handling of "long long" 5 | // 6 | 7 | class LongLongTest : public CxxTest::TestSuite 8 | { 9 | public: 10 | void testLongLong() 11 | { 12 | TS_ASSERT_EQUALS((long long)1, (long long)2); 13 | TS_ASSERT_DIFFERS((long long)3, (long long)3); 14 | TS_ASSERT_LESS_THAN((long long)5, (long long)4); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /lib/cxxtest/test/LongTraits.h: -------------------------------------------------------------------------------- 1 | // 2 | // This include file is used to test the --include option 3 | // 4 | 5 | #include 6 | 7 | namespace CxxTest 8 | { 9 | CXXTEST_TEMPLATE_INSTANTIATION 10 | class ValueTraits 11 | { 12 | public: 13 | ValueTraits(long *) {} 14 | const char *asString() { return "(long *)"; } 15 | }; 16 | } 17 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Some convenient ways of running the self tests 3 | # 4 | 5 | all: 6 | lpython test_cxxtest.py 7 | 8 | clean: 9 | rm -f *p[ly].out *px *px.out *build.log *root.cpp parsetab.py *.gcno *.gcda ../cxxtest/*.gcno ../cxxtest/*.gcda ../sample/*.gcno ../sample/*.gcda Test*.cpp *.gcov *.pre rm Samples.txt 10 | rm -Rf *.dSYM 11 | 12 | -------------------------------------------------------------------------------- /lib/cxxtest/test/MaxDump.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXXTEST_MAX_DUMP_SIZE is the maximum number of bytes to dump in TS_ASSERT_SAME_DATA 3 | // 4 | 5 | #define CXXTEST_MAX_DUMP_SIZE 20 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/NoEh.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class NoEh : public CxxTest::TestSuite 4 | { 5 | public: 6 | void testCxxTestCanCompileWithoutExceptionHandling() 7 | { 8 | TS_ASSERT_EQUALS(1, 2); 9 | TS_ASSERT_EQUALS(2, 3); 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Part1.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This test suite is used to test the root/part functionality of CxxTest. 5 | // 6 | 7 | class Part1 : public CxxTest::TestSuite 8 | { 9 | public: 10 | void testSomething() 11 | { 12 | TS_ASSERT_THROWS_NOTHING(throwNothing()); 13 | } 14 | 15 | void throwNothing() 16 | { 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Part2.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // 4 | // This test suite is used to test the root/part functionality of CxxTest. 5 | // 6 | 7 | class Part2 : public CxxTest::TestSuite 8 | { 9 | public: 10 | void testSomething() 11 | { 12 | TS_ASSERT_THROWS_NOTHING(throwNothing()); 13 | } 14 | 15 | void throwNothing() 16 | { 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /lib/cxxtest/test/Something.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | inline std::string something() { return "something"; } 4 | -------------------------------------------------------------------------------- /lib/cxxtest/test/TearDownWorldFails.h: -------------------------------------------------------------------------------- 1 | // 2 | // This file tests what happens when GlobalFixture::tearDownWorld() fails 3 | // 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | class Fixture : public CxxTest::GlobalFixture 10 | { 11 | public: 12 | bool tearDownWorld() { return false; } 13 | }; 14 | 15 | // 16 | // We can rely on this file being included exactly once 17 | // and declare this global variable in the header file. 18 | // 19 | static Fixture fixture; 20 | 21 | class Suite : public CxxTest::TestSuite 22 | { 23 | public: 24 | void testOne() {} 25 | }; 26 | -------------------------------------------------------------------------------- /lib/cxxtest/test/TearDownWorldThrows.h: -------------------------------------------------------------------------------- 1 | // 2 | // This file tests what happens when GlobalFixture::tearDownWorld() throws 3 | // 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | class Fixture : public CxxTest::GlobalFixture 10 | { 11 | public: 12 | bool tearDownWorld() { throw this; } 13 | }; 14 | 15 | // 16 | // We can rely on this file being included exactly once 17 | // and declare this global variable in the header file. 18 | // 19 | static Fixture fixture; 20 | 21 | class Suite : public CxxTest::TestSuite 22 | { 23 | public: 24 | void testOne() {} 25 | }; 26 | -------------------------------------------------------------------------------- /lib/cxxtest/test/ThrowNoStd.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class ThrowNoStd : public CxxTest::TestSuite 4 | { 5 | public: 6 | void testThrowNoStd() 7 | { 8 | TS_ASSERT_THROWS( { throw 1; }, int); 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/ThrowNoStd.tpl: -------------------------------------------------------------------------------- 1 | #define CXXTEST_ABORT_TEST_ON_FAIL 2 | #include 3 | 4 | int main() 5 | { 6 | return CxxTest::ErrorPrinter().run(); 7 | } 8 | 9 | // The CxxTest "world" 10 | 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/UserTraits.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | // See UserTraits.h 3 | 4 | #define CXXTEST_USER_VALUE_TRAITS 5 | #include 6 | 7 | int main() 8 | { 9 | return CxxTest::ErrorPrinter().run(); 10 | } 11 | 12 | // The CxxTest "world" 13 | 14 | 15 | 16 | // 17 | // Local Variables: 18 | // compile-command: "perl test.pl" 19 | // End: 20 | // 21 | -------------------------------------------------------------------------------- /lib/cxxtest/test/VoidTraits.h: -------------------------------------------------------------------------------- 1 | // 2 | // This include file is used to test the --include option 3 | // 4 | 5 | #ifdef CXXTEST_RUNNING 6 | 7 | #include 8 | 9 | namespace CxxTest 10 | { 11 | CXXTEST_TEMPLATE_INSTANTIATION 12 | class ValueTraits 13 | { 14 | public: 15 | ValueTraits(void *) {} 16 | const char *asString(void) { return "(void *)"; } 17 | }; 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /lib/cxxtest/test/WideCharTest.h: -------------------------------------------------------------------------------- 1 | #define CXXTEST_HAVE_STD 2 | #include 3 | #include 4 | 5 | // 6 | // This test suite tests CxxTest's conversion of wchar_t-related values to strings 7 | // 8 | 9 | class WideCharTest : public CxxTest::TestSuite 10 | { 11 | public: 12 | void testWideStringTraits() 13 | { 14 | TS_FAIL(std::basic_string(L"std::wstring is displayed with L\"\"")); 15 | wchar_t array[] = { (wchar_t)0x1234, (wchar_t)0x5678 }; 16 | TS_FAIL(std::basic_string(array, 2)); 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /lib/cxxtest/test/__init__.py: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------- 2 | # CxxTest: A lightweight C++ unit testing library. 3 | # Copyright (c) 2008 Sandia Corporation. 4 | # This software is distributed under the LGPL License v3 5 | # For more information, see the COPYING file in the top CxxTest directory. 6 | # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 7 | # the U.S. Government retains certain rights in this software. 8 | #------------------------------------------------------------------------- 9 | 10 | # Dummy __init__ file for nosetests 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/activate.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | # include 3 | # include 4 | 5 | int main() 6 | { 7 | if ( !CxxTest::leaveOnly( "SimpleTest", "testTheWorldIsCrazy" ) ) { 8 | fprintf( stderr, "Couldn't find SimpleTest::testTheWorldIsCrazy()!?\n" ); 9 | return -1; 10 | } 11 | 12 | CxxTest::activateAllTests(); 13 | return CxxTest::StdioPrinter().run(); 14 | } 15 | 16 | 17 | // The CxxTest "world" 18 | 19 | 20 | -------------------------------------------------------------------------------- /lib/cxxtest/test/anything.cpp: -------------------------------------------------------------------------------- 1 | // This simple source file is just used to verify that the compiler works 2 | 3 | int main() 4 | { 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/comments.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In Comments::test_Something: 3 | Comments.h:12: Warning: Something 4 | .OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/comments2.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In Comments::test_Something: 3 | Comments2.h:12: Warning: Something 4 | .OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/.cvsignore: -------------------------------------------------------------------------------- 1 | *.cpp *_runner* -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/X11/Xutil.h: -------------------------------------------------------------------------------- 1 | // Fake Xutil.h 2 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qapplication.h: -------------------------------------------------------------------------------- 1 | // fake QApplication 2 | 3 | class QWidget; 4 | 5 | class QApplication 6 | { 7 | public: 8 | QApplication(int &, char **) {} 9 | void exec() {} 10 | void setMainWidget(void *) {} 11 | void processEvents() {} 12 | static QWidget *desktop() { return 0; } 13 | void *activeWindow() { return 0; } 14 | }; 15 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qglobal.h: -------------------------------------------------------------------------------- 1 | // fake qglobal.h 2 | #define QT_VERSION 0x030000 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qlabel.h: -------------------------------------------------------------------------------- 1 | // fake QLabel 2 | #include 3 | #include 4 | 5 | class QLabel 6 | { 7 | public: 8 | QLabel(void *) {} 9 | void setText(const QString &) {} 10 | }; 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qlayout.h: -------------------------------------------------------------------------------- 1 | // fake qlayout.h 2 | 3 | class QVBoxLayout 4 | { 5 | public: 6 | QVBoxLayout(void *) {} 7 | void addWidget(void *) {} 8 | }; 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qmessagebox.h: -------------------------------------------------------------------------------- 1 | // fake qmessagebox.h 2 | 3 | class QMessageBox 4 | { 5 | public: 6 | enum Icon { Information, Warning, Critical }; 7 | static void *standardIcon(Icon) { return 0; } 8 | }; 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qpixmap.h: -------------------------------------------------------------------------------- 1 | // fake qpixmap.h 2 | 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qprogressbar.h: -------------------------------------------------------------------------------- 1 | // fake qprogressbar.h 2 | 3 | class QColorGroup 4 | { 5 | public: 6 | enum { Highlight }; 7 | }; 8 | 9 | class QColor 10 | { 11 | public: 12 | QColor(int, int, int) {} 13 | }; 14 | 15 | class QPalette 16 | { 17 | public: 18 | void setColor(int, const QColor &) {} 19 | }; 20 | 21 | class QProgressBar 22 | { 23 | public: 24 | QProgressBar(int, void *) {} 25 | void setProgress(int) {} 26 | int progress() { return 0; } 27 | QPalette palette() { return QPalette(); } 28 | void setPalette(const QPalette &) {} 29 | }; 30 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qstatusbar.h: -------------------------------------------------------------------------------- 1 | // fake qstatusbar.h 2 | 3 | class QStatusBar 4 | { 5 | public: 6 | QStatusBar(void *) {} 7 | void setProgress() {} 8 | void addWidget(void *, int) {} 9 | void removeWidget(void *) {} 10 | }; 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qstring.h: -------------------------------------------------------------------------------- 1 | // fake qstring.h 2 | #ifndef __FAKE__QSTRING_H 3 | #define __FAKE__QSTRING_H 4 | 5 | class QString 6 | { 7 | public: 8 | QString() {} 9 | QString(const char *) {} 10 | bool operator==(const QString &) { return false; } 11 | 12 | static QString number(int) { return QString(); } 13 | }; 14 | 15 | inline QString operator+(const QString &, const QString &) { return QString(); } 16 | 17 | #endif // __FAKE__QSTRING_H 18 | -------------------------------------------------------------------------------- /lib/cxxtest/test/fake/qwidget.h: -------------------------------------------------------------------------------- 1 | // fake qwidget.h 2 | #ifndef __FAKE__QWIDGET_H 3 | #define __FAKE__QWIDGET_H 4 | 5 | class QString; 6 | 7 | class QWidget 8 | { 9 | public: 10 | bool isMinimized() { return false; } 11 | void close(bool) {} 12 | void showMinimized() {} 13 | void showNormal() {} 14 | void setCaption(const QString &) {} 15 | void setIcon(void *) {} 16 | int x() { return 0; } 17 | int y() { return 0; } 18 | int width() { return 0; } 19 | int height() { return 0; } 20 | void setGeometry(int, int, int, int) {} 21 | }; 22 | 23 | #endif // __FAKE__QWIDGET_H 24 | -------------------------------------------------------------------------------- /lib/cxxtest/test/gfsuf.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In Suite::testOne: 3 | GfSetUpFails.h:24: Error: Test failed: Error in GlobalFixture::setUp() 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | Error level = 1 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/gfsut.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In Suite::testOne: 3 | GfSetUpThrows.h:24: Error: Test failed: Error in GlobalFixture::setUp() 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | Error level = 1 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/gftdf.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests) 2 | In Suite::testOne: 3 | GfTearDownFails.h:24: Error: Test failed: Error in GlobalFixture::tearDown() 4 | In Suite::testTwo: 5 | GfTearDownFails.h:25: Warning: Testing should go on! 6 | GfTearDownFails.h:25: Error: Test failed: Error in GlobalFixture::tearDown() 7 | Failed 2 and Skipped 0 of 2 tests 8 | Success rate: 0% 9 | Error level = 2 10 | -------------------------------------------------------------------------------- /lib/cxxtest/test/gftdt.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests) 2 | In Suite::testOne: 3 | GfTearDownThrows.h:24: Error: Test failed: Error in GlobalFixture::tearDown() 4 | In Suite::testTwo: 5 | GfTearDownThrows.h:25: Warning: Testing should go on! 6 | GfTearDownThrows.h:25: Error: Test failed: Error in GlobalFixture::tearDown() 7 | Failed 2 and Skipped 0 of 2 tests 8 | Success rate: 0% 9 | Error level = 2 10 | -------------------------------------------------------------------------------- /lib/cxxtest/test/gfxs.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (6 tests)......OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/good.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (18 tests)..................OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/include.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In IncludesTest::testTraits: 3 | IncludeTest.h:12: Warning: (void *) 4 | IncludeTest.h:13: Warning: (long *) 5 | .OK! 6 | Error level = 0 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/infinite.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (3 tests) 2 | In TestNonFinite::testNaN: 3 | TestNonFinite.h:18: Error: Expected (nan == nan), found (nan != nan) 4 | TestNonFinite.h:19: Error: Expected (nan == zero), found (nan != 0.0000) 5 | In TestNonFinite::testPlusInf: 6 | TestNonFinite.h:25: Error: Expected (3.0 == plus_inf), found (3.0000 != inf) 7 | In TestNonFinite::testMinusInf: 8 | TestNonFinite.h:31: Error: Expected (1.0 / 3.0 == minus_inf), found (0.3333 != -inf) 9 | Failed 3 and Skipped 0 of 3 tests 10 | Success rate: 0% 11 | Error level = 3 12 | -------------------------------------------------------------------------------- /lib/cxxtest/test/int64.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // This program is used to check if the compiler supports __int64 3 | // 4 | int main() 5 | { 6 | __int64 ll = 0; 7 | return (int)ll; 8 | } 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/int64.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In Int64::testInt64: 3 | Int64.h:12: Error: Expected ((__int64)1 == (__int64)2), found (1 != 2) 4 | Int64.h:13: Error: Expected ((__int64)3 != (__int64)3), found (3) 5 | Int64.h:14: Error: Expected ((__int64)5 < (__int64)4), found (5 >= 4) 6 | Failed 1 of 1 test 7 | Success rate: 0% 8 | Error level = 1 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/longlong.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // This program is used to check if the compiler supports "long long" 3 | // 4 | int main() 5 | { 6 | long long ll = 0; 7 | return (int)ll; 8 | } 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/longlong.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In LongLongTest::testLongLong: 3 | LongLong.h:12: Error: Expected ((long long)1 == (long long)2), found (1 != 2) 4 | LongLong.h:13: Error: Expected ((long long)3 != (long long)3), found (3) 5 | LongLong.h:14: Error: Expected ((long long)5 < (long long)4), found (5 >= 4) 6 | Failed 1 and Skipped 0 of 1 test 7 | Success rate: 0% 8 | Error level = 1 9 | -------------------------------------------------------------------------------- /lib/cxxtest/test/namespace.out: -------------------------------------------------------------------------------- 1 | Number of suites: 2 2 | Number of tests: 8 3 | Number of failed tests: 7 4 | Number of skipped tests: 0 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/parts.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)..OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/preamble.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | #define CXXTEST_ABORT_TEST_ON_FAIL 4 | 5 | // CxxTest definitions and headers 6 | 7 | 8 | // Make sure this worked 9 | #ifndef TS_ASSERT 10 | # error The preamble does not work! 11 | #endif 12 | 13 | #include 14 | 15 | int main() 16 | { 17 | CxxTest::StdioPrinter runner; 18 | 19 | TS_FAIL( "This will not be displayed" ); 20 | int result = runner.run() + runner.run(); 21 | TS_FAIL( "This will not be displayed" ); 22 | 23 | return result; 24 | } 25 | 26 | 27 | // The CxxTest "world" 28 | 29 | 30 | -------------------------------------------------------------------------------- /lib/cxxtest/test/runner.out: -------------------------------------------------------------------------------- 1 | Error level = 12 2 | -------------------------------------------------------------------------------- /lib/cxxtest/test/simple_inheritance.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (4 tests)....OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/simple_inheritance2.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)..OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/std.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In HaveStd::testHaveStd: 3 | HaveStd.h:13: Error: Expected (something() == "Something"), found ("something" != Something) 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | Error level = 1 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/stpltpl.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _CXXTEST_PARTIAL_TEMPLATE_SPECIALIZATION 4 | int main() { return 0; } 5 | #endif // !_CXXTEST_PARTIAL_TEMPLATE_SPECIALIZATION 6 | 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/suite_test.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In SimpleTest::testAddition: 3 | SimpleTest.h:23: Error: Expected (2 + 2 == 5), found (4 != 5) 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | Error level = 1 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/suwe.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests) 2 | In ::: 3 | SetUpWorldError.h:12: Error: Test failed: THIS IS BAD 4 | RealDescriptions.cpp:5: Warning: Error setting up world 5 | OK! 6 | Error level = 0 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/suwf.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In ::: 3 | RealDescriptions.cpp:5: Warning: Error setting up world 4 | OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/suwt.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In ::: 3 | RealDescriptions.cpp:5: Warning: Error setting up world 4 | OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/tdwf.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test). 2 | In ::: 3 | RealDescriptions.cpp:5: Warning: Error tearing down world 4 | OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/tdwt.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test). 2 | In ::: 3 | RealDescriptions.cpp:5: Warning: Error tearing down world 4 | OK! 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/cxxtest/test/template.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (2 tests)..OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/throw.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test).OK! 2 | Error level = 0 3 | -------------------------------------------------------------------------------- /lib/cxxtest/test/tpltpl.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef _CXXTEST_PARTIAL_TEMPLATE_SPECIALIZATION 4 | template class X {} x; 5 | template class Pair {} p; 6 | template class X< Pair > {} xp; 7 | 8 | int main() { return 0; } 9 | #endif // !_CXXTEST_PARTIAL_TEMPLATE_SPECIALIZATION 10 | 11 | -------------------------------------------------------------------------------- /lib/cxxtest/test/unit/SConstruct: -------------------------------------------------------------------------------- 1 | CxxTestBuilder_path = '../../build_tools/SCons/cxxtest.py' 2 | CxxTest_dir = '../..' 3 | 4 | # First a little python magic to pull in CxxTestBuilder 5 | import imp 6 | cxxtest = imp.load_source('cxxtest', CxxTestBuilder_path) 7 | env = Environment() 8 | cxxtest.generate(env, CXXTEST_INSTALL_DIR=CxxTest_dir) 9 | 10 | for test in env.Glob('*.t.h'): 11 | env.CxxTest(test) 12 | 13 | -------------------------------------------------------------------------------- /lib/cxxtest/test/user.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In TestUserTraits::testUserTraits: 3 | UserTraits.h:34: Error: Test failed: 0x7F 4 | Failed 1 and Skipped 0 of 1 test 5 | Success rate: 0% 6 | Error level = 1 7 | -------------------------------------------------------------------------------- /lib/cxxtest/test/wchar.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // This program is used to check if the compiler supports basic_string 3 | // 4 | #include 5 | 6 | int main() 7 | { 8 | std::basic_string s(L"s"); 9 | return 0; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /lib/cxxtest/test/wchar.out: -------------------------------------------------------------------------------- 1 | Running cxxtest tests (1 test) 2 | In WideCharTest::testWideStringTraits: 3 | WideCharTest.h:14: Error: Test failed: L"std::wstring is displayed with L\"\"" 4 | WideCharTest.h:16: Error: Test failed: L"\x1234\x5678" 5 | Failed 1 and Skipped 0 of 1 test 6 | Success rate: 0% 7 | Error level = 1 8 | -------------------------------------------------------------------------------- /lib/cxxtest/test/wildcard.out: -------------------------------------------------------------------------------- 1 | Number of suites: 8 2 | Number of tests: 16 3 | Number of failed tests: 12 4 | Number of skipped tests: 1 5 | Error level = 0 6 | -------------------------------------------------------------------------------- /lib/libflatarray/AUTHORS: -------------------------------------------------------------------------------- 1 | Copyright: 2 | 3 | Year(s) Name Affiliation Email 4 | --------- -------------------- ----------- --------------------------------- 5 | 2012-2015 Andreas Schäfer FAU gentryx@gmx.de 6 | 2014-2015 Kurt Kanzenbach FAU kurt@kmk-computers.de 7 | 2015-2015 Di Xiao (Larry) SJTU xiaodi@sjtu.edu.cn 8 | 9 | Affiliation Abbreviations: 10 | -------------------------- 11 | 12 | FAU = Friedrich-Alexander-Universität Erlangen-Nürnberg 13 | SJTU = Shanghai Jiao Tong University 14 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package(OpenMP) 2 | 3 | if(NOT MSVC) 4 | add_subdirectory(jacobi) 5 | add_subdirectory(gauss) 6 | endif() 7 | add_subdirectory(lbm) 8 | add_subdirectory(performance_tests) 9 | add_subdirectory(smoothed_particle_hydrodynamics) 10 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/gauss/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(gauss main.cpp filter_c99.c) 2 | target_link_libraries(gauss ${libflatarray_LIBS}) 3 | 4 | if(OPENMP_FOUND) 5 | if(CMAKE_VERSION VERSION_GREATER 2.8.11) 6 | target_compile_options(gauss PRIVATE ${OpenMP_CXX_FLAGS}) 7 | endif() 8 | set_target_properties(gauss PROPERTIES LINK_FLAGS ${OpenMP_CXX_FLAGS}) 9 | endif() 10 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/jacobi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(jacobi main.cpp update_c99.c) 2 | target_link_libraries(jacobi ${libflatarray_LIBS}) 3 | 4 | if(OPENMP_FOUND) 5 | if(CMAKE_VERSION VERSION_GREATER 2.8.11) 6 | target_compile_options(jacobi PRIVATE ${OpenMP_CXX_FLAGS}) 7 | endif() 8 | set_target_properties(jacobi PROPERTIES LINK_FLAGS ${OpenMP_CXX_FLAGS}) 9 | endif() 10 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/lbm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(WITH_CUDA) 2 | lfa_cuda_add_executable(lbm2 main.cu flatarray_implementation_0.cu flatarray_implementation_1.cu flatarray_implementation_2.cu flatarray_implementation_3.cu flatarray_implementation_4.cu flatarray_implementation_5.cu flatarray_implementation_6.cu flatarray_implementation_7.cu flatarray_implementation_8.cu flatarray_implementation_9.cu flatarray_implementation_10.cu) 3 | endif() 4 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/performance_tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(performance_tests main.cpp) 2 | target_link_libraries(performance_tests ${libflatarray_LIBS}) 3 | -------------------------------------------------------------------------------- /lib/libflatarray/examples/smoothed_particle_hydrodynamics/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(WITH_SILO AND WITH_CPP14) 2 | add_executable(sph main.cpp kernels.c) 3 | include_directories(${Silo_INCLUDE_DIR}) 4 | target_link_libraries(sph ${Silo_LIBRARY}) 5 | endif() 6 | -------------------------------------------------------------------------------- /lib/libflatarray/include/libflatarray/short_vec_base.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016 Andreas Schäfer 3 | * 4 | * Distributed under the Boost Software License, Version 1.0. (See accompanying 5 | * file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef FLAT_ARRAY_SHORT_VEC_BASE_HPP 9 | #define FLAT_ARRAY_SHORT_VEC_BASE_HPP 10 | 11 | namespace LibFlatArray { 12 | 13 | template 14 | class short_vec_base 15 | { 16 | public: 17 | static inline 18 | std::size_t size() 19 | { 20 | return ARITY; 21 | } 22 | 23 | }; 24 | 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /lib/scotch.patch: -------------------------------------------------------------------------------- 1 | diff -ur scotch_6.0.4_old/src/libscotch/Makefile scotch_6.0.4/src/libscotch/Makefile 2 | --- scotch_6.0.4_old/src/libscotch/Makefile 2016-12-17 04:48:07.675570422 -0600 3 | +++ scotch_6.0.4/src/libscotch/Makefile 2016-12-17 04:49:00.670771037 -0600 4 | @@ -60,7 +60,7 @@ 5 | libscotcherrexit$(LIB) 6 | 7 | ptscotch : scotch 8 | - $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" \ 9 | + $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" CCD="$(CCP)" \ 10 | ptscotch.h \ 11 | ptscotchf.h \ 12 | libptscotch$(LIB) \ 13 | -------------------------------------------------------------------------------- /libgeodecomp_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/libgeodecomp_icon.png -------------------------------------------------------------------------------- /src/examples/adaptivemeshrefinement/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | 6 | if(WITH_SILO) 7 | add_executable(libgeodecomp_examples_adaptivemeshrefinement ${SOURCES}) 8 | set_target_properties(libgeodecomp_examples_adaptivemeshrefinement PROPERTIES OUTPUT_NAME adaptivemeshrefinement) 9 | target_link_libraries(libgeodecomp_examples_adaptivemeshrefinement ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() 11 | -------------------------------------------------------------------------------- /src/examples/ants/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | add_executable(libgeodecomp_examples_ants ${SOURCES}) 6 | set_target_properties(libgeodecomp_examples_ants PROPERTIES OUTPUT_NAME ants) 7 | target_link_libraries(libgeodecomp_examples_ants ${LOCAL_LIBGEODECOMP_LINK_LIB}) 8 | -------------------------------------------------------------------------------- /src/examples/bouncingspheres/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | add_executable(libgeodecomp_examples_bouncingspheres ${SOURCES}) 6 | set_target_properties(libgeodecomp_examples_bouncingspheres PROPERTIES OUTPUT_NAME bouncingspheres) 7 | target_link_libraries(libgeodecomp_examples_bouncingspheres ${LOCAL_LIBGEODECOMP_LINK_LIB}) 8 | -------------------------------------------------------------------------------- /src/examples/cars/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI AND WITH_VISIT) 6 | add_executable(libgeodecomp_examples_cars ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_cars PROPERTIES OUTPUT_NAME cars) 8 | target_link_libraries(libgeodecomp_examples_cars ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/chromatography/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_SILO) 6 | add_executable(libgeodecomp_examples_chromatography ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_chromatography PROPERTIES OUTPUT_NAME chromatography) 8 | target_link_libraries(libgeodecomp_examples_chromatography ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif(WITH_SILO) 10 | -------------------------------------------------------------------------------- /src/examples/circle/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | add_executable(libgeodecomp_examples_circle ${SOURCES}) 6 | set_target_properties(libgeodecomp_examples_circle PROPERTIES OUTPUT_NAME circle) 7 | target_link_libraries(libgeodecomp_examples_circle ${LOCAL_LIBGEODECOMP_LINK_LIB}) 8 | -------------------------------------------------------------------------------- /src/examples/gameoflife/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_gameoflife ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_gameoflife PROPERTIES OUTPUT_NAME gameoflife) 8 | target_link_libraries(libgeodecomp_examples_gameoflife ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif(WITH_MPI) 10 | -------------------------------------------------------------------------------- /src/examples/gameoflife3d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI AND WITH_VISIT AND WITH_THREADS AND WITH_BOOST_ASIO) 6 | add_executable(libgeodecomp_examples_gameoflife3d ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_gameoflife3d PROPERTIES OUTPUT_NAME gameoflife3d) 8 | target_link_libraries(libgeodecomp_examples_gameoflife3d ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/gameoflife_adcirc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/") 3 | include(auto.cmake) 4 | 5 | if(WITH_HPX AND WITH_FORTRAN AND WITH_SILO) 6 | add_executable(libgeodecomp_examples_gameoflife_adcirc ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_gameoflife_adcirc PROPERTIES OUTPUT_NAME gameoflife_adcirc) 8 | target_link_libraries(libgeodecomp_examples_gameoflife_adcirc ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/gameoflife_adcirc/hull.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_EXAMPLES_GAMEOFLIFE_ADCIRC_HULL_H 2 | #define LIBGEODECOMP_EXAMPLES_GAMEOFLIFE_ADCIRC_HULL_H 3 | 4 | #include 5 | #include 6 | 7 | using namespace LibGeoDecomp; 8 | 9 | std::vector > convexHull(std::vector > *points); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/examples/gameoflife_hpx/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/") 3 | include(auto.cmake) 4 | 5 | if(WITH_HPX) 6 | add_executable(libgeodecomp_examples_gameoflife_hpx ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_gameoflife_hpx PROPERTIES OUTPUT_NAME gameoflife_hpx) 8 | target_link_libraries(libgeodecomp_examples_gameoflife_hpx ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/gameoflife_live/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_VISIT) 6 | add_executable(libgeodecomp_examples_gameoflife_live ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_gameoflife_live PROPERTIES OUTPUT_NAME gameoflife_live) 8 | target_link_libraries(libgeodecomp_examples_gameoflife_live ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/globalreductions/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_globalreductions ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_globalreductions PROPERTIES OUTPUT_NAME globalreductions) 8 | target_link_libraries(libgeodecomp_examples_globalreductions ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/hardwarefluke/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | add_executable(libgeodecomp_examples_hardwarefluke ${SOURCES}) 6 | set_target_properties(libgeodecomp_examples_hardwarefluke PROPERTIES OUTPUT_NAME hardwarefluke) 7 | target_link_libraries(libgeodecomp_examples_hardwarefluke ${LOCAL_LIBGEODECOMP_LINK_LIB}) 8 | -------------------------------------------------------------------------------- /src/examples/hardwarefluke/pic9_evil_smiley.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/src/examples/hardwarefluke/pic9_evil_smiley.ppm -------------------------------------------------------------------------------- /src/examples/jacobi2d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | add_executable(libgeodecomp_examples_jacobi2d ${SOURCES}) 6 | set_target_properties(libgeodecomp_examples_jacobi2d PROPERTIES OUTPUT_NAME jacobi2d) 7 | target_link_libraries(libgeodecomp_examples_jacobi2d ${LOCAL_LIBGEODECOMP_LINK_LIB}) 8 | -------------------------------------------------------------------------------- /src/examples/jacobi3d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | if(WITH_INTRINSICS) 7 | add_executable(libgeodecomp_examples_jacobi3d ${SOURCES}) 8 | set_target_properties(libgeodecomp_examples_jacobi3d PROPERTIES OUTPUT_NAME jacobi3d) 9 | target_link_libraries(libgeodecomp_examples_jacobi3d ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() 11 | endif() 12 | -------------------------------------------------------------------------------- /src/examples/jacobi3dupdateline/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI AND WITH_INTRINSICS) 6 | add_executable(libgeodecomp_examples_jacobi3dupdateline ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_jacobi3dupdateline PROPERTIES OUTPUT_NAME jacobi3dupdateline) 8 | target_link_libraries(libgeodecomp_examples_jacobi3dupdateline ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/jacobi3dvectorized/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_jacobi3dvectorized ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_jacobi3dvectorized PROPERTIES OUTPUT_NAME jacobi3dvectorized) 8 | target_link_libraries(libgeodecomp_examples_jacobi3dvectorized ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/latticeboltzmann/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_latticeboltzmann ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_latticeboltzmann PROPERTIES OUTPUT_NAME latticeboltzmann) 8 | target_link_libraries(libgeodecomp_examples_latticeboltzmann ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif(WITH_MPI) 10 | -------------------------------------------------------------------------------- /src/examples/latticegas/simparams.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | SimParams simParamsHost; 4 | -------------------------------------------------------------------------------- /src/examples/redblackgaussseidel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_redblackgaussseidel ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_redblackgaussseidel PROPERTIES OUTPUT_NAME redblackgaussseidel) 8 | target_link_libraries(libgeodecomp_examples_redblackgaussseidel ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/spmvm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_CPP14) 6 | add_executable(libgeodecomp_examples_spmvm ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_spmvm PROPERTIES OUTPUT_NAME spmvm) 8 | target_link_libraries(libgeodecomp_examples_spmvm ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/spmvmvectorized/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_CPP14) 6 | add_executable(libgeodecomp_examples_spmvmvectorized ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_spmvmvectorized PROPERTIES OUTPUT_NAME spmvmvectorized) 8 | target_link_libraries(libgeodecomp_examples_spmvmvectorized ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/voronoi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_SILO) 6 | add_executable(libgeodecomp_examples_voronoi ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_voronoi PROPERTIES OUTPUT_NAME voronoi) 8 | target_link_libraries(libgeodecomp_examples_voronoi ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/examples/wing/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "") 3 | include(auto.cmake) 4 | 5 | if(WITH_MPI) 6 | add_executable(libgeodecomp_examples_wing ${SOURCES}) 7 | set_target_properties(libgeodecomp_examples_wing PROPERTIES OUTPUT_NAME wing) 8 | target_link_libraries(libgeodecomp_examples_wing ${LOCAL_LIBGEODECOMP_LINK_LIB} geodecomp) 9 | endif(WITH_MPI) 10 | -------------------------------------------------------------------------------- /src/libgeodecomp/communication/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/parallel_mpi_1) 3 | add_subdirectory(test/parallel_mpi_2) 4 | add_subdirectory(test/parallel_mpi_4) 5 | add_subdirectory(test/parallel_hpx_4) 6 | -------------------------------------------------------------------------------- /src/libgeodecomp/communication/test/parallel_hpx_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/communication/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/communication/test/parallel_mpi_2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/communication/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | add_subdirectory(partitions) 4 | add_subdirectory(test/unit) 5 | add_subdirectory(test/parallel_hpx_1) 6 | add_subdirectory(test/parallel_mpi_4) 7 | add_subdirectory(test/parallel_mpi_9) 8 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/partitions/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/unit) 3 | add_subdirectory(test/parallel_mpi_1) 4 | add_subdirectory(test/parallel_mpi_2) 5 | add_subdirectory(test/parallel_mpi_4) 6 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/partitions/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/partitions/test/parallel_mpi_2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/partitions/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/partitions/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/test/parallel_hpx_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/test/parallel_mpi_9/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/geometry/test/unit/fixedcoordtest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace LibGeoDecomp; 5 | 6 | namespace LibGeoDecomp { 7 | 8 | class FixedCoordTest : public CxxTest::TestSuite 9 | { 10 | public: 11 | 12 | void testBasic() 13 | { 14 | TS_ASSERT_EQUALS(3, sum(FixedCoord<1, 2>())); 15 | TS_ASSERT_EQUALS(9, sum(FixedCoord<4, 2, 3>())); 16 | } 17 | 18 | private: 19 | template 20 | int sum(FixedCoord) 21 | { 22 | return X + Y + Z; 23 | } 24 | }; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/parallel_mpi_1) 3 | add_subdirectory(test/parallel_mpi_2) 4 | add_subdirectory(test/unit) 5 | add_subdirectory(remotesteerer) 6 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/mockinitializer.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace LibGeoDecomp { 4 | 5 | std::string MockInitializer::events; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/remotesteerer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | if (WITH_THREADS AND WITH_BOOST_ASIO) 4 | add_subdirectory(test/parallel_mpi_1) 5 | add_subdirectory(test/parallel_mpi_2) 6 | add_subdirectory(test/parallel_mpi_4) 7 | add_subdirectory(test/unit) 8 | endif() 9 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/remotesteerer/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/remotesteerer/test/parallel_mpi_2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/remotesteerer/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/remotesteerer/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/test/parallel_mpi_2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/io/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/loadbalancer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/unit) 3 | -------------------------------------------------------------------------------- /src/libgeodecomp/loadbalancer/noopbalancer.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_LOADBALANCER_NOOPBALANCER_H 2 | #define LIBGEODECOMP_LOADBALANCER_NOOPBALANCER_H 3 | 4 | #include 5 | 6 | namespace LibGeoDecomp { 7 | 8 | /** 9 | * This class is for testing purposes and will not not modify the 10 | * given work loads. 11 | */ 12 | class HPX_COMPONENT_EXPORT NoOpBalancer : public LoadBalancer 13 | { 14 | public: 15 | virtual WeightVec balance(const WeightVec& weights, const LoadVec& /* relativeLoads */) 16 | { 17 | return weights; 18 | } 19 | }; 20 | 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/libgeodecomp/loadbalancer/test/parallel_hpx_1/oozebalancertest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace LibGeoDecomp; 5 | 6 | namespace LibGeoDecomp { 7 | 8 | class OozeBalancerTest : public CxxTest::TestSuite 9 | { 10 | public: 11 | }; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/libgeodecomp/loadbalancer/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/loadbalancer/test/unit/noopbalancertest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace LibGeoDecomp; 5 | 6 | namespace LibGeoDecomp { 7 | 8 | class NoOpBalancerTest : public CxxTest::TestSuite 9 | { 10 | public: 11 | 12 | void testEcho() 13 | { 14 | NoOpBalancer b; 15 | NoOpBalancer::WeightVec loads(3); 16 | loads[0] = 47; 17 | loads[1] = 11; 18 | loads[2] = 9; 19 | 20 | TS_ASSERT_EQUALS(loads, b.balance(loads, NoOpBalancer::LoadVec())); 21 | } 22 | }; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/unit) 3 | add_subdirectory(test/parallel_mpi_1) 4 | add_subdirectory(test/parallel_openmp_1) 5 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/color.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace LibGeoDecomp { 4 | 5 | const Color Color::BLACK( 0, 0 , 0); 6 | const Color Color::WHITE( 255, 255, 255); 7 | 8 | const Color Color::RED( 255, 0, 0); 9 | const Color Color::GREEN( 0, 255, 0); 10 | const Color Color::BLUE( 0, 0, 255); 11 | 12 | const Color Color::CYAN( 0, 255, 255); 13 | const Color Color::MAGENTA(255, 0, 255); 14 | const Color Color::YELLOW( 255, 255, 0); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/cudaboostworkaround.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_MISC_CUDABOOSTWORKAROUND_H 2 | #define LIBGEODECOMP_MISC_CUDABOOSTWORKAROUND_H 3 | 4 | // Since CUDA 9.0 __CUDACC_VER__ is no longer supported, but Boost 5 | // prior to 1.65.0 still uses it. We have to redefine the macro before 6 | // Boost gets pulled in, so this header is included in most places 7 | // where HPX is included (which has Boost as a dependency). 8 | #if defined(__CUDACC_VER__) && (__CUDACC_VER_MAJOR__ >= 9) 9 | # undef __CUDACC_VER__ 10 | # define __CUDACC_VER__ (__CUDACC_VER_MAJOR__ * 10000 + __CUDACC_VER_MINOR__ * 100) 11 | #endif 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/math.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_MISC_MATH_H 2 | #define LIBGEODECOMP_MISC_MATH_H 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/stringvec.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_MISC_STRINGVEC_H 2 | #define LIBGEODECOMP_MISC_STRINGVEC_H 3 | 4 | #include 5 | 6 | namespace LibGeoDecomp { 7 | 8 | typedef std::vector StringVec; 9 | 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/tempfile.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_MISC_TEMPFILE_H 2 | #define LIBGEODECOMP_MISC_TEMPFILE_H 3 | 4 | #include 5 | 6 | namespace LibGeoDecomp { 7 | 8 | /** 9 | * Simple wrapper to generate (somewhat) safe filenames for temporary files 10 | */ 11 | class TempFile 12 | { 13 | public: 14 | static std::string serial(const std::string& prefix); 15 | static std::string parallel(const std::string& prefix); 16 | }; 17 | 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/test/parallel_openmp_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/misc/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | add_subdirectory(test/unit) 3 | add_subdirectory(test/parallel_mpi_1) 4 | add_subdirectory(test/parallel_mpi_4) 5 | add_subdirectory(test/parallel_hpx_4_1) 6 | add_subdirectory(test/parallel_openmp_1) 7 | add_subdirectory(test/parallel_openmp_4) 8 | add_subdirectory(nesting) 9 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | add_subdirectory(test/unit) 4 | add_subdirectory(test/parallel_hpx_4) 5 | add_subdirectory(test/parallel_mpi_1) 6 | add_subdirectory(test/parallel_mpi_4) 7 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/eventpoint.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_PARALLELIZATION_NESTING_EVENTPOINT_H 2 | #define LIBGEODECOMP_PARALLELIZATION_NESTING_EVENTPOINT_H 3 | 4 | enum EventPoint {LOAD_BALANCING, END}; 5 | typedef std::set EventSet; 6 | typedef std::map EventMap; 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/test/parallel_hpx_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/test/parallel_mpi_14/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/nesting/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/parallel_hpx_4_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/parallel_mpi_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(../MACHINE_ARCH MATCHES "x86_64") 2 | include(../../../../CMakeModules/CMakeLists.test.txt) 3 | endif() 4 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/parallel_mpi_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/parallel_openmp_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(../MACHINE_ARCH MATCHES "x86_64") 2 | include(../../../../CMakeModules/CMakeLists.test.txt) 3 | endif() 4 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/parallel_openmp_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(../MACHINE_ARCH MATCHES "x86_64") 2 | include(../../../../CMakeModules/CMakeLists.test.txt) 3 | endif() 4 | -------------------------------------------------------------------------------- /src/libgeodecomp/parallelization/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/storage/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | add_subdirectory(test/parallel_mpi_2) 4 | add_subdirectory(test/parallel_openmp_4) 5 | add_subdirectory(test/unit) 6 | -------------------------------------------------------------------------------- /src/libgeodecomp/storage/memorylocation.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_STORAGE_MEMORYLOCATION_H 2 | #define LIBGEODECOMP_STORAGE_MEMORYLOCATION_H 3 | 4 | namespace LibGeoDecomp { 5 | 6 | /** 7 | * Enumeration which allows us to distinguish to which address space a 8 | * given pointer belongs. 9 | */ 10 | class MemoryLocation 11 | { 12 | public: 13 | enum Location {HOST=0, CUDA_DEVICE=1}; 14 | }; 15 | 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/libgeodecomp/storage/test/parallel_mpi_2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/libgeodecomp/storage/test/parallel_openmp_4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(MACHINE_ARCH MATCHES "x86_64") 2 | include(../../../../../CMakeModules/CMakeLists.test.txt) 3 | endif() 4 | -------------------------------------------------------------------------------- /src/libgeodecomp/storage/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(../../../../../CMakeModules/CMakeLists.test.txt) 2 | -------------------------------------------------------------------------------- /src/testbed/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | add_subdirectory(hpxperformancetests) 4 | add_subdirectory(jacobituning) 5 | add_subdirectory(parallelperformancetests) 6 | add_subdirectory(performancetests) 7 | add_subdirectory(reversetimemigration) 8 | add_subdirectory(spmvmtests) 9 | -------------------------------------------------------------------------------- /src/testbed/hpxperformancetests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | set(RELATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/") 3 | include(auto.cmake) 4 | 5 | if(WITH_HPX) 6 | add_executable(libgeodecomp_testbed_hpxperformancetests ${SOURCES}) 7 | set_target_properties(libgeodecomp_testbed_hpxperformancetests PROPERTIES OUTPUT_NAME hpxperformancetests) 8 | target_link_libraries(libgeodecomp_testbed_hpxperformancetests ${LOCAL_LIBGEODECOMP_LINK_LIB}) 9 | endif() 10 | -------------------------------------------------------------------------------- /src/testbed/jacobituning/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | set(RELATIVE_PATH "") 4 | include(auto.cmake) 5 | 6 | if(WITH_CUDA AND WITH_THREADS AND WITH_CPP14) 7 | lfa_cuda_add_executable(libgeodecomp_testbed_jacobituning main.cu) 8 | set_target_properties(libgeodecomp_testbed_jacobituning PROPERTIES OUTPUT_NAME jacobituning) 9 | target_link_libraries(libgeodecomp_testbed_jacobituning ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() 11 | -------------------------------------------------------------------------------- /src/testbed/parallelperformancetests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | set(RELATIVE_PATH "") 4 | include(auto.cmake) 5 | 6 | if(WITH_MPI) 7 | add_executable(libgeodecomp_testbed_parallelperformancetests ${SOURCES}) 8 | set_target_properties(libgeodecomp_testbed_parallelperformancetests PROPERTIES OUTPUT_NAME parallelperformancetests) 9 | target_link_libraries(libgeodecomp_testbed_parallelperformancetests ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() -------------------------------------------------------------------------------- /src/testbed/performancetests/cpubenchmark.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_TESTBED_PERFORMANCETESTS_CPUBENCHMARK_H 2 | #define LIBGEODECOMP_TESTBED_PERFORMANCETESTS_CPUBENCHMARK_H 3 | 4 | #include 5 | 6 | namespace LibGeoDecomp { 7 | 8 | /** 9 | * Base class for all performance tests that run on the CPU (as 10 | * opposed to the GPU). 11 | */ 12 | class CPUBenchmark : public LibFlatArray::cpu_benchmark 13 | {}; 14 | 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/testbed/reversetimemigration/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | set(RELATIVE_PATH "") 4 | include(auto.cmake) 5 | 6 | if(WITH_CUDA AND WITH_MPI) 7 | add_executable(libgeodecomp_testbed_reversetimemigration main.cpp) 8 | set_target_properties(libgeodecomp_testbed_reversetimemigration PROPERTIES OUTPUT_NAME rtm) 9 | target_link_libraries(libgeodecomp_testbed_reversetimemigration ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() 11 | -------------------------------------------------------------------------------- /src/testbed/reversetimemigration/config.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBGEODECOMP_TESTBED_REVERSETIMEMIGRATION_CONFIG_H 2 | #define LIBGEODECOMP_TESTBED_REVERSETIMEMIGRATION_CONFIG_H 3 | 4 | #define DIM_X 1070 5 | #define DIM_Y 256 6 | #define DIM_Z 512 7 | 8 | #define GRID_DIM_X 14 9 | #define GRID_DIM_Y 16 10 | #define BLOCK_DIM_X 64 11 | #define BLOCK_DIM_Y 8 12 | 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /src/testbed/spmvmtests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | lgd_generate_sourcelists("./") 2 | 3 | set(RELATIVE_PATH "") 4 | include(auto.cmake) 5 | 6 | if(WITH_CPP14 AND WITH_INTRINSICS) 7 | add_executable(libgeodecomp_testbed_spmvmtests main.cpp mmio.cpp) 8 | set_target_properties(libgeodecomp_testbed_spmvmtests PROPERTIES OUTPUT_NAME spmvmtests) 9 | target_link_libraries(libgeodecomp_testbed_spmvmtests ${LOCAL_LIBGEODECOMP_LINK_LIB}) 10 | endif() 11 | -------------------------------------------------------------------------------- /src/testbed/spmvmtests/fetch_matrices.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | wget -c http://www.cise.ufl.edu/research/sparse/MM/Fluorem/RM07R.tar.gz 4 | wget -c http://www.cise.ufl.edu/research/sparse/MM/Zaoui/kkt_power.tar.gz 5 | wget -c http://www.cise.ufl.edu/research/sparse/MM/Janna/ML_Geer.tar.gz 6 | wget -c http://www.cise.ufl.edu/research/sparse/MM/Hamrle/Hamrle3.tar.gz 7 | 8 | for i in RM07R.tar.gz kkt_power.tar.gz ML_Geer.tar.gz Hamrle3.tar.gz; do 9 | tar -xf $i 10 | rm -f $i 11 | done 12 | 13 | for i in RM07R kkt_power ML_Geer Hamrle3; do 14 | mv $i/* . 15 | rm -rf $i 16 | done 17 | -------------------------------------------------------------------------------- /tools/buildsystem/rakefile.rb: -------------------------------------------------------------------------------- 1 | task :test => :test_crossplatform do 2 | system "ruby test/acceptance/raketest.rb" 3 | end 4 | 5 | task :test_windows => :test_crossplatform do 6 | system "ruby test/windows/raketest.rb" 7 | end 8 | 9 | task :test_crossplatform do 10 | system "ruby test/crossplatform/raketest.rb" 11 | end 12 | -------------------------------------------------------------------------------- /tools/buildsystem/test/crossplatform/raketest.rb: -------------------------------------------------------------------------------- 1 | require 'test/common' 2 | 3 | class RakeTest < Test::Unit::TestCase 4 | include UtilityFunctions 5 | 6 | @@default_src = "src_crossplatform" 7 | @@conf_args = "--no-typemaps" 8 | 9 | def test_crossplatform 10 | # output = sh(@opts.builddir + "testexe/testexe") 11 | # assert_match(/This is Hell World/, output) 12 | # assert_match(/ping/, output) 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest: -------------------------------------------------------------------------------- 1 | cxxtest-3.10.1-r1/ -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/cxxtest/Root.cpp: -------------------------------------------------------------------------------- 1 | #ifndef __cxxtest__Root_cpp__ 2 | #define __cxxtest__Root_cpp__ 3 | 4 | // 5 | // This file holds the "root" of CxxTest, i.e. 6 | // the parts that must be in a source file file. 7 | // 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | #endif // __cxxtest__Root_cpp__ 19 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/cxxtest/SelfTest.h: -------------------------------------------------------------------------------- 1 | #ifndef __cxxtest_SelfTest_h__ 2 | #define __cxxtest_SelfTest_h__ 3 | 4 | #define CXXTEST_SUITE(name) 5 | #define CXXTEST_CODE(member) 6 | 7 | #endif // __cxxtest_SelfTest_h__ 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/qt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/qt.png -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/qt2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/qt2.png -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/win32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/win32.png -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/x11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentryx/libgeodecomp/21c087e323b4124f18402446ccb3c47ccd6c0070/tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/docs/x11.png -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/aborter.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | // This template file demonstrates the use of CXXTEST_ABORT_TEST_ON_FAIL 3 | // 4 | 5 | #define CXXTEST_HAVE_STD 6 | #define CXXTEST_ABORT_TEST_ON_FAIL 7 | #include 8 | 9 | int main() 10 | { 11 | return CxxTest::ErrorPrinter().run(); 12 | } 13 | 14 | // The CxxTest "world" 15 | 16 | 17 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/Dice.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Dice.h" 3 | 4 | Dice::Dice() 5 | { 6 | T::srand( T::time( 0 ) ); 7 | } 8 | 9 | unsigned Dice::roll() 10 | { 11 | return (T::rand() % 6) + 1; 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/Dice.h: -------------------------------------------------------------------------------- 1 | #ifndef __DICE_H 2 | #define __DICE_H 3 | 4 | class Dice 5 | { 6 | public: 7 | Dice(); 8 | 9 | unsigned roll(); 10 | }; 11 | 12 | #endif // __DICE_H 13 | 14 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/Makefile: -------------------------------------------------------------------------------- 1 | all: roll run 2 | 3 | clean: 4 | rm -f *~ *.o roll test test.cpp 5 | 6 | CXXTEST = ../.. 7 | CCFLAGS = -I. -I$(CXXTEST) 8 | 9 | roll: roll.o Dice.o real_stdlib.o 10 | g++ -o $@ $^ 11 | 12 | run: test 13 | ./test 14 | 15 | test: test.o Dice.o mock_stdlib.o 16 | g++ -o $@ $^ 17 | 18 | .cpp.o: 19 | g++ -c -o $@ $(CCFLAGS) $< 20 | 21 | test.cpp: TestDice.h 22 | $(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $< 23 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/T/stdlib.h: -------------------------------------------------------------------------------- 1 | #ifndef __T__STDLIB_H 2 | #define __T__STDLIB_H 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | CXXTEST_MOCK_VOID_GLOBAL( srand, ( unsigned seed ), ( seed ) ); 10 | CXXTEST_MOCK_GLOBAL( int, rand, ( void ), () ); 11 | CXXTEST_MOCK_GLOBAL( time_t, time, ( time_t *t ), ( t ) ); 12 | 13 | #endif // __T__STDLIB_H 14 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/mock_stdlib.cpp: -------------------------------------------------------------------------------- 1 | #define CXXTEST_MOCK_TEST_SOURCE_FILE 2 | #include 3 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/real_stdlib.cpp: -------------------------------------------------------------------------------- 1 | #define CXXTEST_MOCK_REAL_SOURCE_FILE 2 | #include 3 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/mock/roll.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Dice.h" 3 | 4 | int main() 5 | { 6 | Dice dice; 7 | printf( "First roll: %u\n", dice.roll() ); 8 | printf( "Second roll: %u\n", dice.roll() ); 9 | 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/winddk/Makefile: -------------------------------------------------------------------------------- 1 | # Standard DDK Makefile 2 | !include $(NTMAKEENV)\makefile.def 3 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/winddk/Makefile.inc: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | 3 | # 4 | # Tell the DDK how to generate RunTests.cpp from RunTests.tpl and the tests 5 | # 6 | 7 | PERL=perl 8 | PYTHON=python 9 | CXXTESTGEN=$(PERL) $(CXXTESTDIR)/cxxtestgen.pl 10 | #CXXTESTGEN=$(PYTHON) $(CXXTESTDIR)/cxxtestgen.py 11 | 12 | TEST_SUITES=$(SUITESDIR)/*.h 13 | 14 | RunTests.cpp: RunTests.tpl $(TEST_SUITES) 15 | $(CXXTESTGEN) -o $@ --template=RunTests.tpl $(TEST_SUITES) 16 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/winddk/RunTests.tpl: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // 4 | // The DDK doesn't handle too well 5 | // 6 | #include 7 | 8 | int __cdecl main() 9 | { 10 | return CxxTest::StdioPrinter().run(); 11 | } 12 | 13 | 14 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/lib/cxxtest-3.10.1-r1/sample/yes_no_runner.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // A sample program that uses class YesNoRunner to run all the tests 3 | // and find out if all pass. 4 | // 5 | 6 | #include 7 | 8 | int main() 9 | { 10 | return CxxTest::YesNoRunner().run(); 11 | } 12 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/mpilayer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | install(FILES ${HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}/mpilayer") 4 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testexe/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | add_executable(testexe ${SOURCES}) 4 | target_link_libraries (testexe superlib) 5 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testexe/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | Echo e; 5 | e.echo("testexe rulez\n"); 6 | e.ping(); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(test/unit) 2 | 3 | include(auto.cmake) 4 | 5 | install(FILES ${HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}/testlib") 6 | 7 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/echo.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "echo.h" 3 | 4 | void 5 | Echo::echo(std::string s) { 6 | std::cout << s << "\n"; 7 | } 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/echo.h: -------------------------------------------------------------------------------- 1 | #ifndef _echo_h_ 2 | #define _echo_h_ 3 | 4 | #include 5 | #include 6 | 7 | class Echo 8 | { 9 | public: 10 | void echo(std::string s); 11 | void ping() { std::cout << "ping\n"; } 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | include_directories (${DEMO_SOURCE_DIR}/../lib/cxxtest) 4 | add_executable(testlib_test_unit ${SOURCES}) 5 | set_target_properties(testlib_test_unit PROPERTIES OUTPUT_NAME test) 6 | target_link_libraries (testlib_test_unit superlib) 7 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/test/unit/echotest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class EchoTest : public CxxTest::TestSuite 5 | { 6 | public: 7 | 8 | void testSimple() { 9 | std::cout << "EchoTest::testSimple()\n"; 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src/testlib/testlib.h: -------------------------------------------------------------------------------- 1 | #ifndef _testlib_h_ 2 | #define _testlib_h_ 3 | #endif 4 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_class/testlib/incrementer.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "incrementer.h" 3 | 4 | void 5 | Incrementer::inc(int i) { 6 | std::cout << "Incrementer::inc(" << i << ") = " << (i+1) << "\n"; 7 | } 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_class/testlib/incrementer.h: -------------------------------------------------------------------------------- 1 | #ifndef _incrementer_h_ 2 | #define _incrementer_h_ 3 | 4 | class Incrementer 5 | { 6 | public: 7 | void inc(int i); 8 | }; 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_exe/powermonger/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | add_executable(powermonger ${SOURCES}) 4 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_exe/powermonger/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | std::cout << "powermonger rulez\n"; 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_files/blah/foobar: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_files/foobar: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_header-only_class/testlib/greeter.h: -------------------------------------------------------------------------------- 1 | #ifndef _greeter_h_ 2 | #define _greeter_h_ 3 | 4 | #include "iostream" 5 | 6 | class Greeter 7 | { 8 | friend class Typemaps; 9 | public: 10 | void hello(std::string name = "andi") { 11 | std::cout << "hello " << name << "\n"; 12 | } 13 | 14 | int deathToll; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library/multiplier/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(RELATIVE_PATH "") 2 | include(auto.cmake) 3 | add_library(multiplier ${SOURCES}) 4 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library/multiplier/multiplier.cpp: -------------------------------------------------------------------------------- 1 | #include "multiplier.h" 2 | 3 | std::string 4 | Multiplier::mult(std::string message, int n) { 5 | std::string ret = ""; 6 | for (int i = 0; i < n; i++) 7 | ret += message; 8 | return ret; 9 | } 10 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library/multiplier/multiplier.h: -------------------------------------------------------------------------------- 1 | #ifndef _multiplier_h_ 2 | #define _multiplier_h_ 3 | 4 | #include 5 | 6 | class Multiplier 7 | { 8 | public: 9 | std::string mult(std::string message, int n); 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library_tests/multiplier/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(test/unit) 2 | 3 | include(auto.cmake) 4 | add_library(multiplier ${SOURCES}) 5 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library_tests/multiplier/test/unit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | include_directories (${DEMO_SOURCE_DIR}/../lib/cxxtest) 4 | add_executable(multiplier_test_unit ${SOURCES}) 5 | set_target_properties(multiplier_test_unit PROPERTIES OUTPUT_NAME test) 6 | target_link_libraries (multiplier_test_unit multiplier) 7 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_additional_library_tests/multiplier/test/unit/multipliertest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "../../multiplier.h" 4 | 5 | class MultiplierTest : public CxxTest::TestSuite 6 | { 7 | public: 8 | 9 | void testSimple() { 10 | Multiplier m; 11 | std::cout << "MultiplierTest " << m.mult("megalomania ", 3) << "\n"; 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.6) 2 | project(DEMO) 3 | 4 | set(CMAKE_VERBOSE_MAKEFILE TRUE) 5 | include(conf.cmake) 6 | 7 | set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/${PACKAGE_NAME}") 8 | include_directories (${DEMO_SOURCE_DIR}) 9 | 10 | add_definitions(-DDOOMSDAY) 11 | 12 | add_subdirectory(testlib) 13 | add_subdirectory(testexe) 14 | 15 | set(RELATIVE_PATH testlib/) 16 | include(testlib/auto.cmake) 17 | add_library(superlib STATIC ${SOURCES}) 18 | install(TARGETS superlib DESTINATION lib) 19 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testexe/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | add_executable(testexe ${SOURCES}) 4 | target_link_libraries (testexe superlib) 5 | install(TARGETS testexe DESTINATION bin) 6 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testexe/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | Echo e; 6 | e.echo("This is Hell World\n"); 7 | e.ping(); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | install(FILES ${HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}/testlib") 4 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testlib/echo.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "echo.h" 3 | 4 | void 5 | Echo::echo(std::string s) { 6 | std::cout << s << "\n"; 7 | } 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testlib/echo.h: -------------------------------------------------------------------------------- 1 | #ifndef _echo_h_ 2 | #define _echo_h_ 3 | 4 | #include 5 | #include 6 | 7 | class Echo 8 | { 9 | public: 10 | void echo(std::string s); 11 | void ping() { std::cout << "ping\n"; } 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_crossplatform/testlib/testlib.h: -------------------------------------------------------------------------------- 1 | #ifndef _testlib_h_ 2 | #define _testlib_h_ 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_faulty_test/testlib/test/unit/echotest.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class EchoTest : public CxxTest::TestSuite 5 | { 6 | public: 7 | 8 | void testSimple() 9 | { 10 | } 11 | 12 | void foo(unsigned i, int j) 13 | { 14 | // should fail because of unsigned to int comparison and -Wall and -Werror 15 | if (i < j) 16 | std::cout << "boom\n"; 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_mpi_tests/testlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(test/unit) 2 | add_subdirectory(test/parallel_mpi_9) 3 | 4 | include(auto.cmake) 5 | 6 | install(FILES ${HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}") 7 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_mpi_tests/testlib/test/parallel_mpi_9/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(auto.cmake) 2 | 3 | if(FEATURE_MPI_TEST) 4 | include_directories(${DEMO_SOURCE_DIR}/../lib/cxxtest) 5 | add_executable(testlib_test_parallel_mpi_9 ${SOURCES}) 6 | set_target_properties(testlib_test_parallel_mpi_9 PROPERTIES OUTPUT_NAME test) 7 | endif(FEATURE_MPI_TEST) 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_patched_class/testlib/echo.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "echo.h" 3 | 4 | void 5 | Echo::echo(std::string s) { 6 | std::cout << "echo is: " << s << "\n"; 7 | } 8 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/src_patched_header/testlib/echo.h: -------------------------------------------------------------------------------- 1 | #ifndef _echo_h_ 2 | #define _echo_h_ 3 | 4 | #include 5 | #include 6 | 7 | class Echo 8 | { 9 | friend class Typemaps; 10 | public: 11 | void echo(std::string s); 12 | void ping() { std::cout << "pong\n"; } 13 | 14 | int i; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /tools/buildsystem/test/fixtures/tools/typemapgenerator: -------------------------------------------------------------------------------- 1 | ../../../../typemapgenerator/ -------------------------------------------------------------------------------- /tools/buildsystem/test/windows/raketest.rb: -------------------------------------------------------------------------------- 1 | require 'test/common' 2 | 3 | class RakeTest < Test::Unit::TestCase 4 | include UtilityFunctions 5 | 6 | @@default_src = "src_crossplatform" 7 | @@conf_args = "--disable-typemaps" 8 | 9 | def test_crossplatform 10 | log = build("installer") 11 | assert(/CPack: Package (.*testpackage-r12345-.*\.exe) generated/ =~ log) 12 | assert(File.exist?($1)) 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /tools/mpiexec_sde_wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ "$2" != -np ]; then 4 | cat >&2 < 2 | inline 3 | static void serialize(ARCHIVE& archive, Car& object, const unsigned /*version*/) 4 | { 5 | archive & object.engine; 6 | archive & object.wheels; 7 | } 8 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/references/hpxserialize.h: -------------------------------------------------------------------------------- 1 | template 2 | inline 3 | static void serialize(ARCHIVE& archive, Car& object, const unsigned /*version*/) 4 | { 5 | archive & object.engine; 6 | archive & object.wheels; 7 | } 8 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/Makefile: -------------------------------------------------------------------------------- 1 | CXX = mpic++ 2 | LINK = mpic++ 3 | CXXFLAGS = -pipe -O2 -Wall -W -Werror 4 | LFLAGS = -pipe 5 | INCPATH = -I. 6 | OBJECTS = main.o \ 7 | car.o \ 8 | typemaps.o \ 9 | mech.o 10 | TARGET = demo 11 | 12 | .SUFFIXES: .o .cpp .cc 13 | 14 | .cpp.o: 15 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" 16 | 17 | .cc.o: 18 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" 19 | 20 | all: $(TARGET) 21 | 22 | $(TARGET): $(OBJECTS) 23 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) 24 | 25 | clean: 26 | rm -rf $(TARGET) $(OBJECTS) 27 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/bmw.h: -------------------------------------------------------------------------------- 1 | #ifndef _BMW_h_ 2 | #define _BMW_h_ 3 | 4 | #include "car.h" 5 | #include "luxury.h" 6 | 7 | class BMW : public Car, private Luxury 8 | { 9 | public: 10 | friend class Typemaps; 11 | 12 | float price; 13 | 14 | private: 15 | int serial; 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/car.cpp: -------------------------------------------------------------------------------- 1 | #include "car.h" 2 | 3 | Mech Car::transformToMech() { 4 | return Mech(100, 100, 100); 5 | } 6 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/car.h: -------------------------------------------------------------------------------- 1 | #ifndef _car_h_ 2 | #define _car_h_ 3 | 4 | #include "engine.h" 5 | #include "mech.h" 6 | #include "wheel.h" 7 | 8 | class Mech; 9 | 10 | class Car 11 | { 12 | friend class Typemaps; 13 | friend class BoostSerialization; 14 | friend class HPXSerialization; 15 | 16 | static const unsigned NumWheels = 4; 17 | Wheel wheels[NumWheels]; 18 | Engine engine; 19 | 20 | public: 21 | Mech transformToMech(); 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/carcontainer.h: -------------------------------------------------------------------------------- 1 | #ifndef _carcontainer_h_ 2 | #define _carcontainer_h_ 3 | 4 | #include "car.h" 5 | 6 | /** 7 | * The CarContainer class is meant to demonstrate the 8 | * TypemapGenerator's ability to create partial MPI datatypes for 9 | * classes containing pointer members. 10 | */ 11 | class CarContainer { 12 | friend class Typemaps; 13 | 14 | Car *alpha; 15 | Car *bravo; 16 | Car *charly; 17 | Car *delta; 18 | Car *echo; 19 | 20 | int size; 21 | Wheel spareWheel; 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/coord.h: -------------------------------------------------------------------------------- 1 | #ifndef _coord_h_ 2 | #define _coord_h_ 3 | 4 | template 5 | class Coord; 6 | 7 | class Coord<1> 8 | { 9 | public: 10 | friend class BoostSerialization; 11 | friend class HPXSerialization; 12 | 13 | int x; 14 | }; 15 | 16 | class Coord<2> 17 | { 18 | public: 19 | friend class Typemaps; 20 | 21 | int x, y; 22 | }; 23 | 24 | class Coord<3> 25 | { 26 | public: 27 | friend class Typemaps; 28 | friend class BoostSerialization; 29 | friend class HPXSerialization; 30 | 31 | int x, y, z; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/coordcontainer.h: -------------------------------------------------------------------------------- 1 | #ifndef _coordcontainer_ 2 | #define _coordcontainer_ 3 | 4 | include "coord.h" 5 | 6 | template 7 | class CoordContainer 8 | { 9 | friend class Typemaps; 10 | 11 | Coord pos; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/coordcontainercontainer.h: -------------------------------------------------------------------------------- 1 | #ifndef _coordcontainercontainer_ 2 | #define _coordcontainercontainer__ 3 | 4 | include "coordcontainer.h" 5 | 6 | class CoordContainerContainer 7 | { 8 | friend class Typemaps; 9 | 10 | CoordContainer<2> cargo2; 11 | CoordContainer<3> cargo3; 12 | CoordContainer<4> cargo4; 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/engine.h: -------------------------------------------------------------------------------- 1 | #ifndef _engine_h_ 2 | #define _engine_h_ 3 | 4 | class Engine 5 | { 6 | friend class Typemaps; 7 | friend class BoostSerialization; 8 | friend class HPXSerialization; 9 | 10 | enum Fuel {DIESEL, GASOLINE, AUTOGAS}; 11 | 12 | double capacity; 13 | Fuel fuel; 14 | double gearRatios[6]; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/floatcoordbase.h: -------------------------------------------------------------------------------- 1 | #ifndef _floatcoord_h_ 2 | #define _floatcoord_h_ 3 | 4 | template 5 | class FloatCoord 6 | { 7 | private: 8 | friend class Typemaps; 9 | 10 | float vec[DIMENSIONS]; 11 | }; 12 | 13 | class FloatCoordTypemapsHelper 14 | { 15 | public: 16 | friend class Typemaps; 17 | 18 | FloatCoord<1> pA; 19 | FloatCoord<2> pB; 20 | FloatCoord<4> pC; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/label.h: -------------------------------------------------------------------------------- 1 | #ifndef _LABEL_h_ 2 | #define _LABEL_h_ 3 | 4 | #include 5 | 6 | class Label 7 | { 8 | public: 9 | friend class BoostSerialization; 10 | friend class HPXSerialization; 11 | 12 | std::string name; 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/luxury.h: -------------------------------------------------------------------------------- 1 | #ifndef _LUXURY_h_ 2 | #define _LUXURY_h_ 3 | 4 | class Luxury 5 | { 6 | public: 7 | friend class Typemaps; 8 | char sort; 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/mech.cpp: -------------------------------------------------------------------------------- 1 | #include "mech.h" 2 | 3 | Mech::Mech(int armor, int ammo, int power) : 4 | armor(armor), 5 | ammo(ammo), 6 | power(power) 7 | {} 8 | 9 | Car 10 | Mech::transformToCar() { 11 | return Car(); 12 | } 13 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/mech.h: -------------------------------------------------------------------------------- 1 | #ifndef _mech_h_ 2 | #define _mech_h_ 3 | 4 | #include "car.h" 5 | 6 | class Car; 7 | 8 | class Mech 9 | { 10 | public: 11 | Mech(int armor, int ammo, int power); 12 | 13 | Car transformToCar(); 14 | 15 | private: 16 | int armor; 17 | int ammo; 18 | int power; 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/pair.h: -------------------------------------------------------------------------------- 1 | #ifndef _pair_h_ 2 | #define _pair_h_ 3 | 4 | #include "coord.h" 5 | 6 | template 7 | class CoordPair 8 | { 9 | public: 10 | friend class Typemaps; 11 | A a; 12 | B b; 13 | }; 14 | 15 | class Dummy 16 | { 17 | friend class Typemaps; 18 | public: 19 | CoordPair p1; 20 | CoordPair p2; 21 | CoordPair, Coord<2> > p3; 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/rim.h: -------------------------------------------------------------------------------- 1 | #ifndef _rim_h_ 2 | #define _rim_h_ 3 | 4 | class Rim 5 | { 6 | friend class Typemaps; 7 | friend class BoostSerialization; 8 | friend class HPXSerialization; 9 | 10 | bool chromePlated; 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/tire.h: -------------------------------------------------------------------------------- 1 | #ifndef _tire_h_ 2 | #define _tire_h_ 3 | 4 | class Tire 5 | { 6 | friend class Typemaps; 7 | friend class BoostSerialization; 8 | friend class HPXSerialization; 9 | 10 | double treadDepth; 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /tools/typemapgenerator/test/fixtures/src/wheel.h: -------------------------------------------------------------------------------- 1 | #ifndef _wheel_h_ 2 | #define _wheel_h_ 3 | 4 | #include "tire.h" 5 | #include "rim.h" 6 | 7 | class Wheel 8 | { 9 | friend class Typemaps; 10 | friend class BoostSerialization; 11 | friend class HPXSerialization; 12 | Tire tire; 13 | Rim rim; 14 | }; 15 | 16 | #endif 17 | --------------------------------------------------------------------------------