2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-31 05:45:11 +00:00
Commit Graph

1428 Commits

Author SHA1 Message Date
Vibhav Pant
f16d9d4993 fetchNodes: use unique_ptr to manage MegaCmdListener objects. 2023-10-31 20:44:47 +05:30
Vibhav Pant
520a1e0ca5 Merge remote-tracking branch 'origin/develop' into CMD-331-enable-runtime-checks-build-flags 2023-10-31 19:51:08 +05:30
Vibhav Pant
df622258f1 Merge remote-tracking branch 'origin/develop' into CMD-276-export-expiry-error-text 2023-10-31 19:32:03 +05:30
Pablo Martin
72d44d50d6 have tests common stuff compiled with c++17 in cmake
- done several adjustments to prevent suprises in cmake compilation
 - add missing -pthread flag
- have macos platform stuff be included in the server library rather
than the executable
2023-10-31 14:25:10 +01:00
Vibhav Pant
ddc21d9cb9 PlatformDirectories: Add docstrings. 2023-10-31 17:19:41 +05:30
Vibhav Pant
cccac4accc XDGDirectories::dataDirPath: Return legacy config dir if it exists. 2023-10-31 17:16:13 +05:30
Pablo Martin
92119e562a Have unit & integration tests built for macos & unit ones excecuted 2023-10-31 11:28:08 +01:00
Victor Teniente
446ceb32d1 Fix linking issues with readline 2023-10-31 11:11:00 +01:00
Victor Teniente
1ebf79bef1 Update min target to 10.13 2023-10-31 11:10:29 +01:00
Victor Teniente
153678034a Enable cmake. Fix some issues. 2023-10-31 11:09:57 +01:00
Victor Teniente
633019acc7 Remove leftovers from previous ffmpeg dep 2023-10-31 10:32:59 +01:00
Victor Teniente
4f8ba63aa7 Add parameter to support different archs 2023-10-31 10:32:24 +01:00
Diego Ximenez
b36e246795 Possible fix for CMake compilation 2023-10-30 15:26:25 +01:00
Diego Ximenez
b9381ffe06 Fix CMake build 2023-10-30 13:35:02 +01:00
Diego Ximenez
9b76c7b924 Merge branch 'develop' into task/CMD-327_have-initial-integration-test-run-mega-xxxx 2023-10-30 13:31:10 +01:00
Diego Ximenez
5eec9e9c4c Fix autotools build 2023-10-30 13:12:57 +01:00
Diego Ximenez
b0a7f1dece Execute dummy megacmd client in basic integration test
Separate main from megacmdclient.cpp
Reorganization of pro and pri files for client, server and integration
tests to support these changes
2023-10-30 12:24:58 +01:00
Vibhav Pant
b8bfd1c72d Provide the correct argument to _putenv. 2023-10-30 14:22:13 +05:30
Vibhav Pant
35c40bec5c createSocket: Close socket in case of an error getting the runtime directory. 2023-10-30 13:10:31 +05:30
Vibhav Pant
a0012b4a1c Use _putenv on Windows. 2023-10-30 13:10:23 +05:30
Vibhav Pant
fc9d113141 Include cstdlib for setenv and friends. 2023-10-30 12:02:22 +05:30
Vibhav Pant
5391a14719 Don't define ARRAYSIZE for _WIN32. 2023-10-30 11:51:29 +05:30
Vibhav Pant
8a79f5aec8 Split TestInstrumentsEnvVarGuard into TestInstrumentsUnsetEnvVarGuard. 2023-10-27 20:39:50 +05:30
Vibhav Pant
76eb967e3c initialize: Set sockfd to -1 after closing it. 2023-10-27 19:37:03 +05:30
Vibhav Pant
c3ab8bf02a Use the correct method name for WindowsDirectories::configDirPath 2023-10-27 18:28:33 +05:30
Vibhav Pant
f9146f3d46 Merge remote-tracking branch 'origin/develop' into CMD-307-parallel-megacmd-server-sockets 2023-10-27 18:24:29 +05:30
Vibhav Pant
8c44138f27 Fix syntax error. 2023-10-27 18:23:32 +05:30
Vibhav Pant
8c26597835 Don't use _POSIX_VERSION for detecting unix. 2023-10-27 18:21:22 +05:30
Vibhav Pant
d0f232d4ef Fix compilation errors on Windows. 2023-10-27 17:16:12 +05:30
Vibhav Pant
6206af88c4 Run tests on QtCreator with Address and UBSan enabled. 2023-10-27 17:03:23 +05:30
Vibhav Pant
c3b8f1e67a Add support for enabling ThreadSanitizer. 2023-10-27 17:03:12 +05:30
Vibhav Pant
3c8364db21 Merge branch 'CMD-337-rewrite-get-petition-details' into 'develop'
CMD-337. Refactor get_petition_details as a method under CmdPetition.

