Diego Ximenez
d92a71d73e
Log error & send event when root node is not found
2023-10-24 14:14:49 +02:00
Diego Ximenez
90fc9a3a10
Merge branch 'develop' into fix/CMD-324_server-crash-session-resumption
2023-10-24 13:48:57 +02:00
Pablo M
e8dc4c0111
Merge branch 'fix/CMD-298_use-non-deprecated-send-event' into 'develop'
...
CMD-301. Refactored event definition and sending logic
Closes CMD-298
See merge request apps/MEGAcmd!601
2023-10-25 00:41:43 +13:00
Pablo Martin
84e8d4eee4
refactor events code to dedicated source/header
2023-10-24 13:04:54 +02:00
Pablo Martin
923e19a64f
Merge remote-tracking branch 'origin/develop' into fix/CMD-298_use-non-deprecated-send-event
...
Conflicts:
src/megacmd.h
- new sendEvent methods conflicting with execute/stopServer
ones
2023-10-24 12:41:57 +02:00
Diego Ximenez
12416ce90b
Merge branch 'task/CMD-325_nodesbypath_unique_ptr_refactor' into 'develop'
...
CMD-325. Refactor `nodebypath` and `nodesbypath` to return `unique_ptr`
Closes CMD-325
See merge request apps/MEGAcmd!606
2023-10-24 21:15:17 +13:00
Diego Ximenez
b583bfb01e
Merge branch 'develop' into fix/CMD-324_server-crash-session-resumption
2023-10-23 17:48:59 +02:00
Diego Ximenez
113c729ff2
Fix double-free when using MegaNodeList
...
Use `reset` instead of unique ptr assignment
2023-10-23 16:21:39 +02:00
Vibhav Pant
6ae36f95eb
Add unit test for ComunicationsManagerFileSockets::getSocketPath.
2023-10-23 19:08:11 +05:30
Vibhav Pant
d30d00611e
Allow configuring the path used by the server for domain sockets.
...
The directory chosen by megaCMD (both the client and server) follows this
strategy:
* If the environment variables MEGACMD_WORKING_DIR or XDG_RUNTIME_DIR
are set, use it.
* ~/.megaCMD
* Otherwise, create the socket under /tmp/megaCMD_<uid>
2023-10-23 19:06:25 +05:30
Vibhav Pant
accd8b6813
Fix typo.
2023-10-23 17:13:08 +05:30
Vibhav Pant
23b2ad4ea9
Display helpful error messages for certain cases while exporting a node.
2023-10-23 17:02:09 +05:30
Vibhav Pant
3b7a110749
Use ostringstream for creating petition details string.
2023-10-23 16:31:15 +05:30
Diego Ximenez
3a56b3126f
Merge branch 'develop' into task/CMD-325_nodesbypath_unique_ptr_refactor
2023-10-23 12:51:42 +02:00
Diego Ximenez
fcf206712c
Change deleter functions to not take ownership of node pointer
2023-10-23 12:36:25 +02:00
Diego Ximenez
4c843315f9
Fix node use-after-move when deleting
...
Also change `unique_ptr` assignment to `reset`
2023-10-23 11:05:05 +02:00
Diego Ximenez
4831750f1c
Add unit and integration test binaries to .gitignore file
2023-10-23 10:15:01 +02:00
Vibhav Pant
d8640b7b57
Add ENABLE_{ASAN,UBSAN} flags.
2023-10-23 13:34:43 +05:30
Diego Ximenez
f0e3bdc476
Merge branch 'develop' into task/CMD-299_update_vpckg_ports_and_ffmpeg
2023-10-20 13:43:36 +02:00
Diego Ximenez
63201a8fee
Fix FFmpeg build on Xcode 15
2023-10-20 13:30:47 +02:00
Vibhav Pant
84a470a796
Merge remote-tracking branch 'origin/develop' into CMD-331-enable-runtime-checks-build-flags
2023-10-20 16:57:00 +05:30
Pablo M
3e0a83c2d8
Merge branch 'task/CMD-333_tests-in-autotools' into 'develop'
...
CMD-333. Support autotools build for tests (integration & unit)
Closes CMD-333
See merge request apps/MEGAcmd!612
2023-10-21 00:19:09 +13:00
Diego Ximenez
2d34c682fb
Fix MEGAcmdUpdater debug build on Windows
2023-10-20 12:14:06 +02:00
Pablo M
f107dafe58
Merge branch 'task/exit-on-first-build-failure' into 'develop'
...
Have "set -e" added to builder.sh
See merge request apps/MEGAcmd!616
2023-10-20 22:44:41 +13:00
Vibhav Pant
a3d47754ff
Merge remote-tracking branch 'origin/develop' into CMD-337-rewrite-get-petition-details
2023-10-20 14:34:33 +05:30
Diego Ximenez
151cd9a9bf
Merge branch 'develop' into task/CMD-299_update_vpckg_ports_and_ffmpeg
2023-10-20 10:10:37 +02:00
Vibhav Pant
a16dd08264
Remove unneeded include <sstream>.
2023-10-20 11:49:19 +05:30
Pablo Martin
3ec85f862b
fix path to unit tests
2023-10-19 18:41:05 +02:00
Pablo Martin
16bb29a8e3
remove unrequired lgmock linkage
2023-10-19 18:06:44 +02:00
Pablo Martin
89169a6699
have "set -e" added to builder.sh
2023-10-19 17:57:44 +02:00
Pablo Martin
1a888ec8c6
add a word on possibility to use --with-gtest with no value
2023-10-19 17:29:56 +02:00
Pablo Martin
a31bb78070
compile gtests & run unit tests
2023-10-19 17:04:52 +02:00
Pablo Martin
280bae3f66
Merge remote-tracking branch 'origin/develop' into task/CMD-333_tests-in-autotools
2023-10-19 16:59:21 +02:00
Xavier Rins Lozano
7ac9ed4a01
Merge branch 'CMD-332-Move-MRs-to-Jenkinsfile' into 'develop'
...
CMD-332-Move-MRs-to-jenkinsfile
Closes CMD-332
See merge request apps/MEGAcmd!611
2023-10-20 02:45:17 +13:00
Vibhav Pant
56e05f286a
Simplify the creation of the petition details string.
2023-10-19 18:11:39 +05:30
Xavier Rins Lozano
6a8ad70c8d
Fix issues
2023-10-19 14:21:38 +02:00
Diego Ximenez
141d385849
Further updates to preferred-ports file to match SDK's
2023-10-19 14:10:01 +02:00
Pablo Martin
23efbb9276
fix autotools compilation (missed adding SDK's includes to some new targets)
2023-10-19 13:17:21 +02:00
Vibhav Pant
6ba5da676e
Refactor get_petition_details as a method under CmdPetition.
...
Instead of get_petition_details being a CommunicationsManager method,
add a new method for CmdPetition, getPetitionDetails. This allows us
to implement the method without error-prone down-casting of the
petition object.
2023-10-19 13:55:31 +05:30
Diego Ximenez
da7059a854
Update preferred-ports file with SDK versions
2023-10-18 16:23:50 +02:00
Vibhav Pant
b799d8c5ab
Add new flag, --enable-checks.
...
--enable-checks allows compiling MEGAcmd components with the given
runtime checks enabled. For now, we support AddressSanitizer and
UndefinedBehaviorSanitizer.
2023-10-18 18:37:52 +05:30
Xavier Rins Lozano
66b29a5a01
add jenkinsfiles
2023-10-18 14:29:00 +02:00
Pablo Martin
25db38edf8
major simplification in include.am
...
- use intermmediate libraries for common code (tests/comms/instruments)
- have server compiled with MEGACMD_TESTING_CODE when
BUILD_MEGACMD_TESTS
2023-10-17 18:05:35 +02:00
Pablo Martin
894bc01b08
initial adjustments to include unit tests in autotools build
...
- refactor src/include.am to put some order to it
- add configure.ac to allow to pass --enable-megacmd-tests (requiring
explicit --with-gtest atm)
2023-10-17 13:22:57 +02:00
Vibhav Pant
7528e26614
amIPro: Delete details object after fetching pro level from it.
...
As per the SDK docs, the return value of getMegaAccountDetails is
owned by the caller.
2023-10-17 16:49:50 +05:30
Pablo M
0d242946fc
Merge branch 'task/CMD-334_fix-compilation-cmake-win-tests' into 'develop'
...
CMD-334. Adjust cmake compilation to fix building integration tests
Closes CMD-334
See merge request apps/MEGAcmd!609
2023-10-17 23:54:07 +13:00
Pablo Martin
93f223b988
removed unrequired double linkage for unit tests in cmake
2023-10-17 12:13:32 +02:00
Pablo Martin
f6b4fd339b
adjust cmake compilation to fix building integration tests
...
- refactor common test code in static library
- include missing cpps
- enforce io.h inclusion to have _isatty in TestUtils header
2023-10-17 12:07:44 +02:00
Pablo M
92ba28da45
Merge branch 'task/CMD-293_minor-improvements-in-confirmation-asking-and-no-errors-checks' into 'develop'
...
CMD-293. Minor enhancements in confirmation asking / checkNoErrors after request
Closes CMD-293
See merge request apps/MEGAcmd!597
2023-10-17 22:54:33 +13:00
Pablo M
e757b8fea7
Merge branch 'task/CMD-304_testing_infrastructure' into 'develop'
...
CMD-304. Create Google Tests Testing Infrastructure
Closes CMD-304
See merge request apps/MEGAcmd!605
2023-10-17 21:11:08 +13:00