From 0ad41c748f939700171a90a6ea22e2bb35820906 Mon Sep 17 00:00:00 2001 From: Yanis HAMOUDI <yanis.hamoudi@etu.u-pec.fr> Date: Fri, 28 Feb 2025 20:57:21 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20test=20n=C2=B018=20avec=20des=20sy?= =?UTF-8?q?mboles=20sp=C3=A9ciaux=20dans=20les=20chemins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/C/test-18-path-characters/bake/Bakefile | 21 +++++++++++++++++++ tests/C/test-18-path-characters/make/Makefile | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 tests/C/test-18-path-characters/bake/Bakefile create mode 100644 tests/C/test-18-path-characters/make/Makefile diff --git a/tests/C/test-18-path-characters/bake/Bakefile b/tests/C/test-18-path-characters/bake/Bakefile new file mode 100644 index 0000000..aa30243 --- /dev/null +++ b/tests/C/test-18-path-characters/bake/Bakefile @@ -0,0 +1,21 @@ +all: ~/temp/test.txt /tmp/test.txt ./path/with/slashes/test.txt path-with-dashes.txt path_with_underscores.txt + +~/temp/test.txt: + mkdir -p ~/temp + echo "Content in home directory" > ~/temp/test.txt + +/tmp/test.txt: + echo "Content in tmp directory" > /tmp/test.txt + +./path/with/slashes/test.txt: + mkdir -p ./path/with/slashes + echo "Content in path with slashes" > ./path/with/slashes/test.txt + +path-with-dashes.txt: + echo "Content in file with dashes" > path-with-dashes.txt + +path_with_underscores.txt: + echo "Content in file with underscores" > path_with_underscores.txt + +clean: + rm -rf ~/temp/test.txt /tmp/test.txt ./path/with/slashes path-with-dashes.txt path_with_underscores.txt \ No newline at end of file diff --git a/tests/C/test-18-path-characters/make/Makefile b/tests/C/test-18-path-characters/make/Makefile new file mode 100644 index 0000000..aa30243 --- /dev/null +++ b/tests/C/test-18-path-characters/make/Makefile @@ -0,0 +1,21 @@ +all: ~/temp/test.txt /tmp/test.txt ./path/with/slashes/test.txt path-with-dashes.txt path_with_underscores.txt + +~/temp/test.txt: + mkdir -p ~/temp + echo "Content in home directory" > ~/temp/test.txt + +/tmp/test.txt: + echo "Content in tmp directory" > /tmp/test.txt + +./path/with/slashes/test.txt: + mkdir -p ./path/with/slashes + echo "Content in path with slashes" > ./path/with/slashes/test.txt + +path-with-dashes.txt: + echo "Content in file with dashes" > path-with-dashes.txt + +path_with_underscores.txt: + echo "Content in file with underscores" > path_with_underscores.txt + +clean: + rm -rf ~/temp/test.txt /tmp/test.txt ./path/with/slashes path-with-dashes.txt path_with_underscores.txt \ No newline at end of file