mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
New GIO testing module working over real data
2008-02-06 Tomas Bzatek <tbzatek@redhat.com> * tests/Makefile.am: * tests/live-g-file.c: * tests/live-g-file.txt: New GIO testing module working over real data svn path=/trunk/; revision=6465
This commit is contained in:
parent
c907c2832e
commit
d87c1c0af4
@ -1,3 +1,10 @@
|
||||
2008-02-06 Tomas Bzatek <tbzatek@redhat.com>
|
||||
|
||||
* tests/Makefile.am:
|
||||
* tests/live-g-file.c:
|
||||
* tests/live-g-file.txt:
|
||||
New GIO testing module working over real data
|
||||
|
||||
2008-02-06 Tomas Bzatek <tbzatek@redhat.com>
|
||||
|
||||
* glocalfileoutputstream.c (g_local_file_output_stream_close):
|
||||
|
@ -16,7 +16,7 @@ progs_ldadd = \
|
||||
$(top_builddir)/gio/libgio-2.0.la
|
||||
|
||||
|
||||
TEST_PROGS += memory-input-stream g-file g-file-info data-input-stream data-output-stream
|
||||
TEST_PROGS += memory-input-stream g-file g-file-info data-input-stream data-output-stream live-g-file
|
||||
|
||||
memory_input_stream_SOURCES = memory-input-stream.c
|
||||
memory_input_stream_LDADD = $(progs_ldadd)
|
||||
@ -33,4 +33,5 @@ data_input_stream_LDADD = $(progs_ldadd)
|
||||
data_output_stream_SOURCES = data-output-stream.c
|
||||
data_output_stream_LDADD = $(progs_ldadd)
|
||||
|
||||
|
||||
live_g_file_SOURCES = live-g-file.c
|
||||
live_g_file_LDADD = $(progs_ldadd)
|
||||
|
1160
gio/tests/live-g-file.c
Normal file
1160
gio/tests/live-g-file.c
Normal file
File diff suppressed because it is too large
Load Diff
27
gio/tests/live-g-file.txt
Normal file
27
gio/tests/live-g-file.txt
Normal file
@ -0,0 +1,27 @@
|
||||
Before you start testing it would be good to explain how it works.
|
||||
|
||||
The script works in three modes:
|
||||
1. read-only (no special arguments) - suitable for read-only backends. Just
|
||||
create the sample structure using the second mode, pack it (tar -p is
|
||||
preffered to preserve unix modes) and put it on a reachable place.
|
||||
2. create-structure - only creates reference structure for later testing
|
||||
in read-only mode
|
||||
3. write mode - full test suite, creates testing structure and performs all
|
||||
read and write tests. Please note the delete/move tests are included
|
||||
in this mode and target directory structure is unusable after the script
|
||||
is finished.
|
||||
|
||||
|
||||
To see the list of available parameters just run 'live-g-file --help'
|
||||
|
||||
|
||||
Notes:
|
||||
- it's advised to clean target directory first, otherwise some tests might fail
|
||||
(i.e. the tests creating testing structure)
|
||||
|
||||
|
||||
Tested:
|
||||
- local filesystem (/tmp/...)
|
||||
- file:// uri (file:///tmp/...)
|
||||
- locatest:// gvfs backend (localtest:///tmp/...)
|
||||
- FAT16 filesystem (no POSIX extensions)
|
Loading…
Reference in New Issue
Block a user