tycho
51b4584b42
Fix clang 3.6 flags to only be used in clang 3.6
2015-05-24 15:22:55 +01:00
tycho
95b81b3ef1
Disable -Werror for warnings in tests.
2015-05-24 14:16:05 +01:00
tycho
a5624debcb
Fix tests
2015-05-23 13:21:02 +01:00
tycho
7f35671b21
Fix tests
2015-05-19 19:53:16 +01:00
Mattes D
591b4eeb8a
Network tests: Fixed clang warnings.
2015-02-20 16:08:21 +01:00
Mattes D
014b96adb3
Exported cServerHandle and cNetwork:Listen to Lua.
...
Also added an example to the NetworkTest plugin.
2015-02-04 08:40:52 +01:00
Mattes D
053362e604
Added network termination called at app exit.
...
This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
2015-01-27 14:53:37 +01:00
Mattes D
9014bdfa32
cNetwork: Renamed callback to OnConnected()
2015-01-22 22:49:37 +01:00
Mattes D
dbf7f13bd4
cNetwork: Added link creation callback.
...
This allows the callback classes to store the link inside them and use it internally later on, mainly for sending data.
2015-01-22 20:13:06 +01:00
Mattes D
5b4c5cf2be
cNetwork: Changed listening API.
...
The link-callbacks for each new accepted link are now received from the OnIncomingConnection listen-callback.
2015-01-22 20:13:05 +01:00
Mattes D
64855ed340
cNetwork: Added error message to error callbacks.
2015-01-22 20:13:04 +01:00
Mattes D
d4682463a1
cNetwork: Fixed race conditions with lookups; proper shutdown.
2015-01-22 20:13:02 +01:00
Mattes D
c0cb787c10
cNetwork: Split the main cpp file into several files.
2015-01-22 20:13:02 +01:00
Mattes D
d3076a3e16
cNetwork: Split cNetworkSingleton to a separate file.
2015-01-22 20:13:00 +01:00
Mattes D
7cddb62374
cNetwork: Added an OnError callback for listening servers.
...
The callback receives the error details.
2015-01-22 20:12:57 +01:00
Mattes D
ddb1818dd5
cNetwork: Added multithreading protection.
2015-01-22 20:12:50 +01:00
Mattes D
d8ac99a037
cNetwork: Implemented connection shutdown and close.
2015-01-22 20:12:49 +01:00
Mattes D
9ffca12709
cNetwork: Fixed Linux compilation.
2015-01-22 20:12:48 +01:00
Mattes D
a2aa37bdc5
cNetwork: Implemented link address getting.
2015-01-22 20:12:47 +01:00
Mattes D
28e97d5468
cNetwork: Implemented basic server functionality.
2015-01-22 20:12:46 +01:00
Mattes D
251c96952b
cNetwork: Implemented IP-to-hostname lookup.
2015-01-22 20:12:45 +01:00
Mattes D
fde44cba08
cNetwork: Implemented HostnameToIP lookups.
2015-01-22 20:12:45 +01:00
Tycho
a9b8a530b1
Extracted Google connection test
2015-01-22 20:12:42 +01:00
Tiger Wang
17be0e3b7a
Removed test
2014-12-13 12:17:04 +00:00
Tiger Wang
44b2deab97
Fixed compilation?
2014-11-01 16:36:45 +00:00
worktycho
c40f65ad83
Update creatable.cpp
2014-09-27 15:29:11 +01:00
Tycho
73dfe1fe81
Fix accedental c++11
2014-09-17 18:59:45 +01:00
Tycho
6e7c0e33b5
Added first test to show the object can be created
2014-09-17 18:40:10 +01:00
madmaxoft
d9f6c691cc
CopyBlocks test: decreased the test size.
...
It just needlessly ate up test time; there's no need for such rigorous testing once the test started succeeding.
2014-09-01 21:31:27 +02:00
Tycho
ee50790398
Merge branch 'master' of github.com:mc-server/MCServer
2014-06-16 15:12:50 +01:00
Mattes D
f2470ff7c1
Reduced the number of cChunkData::CopyBlockTypes() tests, added progress.
2014-05-30 18:32:15 +02:00
Tycho
cbb9e15257
Fix bugs in test
2014-05-30 17:13:36 +01:00
Mattes D
76c07b1ec7
Added a cChunkData::CopyBlockTypes() unit test.
2014-05-30 17:44:24 +02:00
madmaxoft
e136f6e0f5
Fixed cChunkData nibble copying.
2014-05-30 11:35:29 +02:00
madmaxoft
0b60caac4a
Test failures are reported verbosely and into the debug console on Win.
2014-05-30 10:56:12 +02:00
madmaxoft
0b49529e42
Fixed test return values.
2014-05-30 09:17:50 +02:00
madmaxoft
59068b77b7
Fixed wrong block sizes for copying / setting.
2014-05-29 20:21:39 +02:00
madmaxoft
c5763f3af7
Fixed test compilation.
2014-05-29 19:43:01 +02:00
Tycho
19df18c461
Fixed test globals to work with precompiled headers
2014-05-27 12:46:22 +01:00
Tycho
944d29c0ae
inject TestGlobals.h correctly
2014-05-24 14:09:51 +01:00
Tycho
8f964886e0
Implemented style changes
2014-05-24 13:33:40 +01:00
Tycho
024027db89
Renamed cChunkBuffer to cChunkData
2014-05-21 19:58:48 +01:00
Tycho
016b8f7b99
C++11
2014-05-17 15:19:35 +01:00
Tycho
1f98f21dd1
fixed assignment bugs and Skylight bug
2014-05-17 15:11:58 +01:00
worktycho
7616895eb3
Fix assignment operators test
2014-05-17 14:35:08 +01:00
worktycho
d53c84a781
Add test for zeros
2014-05-17 14:07:49 +01:00
worktycho
a7a811af3a
Add tests for assignment operator
2014-05-17 13:59:31 +01:00
worktycho
710656f84f
Rewrote array copies test
...
Moved each patten test into its own scope to test all unallocated section code paths.
Moved 0's around so that they test the allocated sections code paths.
2014-05-17 13:39:28 +01:00
Tycho
97dc7d8f66
Added some more tests
2014-05-11 19:40:32 +01:00
Tycho
c46f240d81
Added several more testsfor arrays and coordinates
2014-05-11 19:24:09 +01:00