aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-21 20:08:00 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-21 20:08:00 +0200
commit89ccc2b233822409c7f104facac9d3293252eea4 (patch)
treeae65b1b970803c0e51be8f1322e68656f11bd546
parentrealpath -> readlink (diff)
downloadconfig-links-89ccc2b233822409c7f104facac9d3293252eea4.tar.gz
config-links-89ccc2b233822409c7f104facac9d3293252eea4.zip
test: shuffle files around
-rw-r--r--Makefile2
-rw-r--r--test/docker-compose.yml2
-rwxr-xr-xtest/linux-home/test.sh (renamed from test/integration/test.sh)0
-rw-r--r--test/local/dirs/dest/1.txt (renamed from test/unit/dest/1.txt)0
-rw-r--r--test/local/dirs/dest/bar/3.txt (renamed from test/unit/dest/bar/3.txt)0
-rw-r--r--test/local/dirs/src/%DEST%/1.txt (renamed from test/unit/src/%DEST%/1.txt)0
-rw-r--r--test/local/dirs/src/%DEST%/bar/3.txt (renamed from test/unit/src/%DEST%/bar/3.txt)0
-rw-r--r--test/local/dirs/src/%DEST%/bar/baz/4.txt (renamed from test/unit/src/%DEST%/bar/baz/4.txt)0
-rw-r--r--test/local/dirs/src/%DEST%/foo/2.txt (renamed from test/unit/src/%DEST%/foo/2.txt)0
-rwxr-xr-xtest/local/test.sh (renamed from test/unit/test.sh)4
10 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 054e75b..56340ea 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ test/all: test/local test/docker
.PHONY: test/local
test/local:
- ./test/unit/test.sh
+ ./test/local/test.sh
test/docker/%: DO
cd test && \
diff --git a/test/docker-compose.yml b/test/docker-compose.yml
index 76546c4..3acdef7 100644
--- a/test/docker-compose.yml
+++ b/test/docker-compose.yml
@@ -10,4 +10,4 @@ services:
command:
- sh
- -c
- - /src/test/unit/test.sh && /src/test/integration/test.sh
+ - /src/test/local/test.sh && /src/test/linux-home/test.sh
diff --git a/test/integration/test.sh b/test/linux-home/test.sh
index f4b1028..f4b1028 100755
--- a/test/integration/test.sh
+++ b/test/linux-home/test.sh
diff --git a/test/unit/dest/1.txt b/test/local/dirs/dest/1.txt
index 3a2e3f4..3a2e3f4 100644
--- a/test/unit/dest/1.txt
+++ b/test/local/dirs/dest/1.txt
diff --git a/test/unit/dest/bar/3.txt b/test/local/dirs/dest/bar/3.txt
index a83d1d5..a83d1d5 100644
--- a/test/unit/dest/bar/3.txt
+++ b/test/local/dirs/dest/bar/3.txt
diff --git a/test/unit/src/%DEST%/1.txt b/test/local/dirs/src/%DEST%/1.txt
index d00491f..d00491f 100644
--- a/test/unit/src/%DEST%/1.txt
+++ b/test/local/dirs/src/%DEST%/1.txt
diff --git a/test/unit/src/%DEST%/bar/3.txt b/test/local/dirs/src/%DEST%/bar/3.txt
index 00750ed..00750ed 100644
--- a/test/unit/src/%DEST%/bar/3.txt
+++ b/test/local/dirs/src/%DEST%/bar/3.txt
diff --git a/test/unit/src/%DEST%/bar/baz/4.txt b/test/local/dirs/src/%DEST%/bar/baz/4.txt
index b8626c4..b8626c4 100644
--- a/test/unit/src/%DEST%/bar/baz/4.txt
+++ b/test/local/dirs/src/%DEST%/bar/baz/4.txt
diff --git a/test/unit/src/%DEST%/foo/2.txt b/test/local/dirs/src/%DEST%/foo/2.txt
index 0cfbf08..0cfbf08 100644
--- a/test/unit/src/%DEST%/foo/2.txt
+++ b/test/local/dirs/src/%DEST%/foo/2.txt
diff --git a/test/unit/test.sh b/test/local/test.sh
index f693aa1..99b426f 100755
--- a/test/unit/test.sh
+++ b/test/local/test.sh
@@ -17,9 +17,9 @@ readonly src_dir_name='src'
readonly dest_dir_name='dest'
readonly alt_dest_dir_name='alt_dest'
-src_dir_path="$script_dir/$src_dir_name"
+src_dir_path="$script_dir/dirs/$src_dir_name"
readonly src_dir_path
-dest_dir_path="$script_dir/$dest_dir_name"
+dest_dir_path="$script_dir/dirs/$dest_dir_name"
readonly dest_dir_path
test_root_dir=