1 # Test file for source_config().
4 # Load source_config().
8 # Make sure the old temporary directory is removed.
10 # Create the test directories/files.
14 mkdir tmp/zsh tmp/zsh/host tmp/zsh/os
15 echo echo loaded bash/env.zucker > tmp/shell/env.zucker
16 echo echo loaded shell/env.zucker > tmp/shell/env.zucker
17 echo echo loaded zsh.env.local > tmp/zsh/env.local
18 echo echo loaded zsh/rc.local > tmp/zsh/rc.local
19 echo echo loaded zsh/host/rc.zucker > tmp/zsh/host/rc.zucker
20 echo echo loaded zsh/os/rc.Darwin > tmp/zsh/os/rc.Darwin
24 source_config tmp/zsh os rc Darwin nolocal
25 echo -n $source_file$source_file_local
26 source_config tmp/zsh host rc zucker
27 echo -n $source_file$source_file_local
29 source_config tmp/zsh os env Darwin nolocal
30 echo -n $source_file$source_file_local
31 source_config tmp/zsh host env zucker
32 echo -n $source_file$source_file_local
34 source_config tmp/bash host rc zucker
35 echo -n $source_file$source_file_local
37 source_config tmp/shell "" env zucker
38 echo -n $source_file$source_file_local
41 # Run tests without and with debug output.