test dependent unload
@@ -123,10 +123,18 @@ load ../common/test_helper_functions
@test "[modules] module depends-on" {
module purge || exit 1
export MODULEPATH=./example-modules:$MODULEPATH
+
+ # verify dependent load
module load test4-module || exit 1
module list >& .cmd_output || exit 1
local my_output=`cat .cmd_output | sed '/^\s*$/d' | sed 's/^[ \t]*//' | tail -1`
assert_equal "1) test3-module 2) test4-module" "$my_output"
+
+ # verify dependent unload
+ module unload test4-module || exit 1
+ run module list
+ assert_success
+ assert_output "No modules loaded"
}
rm -f .cmd_output
