55 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
b17bd7ee9d test: added basic lua script start/stop test 2022-08-27 11:34:41 +02:00
Reinder Feenstra
f09986f5ad temparay disabled failing test on aarch64
something with std::unordered_map not working, still investigating
2022-08-14 00:01:50 +02:00
Reinder Feenstra
ccf0005615 test: added test for input/output create/destroy 2022-08-07 17:54:28 +02:00
Reinder Feenstra
f6f5511f25 Added 1st version of Traintastic DIY interface 2022-06-28 23:14:39 +02:00
Reinder Feenstra
d980fada24 test: added create/destroy of HSI88Interface 2022-06-04 18:50:19 +02:00
Reinder Feenstra
5521a262e7 added macro's for enum/set type info 2022-04-30 00:11:05 +02:00
Reinder Feenstra
3333e8e05b lua: moved set's to single file for sandbox and testing 2022-04-25 23:27:01 +02:00
Reinder Feenstra
5b07d1d44f lua: moved enum's to single file for sandbox and testing 2022-04-23 19:14:09 +02:00
Reinder Feenstra
6d677f2300 board: move tile now supports rotating 2022-04-06 23:05:34 +02:00
Reinder Feenstra
6bb930b2f2 lua: added DirectionControlState enum 2022-03-22 23:28:22 +01:00
Reinder Feenstra
86f9956622 test: moved enum to test to single file 2022-01-09 12:53:15 +01:00
Reinder Feenstra
9fe67a6c37 lua: added pairs() support to readonly table 2022-01-09 00:07:49 +01:00
Reinder Feenstra
84714aff30 fixed diagnostic/readabilty issue reported by clang-tidy #WIP 2022-01-08 15:22:17 +01:00
Reinder Feenstra
01fb4489c0 test: added all interfaces to the object create destroy test 2022-01-03 09:34:06 +01:00
Reinder Feenstra
11d4ebcd85 Merge branch 'master' into interface-controller 2022-01-03 00:59:50 +01:00
Reinder Feenstra
a072bdef76 test: lua is_instance -> get_class, fixed implementation issues 2021-11-23 23:50:54 +01:00
Reinder Feenstra
0546ef1c30 lua: added WorldScale enum to sandbox 2021-11-10 21:58:09 +01:00
Reinder Feenstra
956c8ad168 Replaced command station and controller by interface with supporting controllers 2021-10-17 16:10:56 +02:00
Reinder Feenstra
b15cc45286 lua: added support for testing object type 2021-09-21 23:49:03 +02:00
Reinder Feenstra
b9cf6f5342 fix: added shared_ptr in table model to keep list alive until all models are gone 2021-09-18 23:57:58 +02:00
Reinder Feenstra
124dfd68f3 test: added extra checks in board tile add test 2021-09-13 23:09:48 +02:00
Reinder Feenstra
cea12458d7 test: added very basic board save/load test 2021-09-12 23:05:49 +02:00
Reinder Feenstra
0abfe4c3b8 fix: corrected typo's in test
#notetoself always run tests before push
2021-09-12 20:55:15 +02:00
Reinder Feenstra
da0fb33b72 test: added checks if classId matches getClassId() 2021-09-12 20:28:16 +02:00
Reinder Feenstra
b30db09116 server: fixed many warnings 2021-09-11 23:49:38 +02:00
Reinder Feenstra
bf08369357 board: added tunnel tile 2021-09-05 21:52:10 +02:00
Reinder Feenstra
e1d4d2df16 board: automatic create a bridge if two straight tile are placed on top of each other 2021-09-05 16:53:31 +02:00
Reinder Feenstra
8132adb251 board: added bridge tiles 2021-09-05 13:07:39 +02:00
Reinder Feenstra
948012bec9 tile: added properties x, y, width, height, rotate 2021-09-05 01:05:30 +02:00
Reinder Feenstra
23500c7c4f board: added test for adding non exiting tile 2021-08-31 20:47:16 +02:00
Reinder Feenstra
e3bfb6035b board: added simple add tile test 2021-08-30 21:06:18 +02:00
Reinder Feenstra
c159a213a9 board: added resizeTile method + test 2021-08-30 00:13:38 +02:00
Reinder Feenstra
8ea77d253c board: added moveTile method + test 2021-08-29 09:34:40 +02:00
Reinder Feenstra
5278edb482 lua: improved Lua::push and added test 2021-08-23 00:04:46 +02:00
Reinder Feenstra
53cf0613a0 implemented board list delete and board destroy + test 2021-08-21 22:52:14 +02:00
Reinder Feenstra
1480963995 test: added decoder function create/destroy 2021-08-21 21:59:11 +02:00
Reinder Feenstra
6fe2f7627f added test for command station and decoder create/destroy 2021-08-21 00:29:41 +02:00
Reinder Feenstra
d9b121948f Lua: fix: ReadOnlyTable, existing keys could be written 2021-04-22 23:28:41 +02:00
Reinder Feenstra
919e2e2787 test: lua: added check if writing to enum/set.type_name.* raises an error 2021-04-22 23:24:27 +02:00
Reinder Feenstra
7ab43c4598 test: added missing registation of Lua::ReadOnlyTable 2021-04-20 23:08:22 +02:00
Reinder Feenstra
5b4ab8f30d Added test and support for Lua::check<> enum's 2021-04-20 22:24:26 +02:00
Reinder Feenstra
1c4b3bb74a Added test and support for Lua::check<> string/string_view 2021-04-20 22:22:23 +02:00
Reinder Feenstra
d9f02fcbac added tests Lua::check<> bool, int and float types 2021-04-19 23:20:39 +02:00
Reinder Feenstra
08f78d1ab9 test: moved protect jmp_buf global to lua state
so every lua state has its own jmp_buf
2021-04-19 23:18:50 +02:00
Reinder Feenstra
c24c1d7e4a test lua enum: added tostring testing 2021-04-14 20:47:23 +02:00
Reinder Feenstra
b45a1c851f added missing include guard 2021-04-14 08:09:03 +02:00
Reinder Feenstra
5727e70048 removed garbage code 2021-04-14 08:08:25 +02:00
Reinder Feenstra
f2b7d7bb52 test lua: replace panic-to-exception by longjmp
calls to Lua can now easily be protected using the protect<> template function, it will return false if a lua error occurs.
The exception method didn't work properly with catch2 on windows.
2021-04-14 00:04:03 +02:00
Reinder Feenstra
0ae199574e added license header to tests 2021-04-12 23:41:54 +02:00
Reinder Feenstra
ac1ade0a3d test: Added test for Lua::Enum<> 2021-04-12 23:31:41 +02:00