2014-11-21 23:51:28 +02:00
|
|
|
Test $PWD, $_autoenv_from_dir and _autoenv_to_dir.
|
2014-11-16 13:05:16 +02:00
|
|
|
|
2014-11-21 21:07:06 +02:00
|
|
|
$ source $TESTDIR/setup.sh
|
2014-11-16 13:05:16 +02:00
|
|
|
|
|
|
|
Setup env actions / output.
|
|
|
|
|
2014-11-21 23:51:28 +02:00
|
|
|
$ AUTOENV_LOOK_UPWARDS=1
|
2014-11-16 13:05:16 +02:00
|
|
|
$ mkdir -p sub/sub2
|
|
|
|
$ cd sub
|
2014-11-21 23:51:28 +02:00
|
|
|
$ echo 'echo ENTERED: PWD:${PWD:t} from:${_autoenv_from_dir:t} to:${_autoenv_to_dir:t}' > .env
|
|
|
|
$ echo 'echo LEFT: PWD:${PWD:t} from:${_autoenv_from_dir:t} to:${_autoenv_to_dir:t}' > .env.leave
|
2014-11-16 13:05:16 +02:00
|
|
|
|
|
|
|
Manually create auth files.
|
|
|
|
|
2014-11-22 00:07:53 +02:00
|
|
|
$ test_autoenv_auth_env_files
|
2014-11-16 13:05:16 +02:00
|
|
|
|
|
|
|
The actual tests.
|
|
|
|
|
|
|
|
$ cd .
|
2014-11-21 23:33:00 +02:00
|
|
|
ENTERED: PWD:sub from:sub to:sub
|
2014-11-16 13:05:16 +02:00
|
|
|
|
|
|
|
$ cd ..
|
2014-11-21 23:33:00 +02:00
|
|
|
LEFT: PWD:sub from:sub to:cwd.t
|
2014-11-16 13:05:16 +02:00
|
|
|
|
|
|
|
$ cd sub/sub2
|
2014-11-21 23:33:00 +02:00
|
|
|
ENTERED: PWD:sub2 from:cwd.t to:sub2
|