mirror of https://github.com/QMCPACK/qmcpack.git
Add the Catch framework for unit testing.
The patch for the IBM BG compiler has been applied. git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7059 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
parent
61a5c25068
commit
f0ded88abb
|
@ -0,0 +1,8 @@
|
|||
C++ Unit test framework
|
||||
|
||||
https://github.com/philsquared/Catch
|
||||
|
||||
The single include file is downloaded from here:
|
||||
https://raw.githubusercontent.com/philsquared/Catch/master/single_include/catch.hpp
|
||||
|
||||
There are some patches to make it work on the IBM Blue Gene, located in diff_ibm.txt
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,23 @@
|
|||
Index: catch.hpp
|
||||
===================================================================
|
||||
--- catch.hpp (revision 7053)
|
||||
+++ catch.hpp (revision 7054)
|
||||
@@ -183,6 +183,7 @@
|
||||
#if ( defined _MSC_VER && _MSC_VER > 1400 && !defined __EDGE__) || \
|
||||
( defined __WAVE__ && __WAVE_HAS_VARIADICS ) || \
|
||||
( defined __GNUC__ && __GNUC__ >= 3 ) || \
|
||||
+ ( defined __xlC_ver__ && __xlC_ver__ >= 0x00000003 ) || \
|
||||
( !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L )
|
||||
|
||||
#define CATCH_INTERNAL_CONFIG_VARIADIC_MACROS
|
||||
@@ -323,8 +324,9 @@
|
||||
NonCopyable& operator = ( NonCopyable const& ) = delete;
|
||||
NonCopyable& operator = ( NonCopyable && ) = delete;
|
||||
#else
|
||||
+ NonCopyable& operator = ( NonCopyable const& );
|
||||
+ protected:
|
||||
NonCopyable( NonCopyable const& info );
|
||||
- NonCopyable& operator = ( NonCopyable const& );
|
||||
#endif
|
||||
|
||||
protected:
|
Loading…
Reference in New Issue