summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: Resolve trash flakyness by waiting before listing the contentSebastien Bacher2022-12-141-0/+1
| | | | | The action is done asynchronous by the service and without the delay the trash is sometime showing empty when it shouldn't.
* test: Remove deprecated --no-debug udisks argument from the scriptSebastien Bacher2022-12-141-1/+1
| | | | | The option has been deprecated in udisks for years and is just displaying a warning in the log
* Update gvfs-test timeoutSebastien Bacher2021-02-011-1/+1
| | | The current value is not enough and results are sometime flaky on slow architectures
* test: Increase timeout for starting ftp serverOndrej Holy2020-02-141-1/+1
| | | | | | | Currently, the test suite waits for starting the ftp server 5 seconds. This seems is not enough for GitLab CI as it randomly fails with "timed out waiting for test FTP server". Let's try to increase the timeout from 5 to 15 seconds in the hope that will fix the random failures.
* test: Disable password authentication in sshd_configOndrej Holy2020-02-141-0/+1
| | | | | | | Although SFTP test cases use key-based authentication, the "Password dialog cancelled" error is returned in case of authentication failure. Let's explicitly deny the password-based authentication to see "Permission denied" instead.
* tests: Increase size for pipes to avoid hangsOndrej Holy2020-02-101-0/+6
| | | | | | | | | glib-networking started printing big amount of debug info which cause test suite hangs. It is because the stdout/stderr is redirected to pipes, which have limited capacity. Let's increase the pipe capacity to its maximum to fix this issue. Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/451
* google: Added tests for the Google Backend and updated tests/meson.buildMayank Sharma2020-01-312-0/+1490
| | | | | | | | A new set of tests have been added to test the newly implemented functionality in the Google Backend. The tests use the first GMount (linked to a valid Google account) to obtain an email address and create a libgdata service for contacting the Drive API. These tests use the GIO API directly to perform various operations automatically.
* tests: Update certificate to work with recent standardsOndrej Holy2020-01-231-25/+43
| | | | | | | | | | | | | The following error appears on Ubuntu because of change of OpenSSL defaults: "SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small" This is probably because the original cert was generated with rsa:1024. Let's generate new one with rsa:2048 using the following command to fix this: "openssl req -x509 -nodes -days 1 -newkey rsa:2048 -subj /CN=localhost -keyout testcert.pem -out testcert.pem" Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/448
* test: Port to python-twistedOndrej Holy2019-10-291-1/+1
| | | | | | | | | | Test suite were ported to python3, however, twistd binary is still required for ftp test cases. The twistd binary is part of python2-twisted, which is going to be retired. Let's use python3 version instead. It seems that Fedora has twistd-3 binary, whereas, Debian has twistd3, so try to look for both of them. The test cases seem working nicely with it as per my testing. Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/428
* build: Use dictionaries in configuration_data objectsIñigo Martínez2019-05-161-2/+1
| | | | | | | | | | Since 0.49.0[0], a dictionary could be used as a replacement for each key/value pair as if `set` method was called for each of them. Almost all of the `configuration_data` objects have been changed to use a dictionary. [0] http://mesonbuild.com/Reference-manual.html#configuration_data
* test: Remove trailing newline from the IP stringOndrej Holy2019-02-261-1/+2
| | | | | | | | test_unknown_host uses the following URI: sftp://10.220.47.158%0A:22222/. It contains %0A (newline character), which makes it invalid and may cause problems. Let's remove the trailing newline from the IP to make it valid. https://gitlab.gnome.org/GNOME/gvfs/issues/376
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-211-1/+1
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Use generators placeholdersIñigo Martínez2019-01-211-5/+3
| | | | | | | | | | Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
* build: Fix the parameter order in configure_fileIñigo Martínez2019-01-211-2/+2
| | | | | | | The `install` and `install_dir` parameters must be the last parameters in the `configure_file` function. The paremeters have been reordered to fix this issue.
* build: Use / instead of join_pathsIñigo Martínez2019-01-211-2/+2
| | | | | | | Since meson 0.49, the `/` character can be used to join paths[0], so all the instances of `join_paths` have been replaced. [0] http://mesonbuild.com/Release-notes-for-0-49-0.html#joining-paths-with-
* build: Add trailing commasIñigo Martínez2019-01-211-8/+8
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* build: Make monitors build commands commonIñigo Martínez2019-01-211-13/+1
| | | | | | | | | | | | | | All the available monitors install a set of files: volume monitor files, DBus service files, etc... These build commands are mostly common and only file names change, which are built using a given pattern. These build commands have been replaced by only one set of build commands that adapt to monitors needs by changing their name and simplifies the entire process. These changes also help installing `GOA` and `MTP` necessary test files.
* Revert "build: Make monitors build commands common"Ondrej Holy2019-01-071-1/+13
| | | | This reverts commit c25bc351bb2605e57bc9a6d9250c9d4748c3d9e0.
* Revert "build: Add trailing commas"Ondrej Holy2019-01-071-8/+8
| | | | This reverts commit f4ee93b06cfc4d9f727f9174e40d08097a25d571.
* Revert "build: Use / instead of join_paths"Ondrej Holy2019-01-071-2/+2
| | | | This reverts commit 9523d8e09e0088c8cd58ace494d47cc3083151fc.
* Revert "build: Fix the parameter order in configure_file"Ondrej Holy2019-01-071-2/+2
| | | | This reverts commit 12f4c5a98e1b4a1a0b5fba45439dab74d12519bb.
* Revert "build: Use generators placeholders"Ondrej Holy2019-01-071-3/+5
| | | | This reverts commit dc34f1be6a3c1fa6d5615ad5d647003e7ce3196f.
* Revert "build: Do not use prefix on directory variables"Ondrej Holy2019-01-071-1/+1
| | | | This reverts commit db31059d1b7b11b597b03064329fb1e8899b11f2.
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-041-1/+1
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Use generators placeholdersIñigo Martínez2019-01-041-5/+3
| | | | | | | | | | Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
* build: Fix the parameter order in configure_fileIñigo Martínez2019-01-041-2/+2
| | | | | | | The `install` and `install_dir` parameters must be the last parameters in the `configure_file` function. The paremeters have been reordered to fix this issue.
* build: Use / instead of join_pathsIñigo Martínez2019-01-041-2/+2
| | | | | | | Since meson 0.49, the `/` character can be used to join paths[0], so all the instances of `join_paths` have been replaced. [0] http://mesonbuild.com/Release-notes-for-0-49-0.html#joining-paths-with-
* build: Add trailing commasIñigo Martínez2019-01-041-8/+8
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* build: Make monitors build commands commonIñigo Martínez2019-01-041-13/+1
| | | | | | | | | | | | | | All the available monitors install a set of files: volume monitor files, DBus service files, etc... These build commands are mostly common and only file names change, which are built using a given pattern. These build commands have been replaced by only one set of build commands that adapt to monitors needs by changing their name and simplifies the entire process. These changes also help installing `GOA` and `MTP` necessary test files.
* gvfs-test: Don't specify the port if we are running in the sandboxIain Lane2018-09-251-2/+9
| | | | | In this case the smb config is set up using the default port by the sandbox itself - the config in the testsuite is not used.
* test: Prevent failures caused by wrong monitor dirOndrej Holy2018-09-041-0/+4
| | | | | | | | | | | | | | | | | | Test suite uses custom servicedir with subset of monitor service files, however, list of available monitors is read from the system locations. Thus gvfs tries to spawn volume monitors, which are not available in the custom servicedir. Consequently, the following warnings are printed among others from "gio mount": invoking IsSupported() failed for remote volume monitor with dbus name... The warnings causes test suite failures, becasue it expects another output. This problem appeared recently due to the "gio mount" change, which now always call g_volume_monitor_get. Set GVFS_MONITOR_DIR to the same dir, where is the custom session.conf, which ensures that it uses .monitor files from that dir and not from the system locations.
* test: Use explicitely SMB_USER_PORT when mountingOndrej Holy2018-05-111-2/+2
| | | | | | Currently, SMB_USER_PORT is not used when mounting, which may cause failures for smb tests, when other smbd instances are running. Let's use the user port also when mounting to fix the failures.
* test: Remove test key after useOndrej Holy2018-05-111-0/+1
| | | | | | gvfs_test_authorized_keys is not properly removed from runtime dir, which causes permission denied errors in some configuration. Let's remove the key after use.
* programs: Remove deprecated gvfs utilsOndrej Holy2018-05-101-1/+1
| | | | | | | Before two years, gvfs utils has been replaced by wrapper script which just calls gio tool and prints warning. Let's remove this completely. I suppose that 3 stable releases are enough for people to port to gio tool.
* Remove libgdu supportOndrej Holy2018-04-171-4/+0
| | | | | libgdu has been removed in 2011 and is superseded by libudisks2, so there is no need to have gdu volume monitor in the tree.
* build: Remove autotoolsIñigo Martínez2018-04-062-133/+0
| | | | | | | To avoid the burden of maintaining multiple build systems, this patch removes autotools support. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Revise dependenciesIñigo Martínez2018-04-031-1/+6
| | | | | | | | | | | | | | | gvfs is using a set of glib libraries (gio-2.0, gio-unix-2.0, glib, gobject-2.0) in almost all the created objects. However, these dependencies are not always necessary. gvfs' meson port also uses some internal dependencies formed by built libraries. This internal dependencies depend on other dependendecies as well. These both issues have been fixed by reviewing all the internal dependencies and built objects. https://bugzilla.gnome.org/show_bug.cgi?id=794365
* test: Make /etc/init/ optionalAdam Conrad2018-02-091-1/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=793316
* build: Port to meson build systemIñigo Martínez2017-10-313-0/+85
| | | | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* test: Make sshd test optionalIñigo Martínez2017-10-101-0/+1
| | | | | | | This patchs makes the sshd test optional in case the system misses a SSH server. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* test: Make use of shutil's whichIñigo Martínez2017-10-101-9/+9
| | | | | | | | | Since Python 3.3, shutil has a which implementation. This patch takes advantage of that implementation, which checks if the command exists and its absolute path, and avoids the need to call system's which command. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* test: Use gio tool instead of gvfs- utilsOndrej Holy2016-10-241-94/+83
| | | | | gvfs- utils are deprecated (see Bug 769378) and warnings on stderr breaks the test suite.
* Drop hal volume monitor and fallback code in gphoto2 and cdda backendMichael Biebl2016-10-191-7/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=770671
* test: Be sure that gvfs is used by gioOndrej Holy2016-06-071-0/+2
| | | | | | | | | | | | Currently the tests may fail with: Error mounting location: volume doesn't implement mount This may happen if GIO_USE_VFS=local, which is currently set by gnome-desktop-testing as defaults. Set GIO_USE_VFS=gvfs for our process to fix it. https://bugzilla.gnome.org/show_bug.cgi?id=734370
* test: Skip sftp tests if ssh key is not availableOndrej Holy2016-06-031-3/+1
| | | | | | | | | | | Currently sftp tests fail if ~/.ssh/id_rsa is not available with the following error: AssertionError: False is not true : This test needs an existing ~/.ssh/id_rsa Sftp tests should be skipped if the key is not found to avoid test suite failures. https://bugzilla.gnome.org/show_bug.cgi?id=734370
* test: Do not fail if umockdev is not installedOndrej Holy2016-06-021-1/+1
| | | | | | | Change introduced by commit 6d77394 results in ValueError exception if umockdev is not installed. This exception is not handled and thus the test is unexpectedly terminated. Handle this exception and set have_umockdev accordingly.
* build: Fix srcdir != builddirOndrej Holy2016-05-311-6/+6
| | | | | | | | | | | Commit 0188305 broke build, because doesn't expect srcdir != builddir and consequently the build fails with the following error: make[3]: *** No rule to make target '../../daemon/org.gtk.vfs.Daemon.service', needed by 'all-am'. Stop. make[3]: *** Waiting for unfinished jobs.... Use builddir instead of srcdir to fix the problem. https://bugzilla.gnome.org/show_bug.cgi?id=734370
* test: Use system paths in installed testsOndrej Holy2016-05-301-3/+8
| | | | | | | | Installed tests are still using buildroot paths, which causes test failures if buildroot is not available. System paths has to be used instead for the installed tests. https://bugzilla.gnome.org/show_bug.cgi?id=734370
* test: Skip smb tests if smbd is not installedOndrej Holy2016-05-301-0/+2
| | | | | | | | | | | Currently smb tests fail if smbd is not installed with the following error: FileNotFoundError: [Errno 2] No such file or directory: 'smbd' Smb tests should be skipped if smbd is not installed to avoid test suite failures. https://bugzilla.gnome.org/show_bug.cgi?id=734370
* test: Skip ftp tests if twistd is not installedOndrej Holy2016-05-301-0/+2
| | | | | | | | | | | Currently ftp tests fail if twistd is not installed with the following error: FileNotFoundError: [Errno 2] No such file or directory: 'twistd' Sftp tests should be skipped if twistd is not installed to avoid test suite failures. https://bugzilla.gnome.org/show_bug.cgi?id=734370