# Test file for source_config(). # Load source_config(). source ../shell/env # Make sure the old temporary directory is removed. rm -rf tmp # Create the test directories/files. mkdir tmp mkdir tmp/bash mkdir tmp/shell mkdir tmp/zsh tmp/zsh/host tmp/zsh/os echo echo loaded bash/env.zucker > tmp/shell/env.zucker echo echo loaded shell/env.zucker > tmp/shell/env.zucker echo echo loaded zsh.env.local > tmp/zsh/env.local echo echo loaded zsh/rc.local > tmp/zsh/rc.local echo echo loaded zsh/host/rc.zucker > tmp/zsh/host/rc.zucker echo echo loaded zsh/os/rc.Darwin > tmp/zsh/os/rc.Darwin function tests() { source_config tmp/zsh os rc Darwin nolocal source_config tmp/zsh host rc zucker source_config tmp/zsh os env Darwin nolocal source_config tmp/zsh host env zucker source_config tmp/bash host rc zucker source_config tmp/shell "" env zucker } # Run tests without and with debug output. tests echo DEBUG=1 tests