Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / tools / tesh / setenv.tesh
1 #!/usr/bin/env tesh
2 # This suite builds and uses a program returning 1.
3 # tesh is instructed of this return code and must not whine.
4
5 ! output ignore
6 $ cmake -E remove_directory temp_testdir_setenv
7
8 $ mkdir temp_testdir_setenv
9 $ cd temp_testdir_setenv
10
11 < print "tesh_test_toto=$ENV{tesh_test_toto}";
12 $ mkfile testenv.pl
13
14 ! setenv tesh_test_toto=blah
15 $ perl testenv.pl
16 > tesh_test_toto=blah
17
18 $ cd ..
19
20 ! output ignore
21 $ cmake -E remove_directory temp_testdir_setenv