Vibhav Pant
3df71b45ae
Use "sanitizer" as the autoconfig arg name.
2023-11-06 18:40:32 +05:30
Pablo M
9029acafb0
Merge branch 'task/CMD-306_isolated_tests_infrastructure' into 'develop'
...
CMD-306. Create isolated tests infrastructure and CMD-327. Have integration tests run some mega-XXX command
Closes CMD-306
See merge request apps/MEGAcmd!630
2023-11-07 00:13:19 +13:00
Vibhav Pant
e90286d3f8
Fix line wrapping for other lines.
2023-11-06 16:21:27 +05:30
Vibhav Pant
898425b3c8
Replicate old error strings, fix incorrect line wrapping.
2023-11-06 14:35:17 +05:30
Vibhav Pant
5060f95354
Rename enable-checks to enable-sanitizer.
2023-11-06 12:53:44 +05:30
Callan
d238499cfe
Wrap returned values of all MegaSync::getMegaSyncErrorCode
calls with a std::unique_ptr<const char[]>
2023-11-06 14:11:45 +13:00
Diego Ximenez
fe15b4d166
Fix indentation in QtCreator project files
2023-11-03 17:29:36 +01:00
Pablo Martin
420ce42cbf
fix compilation related to uninstall for windows
2023-11-03 17:08:39 +01:00
Pablo Martin
2fd3a12b6c
fix warning unused
2023-11-03 16:37:23 +01:00
Pablo Martin
199f52687a
add missing namespace
2023-11-03 16:36:43 +01:00
Pablo Martin
7ca34e13cf
Merge remote-tracking branch 'origin/task/CMD-306_isolated_tests_infrastructure' into task/CMD-306_isolated_tests_infrastructure_with_server_not_outputing_to_stdout
...
Conflicts:
tests/integration/MegaCmdTestingTools.cpp
2023-11-03 16:15:42 +01:00
Pablo Martin
b4e09ff04b
have integration test talk utf-8
...
- also fixed executeInClient array size
2023-11-03 16:13:55 +01:00
Pablo Martin
b879ce6513
some build fixes for windows
2023-11-03 16:11:51 +01:00
Pablo Martin
14f373bbaa
Merge remote-tracking branch 'origin/develop' into task/CMD-306_isolated_tests_infrastructure
...
Conflicts:
build/cmake/CMakeLists.txt
2023-11-03 15:33:28 +01:00
Pablo Martin
7f7c5cd28a
have server logs configurable
...
Kept existing funcitonality:
- running the server _manually_ will log to stdout
- running the server as a forked process will log to
~/.megaCmd/megacmdserver.log in POSIX
- log parameters and environment variables will remain working as they
where. Except: Windows no also accepts MEGACMD_LOGLEVEL environment
variable
Changes:
- integration tests will log into $HOME/.megaCmd/megacmdserver.log.
- forked stoud/stderr are now logged to separated files
- refactored some of the from ::executeServer into server main
- removed static `LoggedStream LCOUT(&COUT)` Use Instance pattern
instead. Owned by the executeServer scope.
- adjusted broken identification of source for log lines. Needs
robustifying
- added new LoggedStreamXXX clases (for stdout, for default log file,
for null)
- fix executeInClient args array
2023-11-03 15:17:21 +01:00
Vibhav Pant
7f981b6902
printBackupHistory: Construct listener correctly.
2023-11-03 17:29:43 +05:30
Vibhav Pant
feb084a205
onNodesUpdate: Ensure updated node counts are always logged.
2023-11-03 13:43:35 +05:30
Pablo Martin
bb0ae184d6
isolated tests infrastructure
...
- have MEGAcmd server initiated within integration main
- have client support outputing elsewhere than stdout
- add a few example tests (logged vs non logged vs reading ones)
2023-11-02 17:07:02 +01:00
Vibhav Pant
c4ce94d726
printBackupHistory: Use getFolderInfo to get file and folder counts.
...
MegaAccountDetails only provides counts for the root node.
2023-11-02 18:42:19 +05:30
Vibhav Pant
ca785dcb59
onNodesUpdate: Construct MegaCmdListenerFuncExecuter with autoremove
2023-11-02 17:45:02 +05:30
Vibhav Pant
15b79e3c1b
onNodesUpdate: Use MegaAccountDetails for getting node counts.
2023-11-02 17:16:26 +05:30
Vibhav Pant
43fbefe54a
printBackupHistory: Initialize MegaCmdListener correctly.
2023-11-02 16:12:32 +05:30
Vibhav Pant
d06a8b577b
printBackupHistory: Use MegaAccountDetails to get file/folder count.
2023-11-01 18:32:13 +05:30
Vibhav Pant
360ebe45f0
onEvent: Use MegaAccountDetails for file and folder counts.
...
In case of a MegaApi::STORAGE_STATE_PAYWALL event, get account details
asynchronously to get the folder and file counts for the root node.
2023-11-01 18:29:13 +05:30
Vibhav Pant
97d97f1a89
onNodesUpdate: Use unique_ptr to manage MegaNode(List) pointers.
2023-11-01 16:32:36 +05:30
Pablo M
3b705373a1
Merge branch 'task/CMD-299_build_and_run_tests_in_macos_ci' into 'develop'
...
CMD-299. Have unit & integration tests built for macos & unit ones excecuted
Closes CMD-299
See merge request apps/MEGAcmd!625
2023-11-01 07:15:27 +13:00
Diego Ximenez
6732f68a5d
Merge branch 'task/CMD-299_update_vpckg_ports_and_ffmpeg' into 'develop'
...
CMD-299. Update preferred-ports file with SDK versions and fix ffmpeg not building in XCode 15
Closes CMD-299
See merge request apps/MEGAcmd!614
2023-11-01 04:18:59 +13:00
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
346b02e3c2
mega-ls: Use the max int64_t value for max_size.
...
This fixes issues with ls being used with multiple directories, where
we would only calculate it for the first directory. However, it adds a
caveat where files > 999 GB would be misaligned.
2023-10-31 18:23:40 +05:30
Vibhav Pant
08402a15e6
Rewrite forEachFileInNode as a template.
2023-10-31 18:23:25 +05:30
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