ajout de pleins de tests et reorganisation des fichiers

This commit is contained in:
Hugo LAMY
2021-12-21 12:21:55 +01:00
parent 85424b47c4
commit 81db47d2f4
13 changed files with 2007 additions and 875 deletions

View File

@@ -65,3 +65,92 @@ $'
hallo\hoi
\hallo
\hallo
/bin/ls
touch a
a
/bin/ls -a
touch a
a
/bin/ls | /usr/bin/grep a
touch aa ab ac
/bin/ls | /usr/bin/grep a | /usr/bin/grep c
touch aa ab ac
ls
touch a
a
ls -a
touch a
a
ls | grep a
touch aa ab ac
ls | grep a | grep c
touch aa ab ac
echo hello world | cat
no_such_file
./no_such_file
/bin/ls/no_such_file
/bin/no_such_dir/file
perm
touch perm
chmod 000 perm
./perm
touch perm
chmod 000 perm
perm
touch perm
chmod 100 perm
./perm
touch perm
chmod 100 perm
perm
touch perm
chmod 300 perm
./perm
touch perm
chmod 300 perm
perm
touch perm
chmod 500 perm
./perm
touch perm
chmod 500 perm
./empty
touch empty
chmod +x empty
dir
mkdir dir
./dir
mkdir dir
./exe
printf "#!/bin/bash\necho 42" > exe
chmod +x exe
ln -s exe sym
chmod -h -x sym
echo a | $NO_ENV | cat
unset NO_ENV