Ajout du test n°18 avec des symboles spéciaux dans les chemins

This commit is contained in:
Yanis HAMOUDI 2025-02-28 20:57:21 +01:00
parent 2d7e994045
commit 0ad41c748f
2 changed files with 42 additions and 0 deletions
tests/C/test-18-path-characters

@ -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

@ -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