summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-08 11:14:52 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-08 11:14:52 -0400
commit1cebe105ca3d2a1d4c23fa0ed33af6a79dbf4fec (patch)
tree668598d0d97f72acf0e07fa24788b16219a12bdb /tests
parent8a2d1f2ff99144f3fd934ebc6fe5ca1c6d9bc47e (diff)
downloaddconf-1cebe105ca3d2a1d4c23fa0ed33af6a79dbf4fec.tar.gz
tests/: add forgotten test data
Add it to EXTRA_DIST in the Makefile.am as well.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am10
-rw-r--r--tests/gvdbs/nested_gvdbbin0 -> 371 bytes
-rw-r--r--tests/profile/broken-profile2
-rw-r--r--tests/profile/colourful13
-rw-r--r--tests/profile/dos2
-rw-r--r--tests/profile/empty-profile0
-rw-r--r--tests/profile/many-sources10
-rw-r--r--tests/profile/no-newline-longline1
-rw-r--r--tests/profile/test-profile1
9 files changed, 38 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3c51359..6e6b415 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -48,7 +48,8 @@ EXTRA_DIST = \
gvdbs/example_gvdb.big-endian \
gvdbs/file_empty \
gvdbs/file_too_small \
- gvdbs/invalid_header
+ gvdbs/invalid_header \
+ gvdbs/nested_gvdb
TEST_PROGS += gdbus-thread
gdbus_thread_CFLAGS = $(AM_CFLAGS) -DDBUS_BACKEND=\"/gdbus/thread\"
@@ -72,4 +73,11 @@ TEST_PROGS += client
client_LDADD = $(stub_client_LIBS) $(gio_LIBS)
client_SOURCES = client.c
EXTRA_DIST += \
+ profile/broken-profile \
+ profile/colourful \
+ profile/dos \
+ profile/empty-profile \
+ profile/many-sources \
+ profile/no-newline-longline \
+ profile/test-profile \
profile/will-never-exist
diff --git a/tests/gvdbs/nested_gvdb b/tests/gvdbs/nested_gvdb
new file mode 100644
index 0000000..b593e38
--- /dev/null
+++ b/tests/gvdbs/nested_gvdb
Binary files differ
diff --git a/tests/profile/broken-profile b/tests/profile/broken-profile
new file mode 100644
index 0000000..d293cf0
--- /dev/null
+++ b/tests/profile/broken-profile
@@ -0,0 +1,2 @@
+a b c d e
+f g h i j
diff --git a/tests/profile/colourful b/tests/profile/colourful
new file mode 100644
index 0000000..5a69bb5
--- /dev/null
+++ b/tests/profile/colourful
@@ -0,0 +1,13 @@
+# this is an interesting dconf profile file
+ # it shows some of the possible weird things you can do
+
+ user-db:user # comments can be like this
+
+# we can have comments that are extremely long. we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.
+
+ system-db:other # we can have comments that are extremely long. we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.we can have comments that are extremely long.
+
+system-db:verylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongnameverylongname
+
+# there is no newline after this last line
+system-db:nonewline \ No newline at end of file
diff --git a/tests/profile/dos b/tests/profile/dos
new file mode 100644
index 0000000..cc38458
--- /dev/null
+++ b/tests/profile/dos
@@ -0,0 +1,2 @@
+user-db:user
+system-db:site
diff --git a/tests/profile/empty-profile b/tests/profile/empty-profile
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/profile/empty-profile
diff --git a/tests/profile/many-sources b/tests/profile/many-sources
new file mode 100644
index 0000000..15fe5ca
--- /dev/null
+++ b/tests/profile/many-sources
@@ -0,0 +1,10 @@
+user-db:user
+system-db:local
+system-db:room
+system-db:floor
+system-db:building
+system-db:site
+system-db:region
+system-db:division
+system-db:country
+system-db:global
diff --git a/tests/profile/no-newline-longline b/tests/profile/no-newline-longline
new file mode 100644
index 0000000..93193aa
--- /dev/null
+++ b/tests/profile/no-newline-longline
@@ -0,0 +1 @@
+# this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. this long line has no newline at the end. \ No newline at end of file
diff --git a/tests/profile/test-profile b/tests/profile/test-profile
new file mode 100644
index 0000000..3a511c2
--- /dev/null
+++ b/tests/profile/test-profile
@@ -0,0 +1 @@
+user-db:test