summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-09-28 14:43:13 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-09-28 14:43:13 +0000
commitb4b03beaed00bc0abc74f12634ad0a26dbcf75c4 (patch)
tree8421e695b8a472a276e14a0fc86b0dcfbabf658d /Test
parenta886f098944f183e0fc70bb3672cbef0f4e18b6b (diff)
downloadzsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.tar.gz
zsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.tar.xz
zsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.zip
Module dependencies for unloading in tests.
Diffstat (limited to 'Test')
-rw-r--r--Test/V01zmodload.ztst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
index fef7d0232..3787024e1 100644
--- a/Test/V01zmodload.ztst
+++ b/Test/V01zmodload.ztst
@@ -12,6 +12,10 @@
    eval "$name $modfile $link $auto $load"
    [[ $link == no ]] && continue
    mods=($mods $name)
+   moddeps=
+   modfile=$ZTST_srcdir/../$modfile
+   eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:}
+   [[ -n $moddeps ]] && zmodload -d $name $=moddeps
  done < $ZTST_testdir/../config.modules
 
  zmodunload() {
@@ -157,5 +161,5 @@
 %clean
 
  eval "$deps"
- unset deps name modfile link auto load funcs mods
+ unset deps name modfile link auto load funcs mods moddeps
  unfunction zmodunload