From 35ff05fe5c98a26581a9282730a0a624605b70e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Feb 2017 03:36:05 +0300 Subject: Add more unit tests for virtfs. Also add some testing files. --- data/test/CMakeLists.txt | 3 +++ data/test/Makefile.am | 3 +++ data/test/dir1/CMakeLists.txt | 5 +++++ data/test/dir1/Makefile.am | 8 ++++++++ data/test/dir1/file1.txt | 2 ++ data/test/test2.txt | 1 + 6 files changed, 22 insertions(+) create mode 100644 data/test/dir1/CMakeLists.txt create mode 100644 data/test/dir1/Makefile.am create mode 100644 data/test/dir1/file1.txt create mode 120000 data/test/test2.txt (limited to 'data') diff --git a/data/test/CMakeLists.txt b/data/test/CMakeLists.txt index 73802bc56..11d0b5b61 100644 --- a/data/test/CMakeLists.txt +++ b/data/test/CMakeLists.txt @@ -13,9 +13,12 @@ SET(FILES serverlistplus.xml simplefile.txt test.txt + test2.txt test.zip testintmap.xml units.xml ) INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test) + +ADD_SUBDIRECTORY(dir1) diff --git a/data/test/Makefile.am b/data/test/Makefile.am index de8aeacc8..2f7b7f0dd 100644 --- a/data/test/Makefile.am +++ b/data/test/Makefile.am @@ -1,3 +1,5 @@ +SUBDIRS = dir1 + testdir = $(pkgdatadir)/data/test test_DATA = \ @@ -15,6 +17,7 @@ test_DATA = \ serverlistplus.xml \ simplefile.txt \ test.txt \ + test2.txt \ test.zip \ testintmap.xml \ units.xml diff --git a/data/test/dir1/CMakeLists.txt b/data/test/dir1/CMakeLists.txt new file mode 100644 index 000000000..1c032280b --- /dev/null +++ b/data/test/dir1/CMakeLists.txt @@ -0,0 +1,5 @@ +SET(FILES + file1.txt + ) + +INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test/dir1) diff --git a/data/test/dir1/Makefile.am b/data/test/dir1/Makefile.am new file mode 100644 index 000000000..e731f75f2 --- /dev/null +++ b/data/test/dir1/Makefile.am @@ -0,0 +1,8 @@ +dir1dir = $(pkgdatadir)/data/test/dir1 + +dir1_DATA = \ + file1.txt + +EXTRA_DIST = \ + $(dir1_DATA) \ + CMakeLists.txt diff --git a/data/test/dir1/file1.txt b/data/test/dir1/file1.txt new file mode 100644 index 000000000..6a14a1b0f --- /dev/null +++ b/data/test/dir1/file1.txt @@ -0,0 +1,2 @@ +test line 1 +test line 2 \ No newline at end of file diff --git a/data/test/test2.txt b/data/test/test2.txt new file mode 120000 index 000000000..541cb64f9 --- /dev/null +++ b/data/test/test2.txt @@ -0,0 +1 @@ +test.txt \ No newline at end of file -- cgit v1.2.3-70-g09d2