############################################################################## # Modules Revision 3.0 # Providing a flexible user environment # # File: modules.50-cmds/%M% # Revision: %I% # First Edition: 2001/06/20 # Last Mod.: %U%, %G% # # Authors: R.K. Owen, rk@owen.sj.ca.us # # Description: Testuite testsequence # Command: load & unload # Modulefiles: versions/1.1, versions/1.2, versions/1.3 # Sub-Command: # # Comment: %C{ # Tests the module versioning capability. # specifically the unloading of a version. # }C% # ############################################################################## if {$verbose} { send_user "\tUnloads of first and last version on a short stack...\n" } set env(MODULE_VERSION) "$version2" set env(MODULE_VERSION_STACK) "$module_version_stack2" setenv_loaded_module [list $module1 $module2] [list $modulefile1 $modulefile2] # # For the different shells ... # lappend ans [list set MODULE_VERSION_STACK $module_version_stack1] lappend ans [list set _LMFILES_ $modulefile1] lappend ans [list set LOADEDMODULES $module1] lappend ans [list set MODULE_VERSION $version1] # # The tests # test_cmd_re "ALL" "unload $module2" $ans skip_if_quick_mode # # Remove a version that is not on top of the stack # # For the different shells ... # set ans [list] lappend ans [list set MODULE_VERSION_STACK $version2] lappend ans [list set _LMFILES_ $modulefile2] lappend ans [list set LOADEDMODULES $module2] lappend ans [list set MODULE_VERSION $version2] # # The tests # # different behavior than C-version: on Tcl-version env variable value is # set even if its current value does change test_cmd_re "ALL" "unload $module1" $ans # # Cleanup # reset_test_env