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/03/07 09:52] – alexxconsthunar:dev:integration_testcases [2026/10/11 11:09] (current) – alexxcons
Line 10: Line 10:
  
 == Memory Leakage  == == 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   * check used ram of thunar in taskmanager after each test and compare with previous thunar version
     * Ram at least should not increase dramatically     * Ram at least should not increase dramatically
-  * Build thunar with ''./autogen.sh --enable-debug=full'' +  * Build thunar with <code>./autogen.sh --enable-debug=full</code>
   * Check if any leakage is reported during testing (report done when closing thunar)   * 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 + shortcuts pane     * Open a folder in list view + shortcuts pane
     * Open the same folder in icon view + tree 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''+    * File Deletion: ''for i in {1..20000}; do rm "$i"; done''
  
   * Trashing1   * Trashing1
     * Empty trash (to get a clean start)     * Empty trash (to get a clean start)
-    * Open a folder in list view + shortcuts pane +    * ''for i in {1..500}; do touch "$i"; done''
-    * Open the same folder in icon view + tree pane +
-    * 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 52: Line 52:
     * Open the same folder in icon view + tree pane     * Open the same folder in icon view + tree pane
     * Open a terminal in that folder and create a some files     * Open a terminal in that folder and create a some files
-      * ''touch file1'' +      * ''mkdir folder1'' 
-      * ''touch file2'' +      * ''mkdir folder2'' 
-      * ''touch .hidden''+      * ''mkdir .hidden''
     * Open all files as well in the bulk renamer     * Open all files as well in the bulk renamer
     * check G_FILE_MONITOR_EVENT_MOVED_OUT:     * check G_FILE_MONITOR_EVENT_MOVED_OUT:
-      * ''mv file1 ..''+      * ''mv folder1 ..''
     * check G_FILE_MONITOR_EVENT_MOVED_IN:     * check G_FILE_MONITOR_EVENT_MOVED_IN:
-      * ''mv ../file1 .''+      * ''mv ../folder1 .''
     * check G_FILE_MONITOR_EVENT_RENAMED     * 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       * 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''
         * ''mv hidden .hidden''         * ''mv hidden .hidden''
 +      * ''mkdir a && mv a a.bin && rm -rf a.bin && mkdir a && mv a a.bin''
 +        * a.bin should be visible and a should be gone
       * Save file via mousepad (creates some temp files and then replaces the original one via rename/move)       * Save file via mousepad (creates some temp files and then replaces the original one via rename/move)
 +      * Create and enter some folder ''foo''. Press back and then rename that folder via F2.
     * G_FILE_MONITOR_EVENT_CHANGED     * G_FILE_MONITOR_EVENT_CHANGED
       * Sort files by date in both views        * Sort files by date in both views 
-      * ''touch file1'' should bring file1 to top +      * ''touch folder1'' should bring file1 to top 
-      * ''touch file2'' should bring file2 to top +      * ''touch folder2'' should bring file2 to top 
-      * Check if the same works if saved via mousepad+      * Check if the same works if files are saved via mousepad
     * G_FILE_MONITOR_EVENT_DELETED     * G_FILE_MONITOR_EVENT_DELETED
-      * ''rm .hidden'' (try that with and without having hidden files enabled in both views) +      * ''rm -rf .hidden'' (try that with and without having hidden files enabled in both views) 
 +      * for i in {1..1000}; do mkdir test; rm -rf test; done (no ghost files should remain)
   * 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 (The changes have to be visible in thunar)     * Create, rename, delete a file via 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