Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
thunar:dev:integration_testcases [2024/01/22 18:54] alexxconsthunar:dev:integration_testcases [2024/04/25 15:04] (current) alexxcons
Line 1: Line 1:
-Before doing a release or merging a substantial patch, it might make sense to run some test cases to compare thecurrent thunar behavior/performance with the latest release. Here some tests:+===== Integration Testcases =====
  
-Enable folder specific setting +Before doing a release or merging a substantial patch, it might make sense to run some test cases to compare the current thunar behavior/performance with the latest release. That is, in order to prevent regressions. 
-Enable intermediate files on copy + 
-Enable thumbnailing (Always)+For all tests, do the following: 
 + 
 +  * Enable folder specific setting 
 +  Enable intermediate files on copy  
 +  Enable thumbnailing (Always) 
 + 
 +== Memory Leakage  == 
 +  * Run all below testcases with "valgrind thunar/thunar" 
 +  * check used ram of thunar in taskmanager after each test and compare with previous thunar version 
 +    * Ram at least should not increase dramatically 
 +  * Build thunar with <code>./autogen.sh --enable-debug=full</code> 
 +  * Check if any leakage is reported during testing (report done when closing thunar) 
 +  * See the last post of [[https://gitlab.xfce.org/xfce/thunar/-/issues/573|this issue]] for known leaks. Make sure no new leaks were added.
  
 == Performance == == Performance ==
  
-  * File IO +  * Preparation for testing 
-    * Open a folder in list view +    * Create   
-    * Open the same folder in icon view+    * Open a folder in list view + shortcuts pane 
 +    * Open the same folder in icon view + tree pane
     * Open a terminal in that folder     * Open a terminal in that folder
-    * File Creation: ''for i in {1..10000}; do touch "$i"; done''+ 
 +  * File IO 
 +    * File Creation: ''for i in {1..20000}; do touch "$i"; done''
     * STRG+A on both views to select them all     * STRG+A on both views to select them all
-    * File Deletion: ''for i in {1..10000}; do rm "$i"; done'' (this still causes freeze) +    * File Deletion: ''for i in {1..20000}; do rm "$i"; done''
-    * check used ram of thunar in taskmanager+
  
-  * Trashing+  * Trashing1
     * Empty trash (to get a clean start)     * Empty trash (to get a clean start)
-    * Open a folder in list view +    * ''for i in {1..500}; do touch "$i"; done''
-    * Open the same folder in icon view +
-    * Open a terminal in that folder +
-      * ''for i in {1..500}; do touch "$i"; done''+
     * Select and copy them all (STRG+A + STRG+C + STRG+V)     * Select and copy them all (STRG+A + STRG+C + STRG+V)
     * STRG+A + right click --> trash     * STRG+A + right click --> trash
Line 28: Line 39:
     * Open trash folder with both windows     * Open trash folder with both windows
     * Empty trash     * Empty trash
-    * check used ram of thunar in taskmanager 
  
-== Synchronization ==+  * Trashing2 
 +    * This one currently freezes thunar for ~10sec ([[https://gitlab.xfce.org/xfce/thunar/-/issues/141|issue #141]]) 
 +      * ''mkdir test && cd test'' 
 +      * ''for i in {1..10000}; do touch “$i”; done'' 
 +      * ''gio trash *'' 
 + 
 +== Synchronization  == 
 + 
 +  * File Monitoring 
 +    * Each terminal command should update the thunar views accordingly 
 +    * Open a folder in list view on some local folder + shortcuts pane 
 +    * Open the same folder in icon view + tree pane 
 +    * Open a terminal in that folder and create a some files 
 +      * ''touch file1'' 
 +      * ''touch file2'' 
 +      * ''touch .hidden'' 
 +    * Open all files as well in the bulk renamer 
 +    * check G_FILE_MONITOR_EVENT_MOVED_OUT: 
 +      * ''mv file1 ..'' 
 +    * check G_FILE_MONITOR_EVENT_MOVED_IN: 
 +      * ''mv ../file1 .'' 
 +    * check G_FILE_MONITOR_EVENT_RENAMED 
 +      * Hidden files - Do the following first with show-hidden enabled on both windows, and then with having it disabled 
 +        * ''mv .hidden hidden'' 
 +        * ''mv hidden .hidden'' 
 +      * Save file via mousepad (creates some temp files and then replaces the original one via rename/move) 
 +    * G_FILE_MONITOR_EVENT_CHANGED 
 +      * Sort files by date in both views  
 +      * ''touch file1'' should bring file1 to top 
 +      * ''touch file2'' should bring file2 to top 
 +      * Check if the same works if saved via mousepad 
 +    * G_FILE_MONITOR_EVENT_DELETED 
 +      * ''rm .hidden'' (try that with and without having hidden files enabled in both views)
  
   * On a gvfs mount   * On a gvfs mount
     * Open some folder at <nowiki>sftp://user@localhost</nowiki>     * Open some folder at <nowiki>sftp://user@localhost</nowiki>
-    * Create, rename, delete a file via thunar +    * Create, rename, delete a file via thunar (The changes have to be visible in thunar)
-    * (The changes have to be visible in thunar)+
     * Open the same folder via local path. A file created there should show after F5     * Open the same folder via local path. A file created there should show after F5
- 
-TODO: Add more use-cases