Xfce Wiki

Sub domains
 

This is an old revision of the document!


Integration Testcases

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.

For all tests, do the following:

  • Enable folder specific setting
  • Enable intermediate files on copy
  • Enable thumbnailing (Always)
Performance
  • File IO
    • Open a folder in list view
    • Open the same folder in icon view
    • Open a terminal in that folder
    • File Creation: for i in {1..10000}; do touch “$i”; done
    • STRG+A on both views to select them all
    • File Deletion: for i in {1..10000}; do rm “$i”; done (this still causes freeze, see #114)
    • check used ram of thunar in taskmanager
  • Trashing
    • Empty trash (to get a clean start)
    • Open a folder in list view
    • 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)
    • STRG+A + right click –> trash
    • Press Undo
    • Press Redo
    • Open trash folder with both windows
    • Empty trash
    • check used ram of thunar in taskmanager
Synchronization
  • File Monitoring
    • Open a folder in list view
    • Open the same folder in icon view
    • Open a terminal in that folder and create a file (touch file)
    • check G_FILE_MONITOR_EVENT_MOVED_OUT:
      • mv file ..
    • check G_FILE_MONITOR_EVENT_MOVED_IN:
      • mv ../file .
    • check G_FILE_MONITOR_EVENT_RENAMED
    • TODO .. continue here
    • Rename hidden
    • mousepad
  • G_FILE_MONITOR_EVENT_CHANGED
  • G_FILE_MONITOR_EVENT_DELETED
  • On a gvfs mount
    • Open some folder at sftp://user@localhost
    • 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

TODO: Add more use-cases