Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
500b6d18af249a5e365d7952b6f906be0d4dd611
[simgrid.git] / tools / tesh2 / examples / cd.tesh
1 #! ./tesh\r
2 \r
3 # This example uses the cd command\r
4 \r
5 $ rm -rf testdir_temp\r
6 $ mkdir testdir_temp\r
7 $ cd testdir_temp\r
8 \r
9 # Check that there is nothing in the current dir (which must be testdir_temp)\r
10 $ ls\r
11 \r
12 # Check that tesh detects properly cd to non-existing directories\r
13 ! expect return $ENOENT\r
14 < $ cd toto\r
15 $ ../tesh --log="log.thresh:info tesh.fmt:%m%n"\r
16 \r
17 # The next command checks that there is a testdir_temp in the upper directory, \r
18 # ie that mkdir and cd both worked.\r
19 #$ test -e ../testdir_temp\r
20 \r
21 $ cd ..\r
22 $ rmdir testdir_temp\r