summaryrefslogtreecommitdiff
path: root/data/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-23 01:06:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-23 01:06:11 +0300
commit2b6106c41f3959d4deb8efc58c9055de0339959e (patch)
tree2ae271cd59997d4fe128e0173c0224e28417b34b /data/test
parent76667ef0fa911fc8bf37df72896645dbfbbc0763 (diff)
downloadplus-2b6106c41f3959d4deb8efc58c9055de0339959e.tar.gz
plus-2b6106c41f3959d4deb8efc58c9055de0339959e.tar.bz2
plus-2b6106c41f3959d4deb8efc58c9055de0339959e.tar.xz
plus-2b6106c41f3959d4deb8efc58c9055de0339959e.zip
Impliment basic VirtFsDir for virtual fs based on directories.
Api similar to VirtFs. VirtFsDir unused for now.
Diffstat (limited to 'data/test')
-rw-r--r--data/test/CMakeLists.txt2
-rw-r--r--data/test/Makefile.am2
-rw-r--r--data/test/dir2/CMakeLists.txt6
-rw-r--r--data/test/dir2/Makefile.am9
-rw-r--r--data/test/dir2/file1.txt1
-rw-r--r--data/test/dir2/file2.txt1
6 files changed, 19 insertions, 2 deletions
diff --git a/data/test/CMakeLists.txt b/data/test/CMakeLists.txt
index 11d0b5b61..2141da3cc 100644
--- a/data/test/CMakeLists.txt
+++ b/data/test/CMakeLists.txt
@@ -21,4 +21,4 @@ SET(FILES
INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test)
-ADD_SUBDIRECTORY(dir1)
+ADD_SUBDIRECTORY(dir1 dir2)
diff --git a/data/test/Makefile.am b/data/test/Makefile.am
index 2f7b7f0dd..3d4fa7f8e 100644
--- a/data/test/Makefile.am
+++ b/data/test/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = dir1
+SUBDIRS = dir1 dir2
testdir = $(pkgdatadir)/data/test
diff --git a/data/test/dir2/CMakeLists.txt b/data/test/dir2/CMakeLists.txt
new file mode 100644
index 000000000..60f5429ec
--- /dev/null
+++ b/data/test/dir2/CMakeLists.txt
@@ -0,0 +1,6 @@
+SET(FILES
+ file1.txt
+ file2.txt
+ )
+
+INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test/dir2)
diff --git a/data/test/dir2/Makefile.am b/data/test/dir2/Makefile.am
new file mode 100644
index 000000000..17934f3df
--- /dev/null
+++ b/data/test/dir2/Makefile.am
@@ -0,0 +1,9 @@
+dir2dir = $(pkgdatadir)/data/test/dir2
+
+dir2_DATA = \
+ file1.txt \
+ file2.txt
+
+EXTRA_DIST = \
+ $(dir2_DATA) \
+ CMakeLists.txt
diff --git a/data/test/dir2/file1.txt b/data/test/dir2/file1.txt
new file mode 100644
index 000000000..7d4116bf2
--- /dev/null
+++ b/data/test/dir2/file1.txt
@@ -0,0 +1 @@
+file1 test line 1
diff --git a/data/test/dir2/file2.txt b/data/test/dir2/file2.txt
new file mode 100644
index 000000000..aff8265a1
--- /dev/null
+++ b/data/test/dir2/file2.txt
@@ -0,0 +1 @@
+file2 test line 1