Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
autogenerated files (sorry)
[simgrid.git] / tools / tesh / cd.tesh
1 #! ./tesh
2
3 # This example uses the cd command
4
5 $ rm -rf testdir_temp
6 $ mkdir testdir_temp
7 $ cd testdir_temp
8
9 # Check that there is nothing in the current dir (which must be testdir_temp)
10 $ ls
11
12 # Check that tesh detects properly cd to non-existing directories
13 ! expect return 4
14 < $ cd toto
15 > Test suite from stdin
16 > Chdir to toto failed: No such file or directory
17 > Test suite `(stdin)': NOK (system error)
18 $ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
19
20 # The next command checks that there is a testdir_temp in the upper directory, 
21 # ie that mkdir and cd both worked.
22 $ test -e ../testdir_temp
23
24 $ cd ..
25 $ rmdir testdir_temp