Closes CMD-337

See merge request apps/MEGAcmd!615
2023-10-27 23:59:28 +13:00
Vibhav Pant
230ff0f92d Rename formatError to formatErrorAndMaySetErrorCode. 2023-10-27 16:26:18 +05:30
Vibhav Pant
abca833db7 Fix typo. 2023-10-27 16:24:42 +05:30
Vibhav Pant
6c76bf0f4a executecommand: (export) Use LOG_warn for logging warnings. 2023-10-27 16:23:46 +05:30
Vibhav Pant
7d2493642d checkNoErrors: Create the entire log message before logging it. 2023-10-27 16:22:52 +05:30
Vibhav Pant
f58c7d2423 Use __unix__ || __APPPLE__ for initial unices detection. 2023-10-26 17:10:16 +05:30
Vibhav Pant
b95490a987 Merge remote-tracking branch 'origin/develop' into CMD-307-parallel-megacmd-server-sockets 2023-10-26 17:07:53 +05:30
Diego Ximenez
6e292b90a0 Merge branch 'task/CMD-343_add_test_binaries_to_gitignore' into 'develop'
CMD-343. Add unit/integration test binaries to .gitignore file

Closes CMD-343

See merge request apps/MEGAcmd!620
2023-10-26 23:34:37 +13:00
Vibhav Pant
b6397f67c9 Only include pwd and unistd.h for unix systems. 2023-10-26 13:13:23 +05:30
Vibhav Pant
47d9ba97cd CmdPetitionPosixSocket: Use std::to_string for getPetitionDetails. 2023-10-25 19:48:23 +05:30
Vibhav Pant
761bf944d2 executecommand: Print warning about exporting working directory to LOG_err 2023-10-25 19:03:58 +05:30
Vibhav Pant
12395882d8 Add formatError, and use it for creating error strings from MegaError.
* checkErrors: Use formatError.
* exportNode: Check for an error beforehand, and use formatError to
log a helpful error message.
2023-10-25 19:00:55 +05:30
Vibhav Pant
927d1305ad Fix typo. 2023-10-25 17:28:58 +05:30
Vibhav Pant
d86077666d Fix UNIX detection on apple platforms. 2023-10-25 17:28:51 +05:30
Vibhav Pant
dc298dc514 Use macro _POSIX_VERSION for detecting UNIX. 2023-10-25 17:20:50 +05:30
Vibhav Pant
da5d3028a1 Replace FileSocketCommunicationTests.cpp with PlatformDirectoriesTest.cpp 2023-10-25 16:57:58 +05:30
Vibhav Pant
e51a0a2a5d Add TestInstrumentsEnvVarGuard. 2023-10-25 16:47:54 +05:30
Vibhav Pant
5e1554210d Replace getSocketPath with PlatformDirectories.
The PlatformDirectories class allows getting paths to
platform-dependant, application directories for caching, storing
config data, runtime state, etc.
2023-10-25 15:08:52 +05:30
Diego Ximenez
a40d31304a Merge branch 'fix/CMD-324_server-crash-session-resumption' into 'develop'
CMD-324. Fix possible crash when getting the handle to the root node

Closes CMD-324

See merge request apps/MEGAcmd!607
2023-10-25 03:52:00 +13:00