Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some changes for Windows (shell) compatibility and comment the sync call to test...
[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 \r
16 $ ../tesh --log="log.thresh:info tesh.fmt:%m%n"\r
17 \r
18 # The next command checks that there is a testdir_temp in the upper directory, \r
19 # ie that mkdir and cd both worked.\r
20 #$ test -e ../testdir_temp\r
21 \r
22 $ cd ..\r
23 $ rmdir testdir_temp\r