krzys-h
b102f767d0
Compile error testing in CBot
2015-12-23 20:54:35 +01:00
krzys-h
8437a9bdd2
CBot testing framework; fixed a few bugs
2015-12-23 20:39:56 +01:00
krzys-h
d577e7f41b
Tests for CBotToken
2015-12-23 18:44:14 +01:00
krzys-h
eedf8dacea
Documentation for CBotProgram; some CBotError refactoring
2015-12-21 21:35:20 +01:00
krzys-h
9ec61d93e5
Refactored CBotString and const char* to std::string in CBot engine
...
A lot of changes, so it needs lots of testing
2015-12-20 16:19:10 +01:00
krzys-h
3eeab0f9b7
Removed CBotStringArray
2015-12-20 14:49:30 +01:00
krzys-h
5e23426b53
Refactored CBotString to use std::string and CBotStringArray to use std::vector
2015-12-20 14:24:49 +01:00
Grunaka
1a6b5ded64
Delete CBotDll.h
2015-12-01 23:25:36 +01:00
Grunaka
942d7195e4
Moving CBotString class in its own header and source files.
2015-12-01 23:25:36 +01:00
krzys-h
6590652d9e
Added commandline CBot interpreter (for testing purposes)
2015-11-21 16:31:22 +01:00
Piotr Dziwinski
13f0159705
Fix ambiguous overload resolution
...
One operator+ for CBotString is enough
2015-11-02 22:17:53 +00:00
Piotr Dziwinski
eeea31408b
Fix operator+ semantics in CBotString
2015-11-02 22:11:02 +00:00
Grunaka
6a396e1522
Add unit tests for class CBotString.
...
Add comments in class CBotString.
Change existing comments in class CBotString to be compliant with doxygen.
Add function "const char* CBotString::CStr() const".
Add null pointer check in function "const CBotString& CBotString::operator+=(const CBotString& str)"
Remove functions "CBotString CBotString::Mid(int nFirst, int nCount) const" and "CBotString CBotString::Mid(int nFirst) const" because they were doublons of function "CBotString CBotString::Mid(int nFirst, int lg) const"
2015-11-01 17:03:30 +01:00
Piotr Dziwinski
d11ebc891c
Bring to zero some types of issues reported by colobot-lint
2015-10-04 00:09:10 +02:00
Piotr Dziwinski
c3d4d46583
Fix missing empty line after license header
2015-08-22 17:52:07 +02:00
Piotr Dziwinski
b93f610930
Fix license header in all files
2015-08-22 16:40:02 +02:00
Piotr Dziwinski
efedb44cce
Add proper initializations and remove manual memory management in remaining classes
...
Except CBot-related stuff of course
2015-08-14 23:44:00 +02:00
Piotr Dziwinski
bd8ab7e645
Remove old CModelFile test
2015-08-14 20:24:58 +02:00
Piotr Dziwinski
a0f0a53d59
Fix for gtest build with Clang libc++
2015-08-14 14:24:55 +02:00
Piotr Dziwinski
5879de82ac
Remove old CBot console
...
Not sure why we kept it; it probably doesn't even compile anymore
2015-08-11 23:15:04 +02:00
Piotr Dziwinski
36254080bf
Remove obsolete test environments
2015-08-07 10:16:46 +02:00
Piotr Dziwinski
e9e1c8d4dd
Add proper initializations and remove manual memory management in app classes
2015-08-07 10:16:46 +02:00
Piotr Dziwinski
806ffdaf36
Fix segfault in unit tests
2015-08-05 10:27:39 +02:00
Piotr Dziwinski
73536290b2
Fix for incorrect compile flags in colobot-lint
2015-07-19 18:11:12 +02:00
krzys-h
02c24fbf27
CProfile -> CConfigFile
2015-07-19 16:05:09 +02:00
krzys-h
9e19d8433c
Removed old CBot-related files
2015-07-16 22:17:54 +02:00
Piotr Dziwinski
88ec9aaae3
Drop GCC 4.6 support
2015-06-26 00:24:32 +02:00
Piotr Dziwinski
8806d1708d
Proper CAuto, CBrain, CMotion, CPhysics, CPyro lifetime management
...
* change manual memory manament to std::unique_ptr
* create CPyroManager
* finally get rid of CInstanceManager
2015-06-22 21:58:58 +02:00
Piotr Dziwinski
fd182e5515
Aligned unit tests to compile under MSVC
2015-05-13 21:05:39 +02:00
Piotr Dziwinski
ccaac2c544
Rewrite unit tests to use HippoMocks
2015-05-13 00:52:18 +02:00
Piotr Dziwinski
81096fd2ae
Fix Clang and GCC 4.6 compilation
2015-04-28 19:29:32 +02:00
Piotr Dziwinski
d003247120
Provide usleep() in CSystemUtils interface
2015-04-27 20:02:22 +02:00
krzys-h
f65b00089a
Merge branch 'dev' into dev-physfs
...
Conflicts:
data
2014-10-14 15:42:19 +02:00
krzys-h
9fd6cf5449
Changed all occurences of PPC in the code to TerranovaTeam
2014-10-14 15:26:18 +02:00
Piotr Dziwinski
12feb49098
Fixes in unit tests
2014-10-07 22:22:59 +02:00
Piotr Dziwinski
e4d52d9afb
CProfile refactoring
2014-08-12 21:24:33 +02:00
Piotr Dziwinski
74312b0405
Better CMake organization and unit test cleanups
...
* created a static library containing most source modules
to avoid compiling source modules twice in code and unit tests
* moved profile_test to main unit tests executable
* removed image_test and edit_test as not really useful
2014-08-12 20:58:55 +02:00
Piotr Dziwinski
4bdfa0aa4e
Remove unused accessors from CDevice
2014-08-12 18:18:30 +02:00
Piotr Dziwinski
0fbc05b96c
Fix test compilation
2014-06-26 22:36:57 +02:00
krzys-h
092e7cc68d
Fixed tests
2014-06-26 22:14:30 +02:00
Piotr Dziwinski
76d01b44f7
Fix test compilation
2014-06-24 19:51:48 +02:00
Piotr Dziwinski
52cf9e2815
Fix test compilation
2014-06-24 17:38:28 +02:00
Piotr Dziwinski
604d4a614e
Fixed tests compilation
2014-01-18 20:16:31 +01:00
Piotr Dziwinski
d9283e2afa
Fix problem with gtest and pthread on some systems
2013-12-20 20:19:21 +01:00
Piotr Dziwinski
95661918ce
Some further refactoring and test corrections
2013-12-20 20:18:30 +01:00
Didier Raboud
343fa8f0cb
Add a PLATFORM_GNU global variable matching all GNU systems such as Debian's Linux, kFreeBSD and Hurd
2013-11-27 18:53:28 +01:00
Piotr Dziwiński
8ed542a881
Merge pull request #250 from OdyX/dev-platform-enhancements-and-installers
...
MacOSX and Windows platform enhancements and installers
2013-11-22 15:16:12 -08:00
Didier 'OdyX' Raboud
89e2855f95
Consolidate SYSTEM_CPP_MODULE in the main CMakeLists.txt
2013-11-20 10:39:06 +01:00
Didier Raboud
86c0eb193d
Run image_test
2013-11-18 16:24:41 +01:00
Didier Raboud
ca82353e81
Re-enable profile_test test
2013-11-18 16:13:19 +01:00
Didier Raboud
6e31af3923
Initialise CSystemUtils' singleton in the three light, transform and model tests
...
Also fix README
2013-11-18 13:05:08 +01:00
Didier 'OdyX' Raboud
9ddb034bfa
Add libintl library to the unit tests on Mac OSX
2013-10-26 13:19:23 +02:00
Didier 'OdyX' Raboud
b3b6a40d9e
MacOSX: Add initial support in CMake build infra
2013-10-24 21:12:52 +02:00
Piotr Dziwinski
3e8568bda4
Fixed test binaries location
2013-06-29 00:31:30 +02:00
Piotr Dziwinski
8d82fd61bc
Fix for tests compilation
2013-06-24 14:46:13 +02:00
Piotr Dziwinski
81a6de41a5
Some further changes in CMakeLists
...
* removed DEV_BUILD autodetection (could be confusing)
* ignore desktop subdirectory on Windows
* some refactoring
2013-06-24 14:17:28 +02:00
Piotr Dziwinski
bfcce26f89
Changes in build organization
...
* targets are now created in top-level build directory
* more things are now configured through CMake options
* changed debug build detection from NDEBUG to DEV_BUILD
* moved po and desktop directories
* moved last unit test out of src directory
2013-06-22 01:17:19 +02:00
Piotr Dziwinski
366d3a551e
Added debug aids for lighting
...
* displaying positions of current lights (F11)
* dumping info to console (F10)
* added assert() in suspicious place in CPyro
2013-06-17 18:17:21 +02:00
Piotr Dziwinski
7874aca10c
Enhanced logging, option to auto-start mission
...
* added logging of application events
* changed debug mode flag to independent debug modes
* added option to auto-start mission (load a mission immediately
after startup)
* removed "enum value out of range" prints
* some refactoring
2013-06-16 21:54:36 +02:00
Piotr Dziwinski
950a3474d5
Refactored sound code
...
* fixed formatting and naming to be uniform with rest of code
* moved default implementation of CSound to cpp module
2013-05-27 10:19:16 +02:00
Piotr Dziwinski
1a3aa0d60f
Fixed app_stub
2013-05-27 09:43:29 +02:00
Piotr Dziwinski
f7f6e10c70
Added check and warning about non-power-of-2 textures
2013-05-11 21:40:09 +02:00
Piotr Dziwinski
cc8ed2979b
Fixed deleting of CObjectManager
...
* fix in CApplication destructor
* re-enabled unit tests
2013-05-11 21:22:03 +02:00
krzys-h
db43400d97
Fixed tests
2013-05-04 15:44:17 +02:00
erihel
2ba146cd63
Fixed problem with test compilation
...
Altered test cmake files to fix linker problem.
Changed tga to png in pyro.
Changed enum in CMotionDummy.
2013-04-29 14:29:12 +02:00
krzys-h
22c3f44c61
Sorry, I've meant colobot_ut!
2013-04-27 14:01:22 +02:00
krzys-h
95eca71ec5
Commented out edit_test
...
because Travis is still failing
2013-04-27 13:54:42 +02:00
erihel
32fdf993ea
* Changed order of libs in cmake for clipboard
2013-04-20 19:41:39 +02:00
erihel
f1873a52d5
* Minor changes to cmake files
2013-04-12 12:07:57 +02:00
erihel
01309c8bd0
* Added clipboard support (issue #60 )
...
* Fixed keyboard shortcuts while code editing in game
2013-04-11 13:37:15 +02:00
krzys-h
47b7236a17
Tests AGAIN!
2013-03-31 10:35:23 +02:00
erihel
3569adb103
* Fixed and turned on edit_test
2013-03-29 16:13:37 +01:00
krzys-h
06742cab16
OK, I give up.
2013-03-29 10:56:36 +01:00
krzys-h
8fd0f25e69
Nope, now fixed edit_test!
2013-03-29 10:51:48 +01:00
krzys-h
7fe1655c5c
Fixed edit_test
2013-03-29 10:48:25 +01:00
krzys-h
530344724c
Tests are broken again
2013-03-29 10:22:00 +01:00
Piotr Dziwinski
212f2e41f8
Fixed edit_test
2013-03-27 23:48:49 +01:00
Didier Raboud
0d537c7fb5
BROWN-PAPER COMMIT: Drop the tests to have the thing build
...
Someone understanding GMock / GTest needs to replace that commit (and the two parents) with a working setup
2013-03-27 10:31:06 +01:00
Piotr Dziwinski
195d6cded0
Fixed timer functions on win32
...
* changed win32 implementation to QueryPerformaceTimer system function
* refactored system utils code
* proper tests for time utils and update event creation in application
* should fix issue #134
2013-03-24 12:00:12 +01:00
Piotr Dziwinski
4a30800cf1
Fixes for compiling on MSYS
...
* fixed SDL_main() and putenv() issues
* disabled desktop subdir for MSYS
* disabled building CBot_console for now
2013-03-22 19:17:08 +01:00
Piotr Dziwinski
025bedecfb
Refactored platform-specific code
...
Moved functions from .h to .cpp files
2013-03-19 23:07:39 +01:00
erihel
21de71f871
* Fixed app stub in edit test
2013-03-17 20:40:54 +01:00
erihel
47e7904bb7
* Fix for issue #140 (not compiling sound files while sound support is enabled)
2013-03-14 20:41:48 +01:00
Piotr Dziwinski
bc859c4c59
VBO override option; argv parsing using getopt
...
* added -vbo option to override autodetection of OpenGL VBO extension
* refactored argument parsing to use getopt()
* fixed failing UTs
2013-03-10 15:44:21 +01:00
Piotr Dziwinski
08c646bb92
Fixed stupid error, tweaked ambient light colors
...
* fixed stupid error in light manager
* tweaked ambient light colors to 0.1 of diffuse;
colors should not be oversaturated now
2013-02-28 22:06:22 +01:00
Piotr Dziwinski
b0d86ebe5a
Better light sorting
...
Should fix lighting issue (#62 )
2013-02-25 21:58:01 +01:00
Piotr Dziwiński
001d37b257
CInstanceManager refactoring
...
* removed classes managed by CInstanceManager
except for CObject, CPyro, CBrain and CPhysics
because of dependencies
* refactored instance searching to use existing singleton instances of
CApplication, CEngine and CRobotMain and calling their getter
functions
2013-02-17 12:11:56 +01:00
Didier Raboud
f0e0896c2b
Comment the test that fails, with a TODO.
2013-02-14 18:42:50 +01:00
Piotr Dziwinski
209c6412ae
Refactoring in tests infrastructure
...
* all tests are now in /test/ subdirectory
* unit tests concatenated to one executable (TODO: ui, common)
* preparation for test environments (OpenGL and others)
* removed old TestCBot
2013-02-03 20:03:36 +01:00