summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteph Enders <smenders@gmail.com>2023-02-26 22:06:40 -0500
committerSteph Enders <smenders@gmail.com>2023-02-26 22:06:40 -0500
commit9c137d4a179b38f7187e296ae3b0303f5e479c60 (patch)
treee06f5db7e99863d3a56c324b384f0819c34449af /test
parent0791c354995775becf558f4b0031daf55477f88f (diff)
Support splitting files with --- / added tests
Added some tests to verify that you can now split your files with --- to join multiple queries into a single file. This could be for if you have two separate regexes to run or even two sources you want to run the same query against. Example file: ```example.conf query=.*example.conf$ source=/path/to/example/ target=/path/to/dest/ --- query=.*different.csv$ soruce=/path/to/different/ target=/path/to/dest/ ```
Diffstat (limited to 'test')
-rw-r--r--test/confs/double.conf8
-rw-r--r--test/confs/empty.conf0
-rw-r--r--test/confs/single.conf3
-rw-r--r--test/confs/triple.conf11
4 files changed, 22 insertions, 0 deletions
diff --git a/test/confs/double.conf b/test/confs/double.conf
new file mode 100644
index 0000000..df1551c
--- /dev/null
+++ b/test/confs/double.conf
@@ -0,0 +1,8 @@
+query=.*/b.txt
+source=./test/src/
+target=./test/dest/
+---
+query=.*/c.txt
+source=./test/src/
+target=./test/dest/
+
diff --git a/test/confs/empty.conf b/test/confs/empty.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/confs/empty.conf
diff --git a/test/confs/single.conf b/test/confs/single.conf
new file mode 100644
index 0000000..33a98d7
--- /dev/null
+++ b/test/confs/single.conf
@@ -0,0 +1,3 @@
+query=.*/a.txt
+source=./test/src/
+target=./test/dest/
diff --git a/test/confs/triple.conf b/test/confs/triple.conf
new file mode 100644
index 0000000..4d5c384
--- /dev/null
+++ b/test/confs/triple.conf
@@ -0,0 +1,11 @@
+query=.*/d.txt
+source=./test/src/
+target=./test/dest/
+---
+query=.*/e.txt
+source=./test/src/
+target=./test/dest/
+---
+query=.*/f.txt
+source=./test/src/
+target=./test/dest/