Vibhav Pant
92003a73f9
Test a simple regex match.
2024-03-20 23:04:21 +05:30
Vibhav Pant
a543e39f21
Expose user credentials for integration tests.
2024-03-20 22:46:36 +05:30
Vibhav Pant
cd170e6033
Use absolute paths to test binaries.
2024-03-20 22:33:50 +05:30
Vibhav Pant
654f0b2477
Clone SDK and MEGAcmd in parallel, fix indentation.
2024-03-20 22:33:38 +05:30
Vibhav Pant
a0bdb763b5
Name arguments to junit.
2024-03-20 22:25:26 +05:30
Vibhav Pant
3a7af02b7c
Fix syntax error.
2024-03-20 22:24:00 +05:30
Vibhav Pant
6b2591ace8
Run integration tests for the macOS pipeline.
2024-03-20 22:18:25 +05:30
Diego Ximenez
0db6ff334b
Merge branch 'develop' into fix/CMD-251_hammering_on_update_events
2024-03-20 13:45:54 +01:00
Diego Ximenez
834f9f8c0f
Add leftover changes that weren't properly added in previous commit
2024-03-20 13:42:45 +01:00
Diego Ximenez
95f483bfc7
Read the current version via environment variable or console arg
...
With this commit, the mega updater checks the current version in this
order:
1) The `MEGACMD_VERSION_OVERRIDE` environment variable.
2) The `--version [...]` console argument.
3) The `MEGACMD_CODE_VERSION` macro.
If one is not provided, it'll fall back to the next one; the default one
being `MEGACMD_CODE_VERSION`, which is hardcoded into the build.
The MEGAcmd server uses (2), whereas the emergency updater (i.e.,
windows/macos scheduled task) uses (3). In any case, (1) can be used to
force an update.
2024-03-20 12:58:44 +01:00
Diego Ximenez
380083ba51
Merge branch 'task/CMD-387_add_getListOfWords_unit_tests' into 'develop'
...
CMD-387. Add unit tests for `getlistOfWords`
Closes CMD-387
See merge request apps/MEGAcmd!675
2024-03-19 22:25:57 +13:00
Vibhav Pant
67a3dbb6ad
Fix indentation.
2024-03-18 23:54:53 +05:30
Vibhav Pant
9ee7447777
Merge branch 'CMD-418-create-dir-tree-in-test-fixture' into 'develop'
...
CMD-418: Create directory structure for integration tests in test fixtures.
Closes CMD-418
See merge request apps/MEGAcmd!688
2024-03-19 07:19:02 +13:00
Vibhav Pant
bbdb1eafac
Use links from the +exported integration tests account.
2024-03-18 18:56:14 +05:30
Vibhav Pant
d82e4c7e80
Revert "Remove calls to setAccountAuth to fix SDK assert failure."
...
This reverts commit 71cc33130d81178cf3b7ca8c92cfcb0aabab81d4.
2024-03-18 18:47:04 +05:30
Diego Ximenez
00bac5336b
Merge branch 'develop' into task/CMD-387_add_getListOfWords_unit_tests
2024-03-18 12:56:03 +01:00
Vibhav Pant
3f71e15098
Merge remote-tracking branch 'origin/develop' into CMD-418-create-dir-tree-in-test-fixture
2024-03-15 18:05:23 +05:30
Vibhav Pant
22cb5dbfa9
Fix URL for file01, call ok() on ClientResponse for GTest assertion.
2024-03-15 17:09:02 +05:30
Vibhav Pant
d70d944c7d
Add a SetUp and TearDown method to ExportTest fixture.
2024-03-15 17:02:32 +05:30
Vibhav Pant
71cc33130d
Remove calls to setAccountAuth to fix SDK assert failure.
2024-03-15 17:00:52 +05:30
Diego Ximenez
052cde3ea1
Merge branch 'task/CMD-411_update_for_sqlite3_sdk_linking_changes' into 'develop'
...
CMD-411. Update linux build for latest SDK changes to sqlite3 linking
Closes CMD-411
See merge request apps/MEGAcmd!677
2024-03-15 23:28:22 +13:00
Diego Ximenez
0e8cdb209f
Merge branch 'update_preferred_ports_to_sdk_latest' into 'develop'
...
Update preferred-ports to the latest versions in the SDK
See merge request apps/MEGAcmd!687
2024-03-15 07:02:35 +13:00
Diego Ximenez
6795cff0e6
Update common tools due to upgrade to meson 1.3.2 in vcpkg repo
2024-03-14 13:26:00 +01:00
Diego Ximenez
28aaa42770
Update preferred-ports to the latest versions in the SDK
2024-03-12 20:04:19 +01:00
Vibhav Pant
275610f8e0
Build with ENABLE_MEGACMD_TESTS=1.
2024-03-12 20:51:57 +05:30
Vibhav Pant
0a348ddea3
Remove redundant make target names.
2024-03-11 19:14:04 +05:30
Vibhav Pant
f2ea5b2efe
Merge remote-tracking branch 'origin/develop' into CMD-336-cmake-testing-flags
2024-03-11 19:08:51 +05:30
Diego Ximenez
61c7c1c14f
Merge branch 'develop' into fix/CMD-251_hammering_on_update_events
2024-03-05 14:11:08 +01:00
Diego Ximenez
b536c86d87
Display an error message if megacmd.version
could not be written to
2024-03-05 14:01:11 +01:00
Diego Ximenez
33b7b72870
Use std::stoi
instead of atoi
to convert the version string to an int
...
This has the advantage of also catching the out-of-range errors, apart
from the "invalid argument" errors.
2024-03-05 13:56:27 +01:00
Diego Ximenez
b359b8ae38
Read current version from MEGACMD_CODE_VERSION instead of file
...
Since the MegaUpdater executable is also updated with the rest, it
contains the latest MEGAcmd version in the code itself. So we can use
the define to get it, instead of having to access a file (that, as we
saw, might not have been properly written to for whatever reason).
Thus, the `megacmd.version` file is only used to check against the
previous version to broadcast the "MEGAcmd has been updated" message at
the start. This is just an info message (i.e., non-critical) so, if the
file was not written to, there won't be any hammering or other errors.
2024-03-05 13:45:10 +01:00
Diego Ximenez
212a89d43c
Make stopCheckingForUpdaters
an atomic bool
...
Since it's read and written to by different threads
2024-03-05 13:02:31 +01:00
Xavier Rins Lozano
fae43035bc
Merge branch 'CMD-414-Deprecate-EOL-Distributions' into 'develop'
...
CMD-414-Add warning to Ub2304 Suse154 Fed37
Closes CMD-414
See merge request apps/MEGAcmd!685
2024-02-23 01:07:58 +13:00
Xavier Rins Lozano
22c25c5b5c
Add warning to Ub2304 Suse154 Fed37
2024-02-22 12:39:33 +01:00
Vibhav Pant
e4257ebf23
Install libtinyxml2-dev instead of libtinyxml-dev.
2024-02-16 20:05:45 +05:30
Vibhav Pant
21f9ae2821
Print contents of link.txt for debugging.
2024-02-16 19:54:47 +05:30
Vibhav Pant
6dcde72736
Revert to using 12-slim, only build MEGAcmd related components.
2024-02-16 19:33:47 +05:30
Vibhav Pant
408191a41d
Create a new layer for installing CMake, use debian:12.5-slim.
2024-02-16 19:22:02 +05:30
Vibhav Pant
a972e0ef83
Build the CMake container image for Linux pipelines as well.
2024-02-16 18:54:52 +05:30
Vibhav Pant
05be33425a
Checkout SDK and MEGAcmd in parallel, and with shallow clone.
2024-02-16 18:38:58 +05:30
Vibhav Pant
a04840930a
Build with ENABLE_MEGACMD_TESTS=1.
2024-02-16 18:34:22 +05:30
Vibhav Pant
bc55bf863e
Add ENABLE_MEGACMD_TESTS build arg.
2024-02-16 18:17:44 +05:30
Vibhav Pant
5b8c400fe7
Add ENABLE_MEGACMD_TESTS flag.
2024-02-16 18:17:08 +05:30
Diego Ximenez
a7e709c5c8
Merge branch 'task/CMD-359_improve_mac_update_daemon' into 'develop'
...
CMD-359. Improve MacOS update daemon
Closes CMD-359
See merge request apps/MEGAcmd!676
2024-02-06 01:24:05 +13:00
Vibhav Pant
2242161d43
Merge branch 'CMD-209-async-node-file-folder-count' into 'develop'
...
CMD-209. Use MegaAccountDetails for file and folder counts
Closes CMD-209
See merge request apps/MEGAcmd!628
2024-02-03 03:05:26 +13:00
Vibhav Pant
00c27e7930
Use the correct path for megacmdcommonutils.h
2024-01-30 22:58:39 +05:30
Vibhav Pant
1ac5536f29
Use PlatformDirectories to get paths to user data folders.
...
* src/configurationmanager.cpp:
- Add new methods ConfigurationManager::{getDataDir, getStateDir}.
- Replace ConfigurationManager::getConfFolderSubdir with
getDataFolderSubdir, as it is only used for creating SDK directories,
which should be in the data directory.
- ConfigurationManager::loadConfigDir: Use PlatformDirectories to get
config folder.
- ConfigurationManager::{lockExecutor/unlockExecution}: Store the
lock file in the state folder.
* src/megacmd.cpp:
- executeServer: Use data dir and subfolders in it for SDK storage.
* src/megacmdlogger.cpp:
- Store logs in the state directory.
2024-01-30 22:03:15 +05:30
Vibhav Pant
1055634075
Merge branch 'CMD-307-allow-changing-named-pipe-location' into 'develop'
...
CMD-307. Add function getNamedPipeName() for creating Win32 pipe path, add env variable MEGACMD_PIPE_SUFFIX.
Closes CMD-307
See merge request apps/MEGAcmd!662
2024-01-29 21:49:05 +13:00
Vibhav Pant
a2ad726ce4
Merge branch 'CMD-280-github-issue-template-megacmd-branding' into 'develop'
...
CMD-280: Use the correct style for MEGAcmd for GitHub issue templates.
Closes CMD-280
See merge request apps/MEGAcmd!666
2024-01-29 21:47:41 +13:00
Diego Ximenez
faeead57e2
Set default sqlite3 flag to -L
and make it null on CentOS 7
2024-01-25 19:52:48 +01:00