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
- Each terminal command should update the thunar views accordingly
- Open a folder in list view on some local folder
- Open the same folder in icon view
- Open a terminal in that folder and create a some files
touch file1
touch file2
touch .hidden
- check G_FILE_MONITOR_EVENT_MOVED_OUT:
mv file ..
- check G_FILE_MONITOR_EVENT_MOVED_IN:
mv ../file .
- 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 toptouch 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
- 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