"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testsuite/install.00-init/080-args.exp" between
modules-5.1.1.tar.bz2 and modules-5.2.0.tar.bz2

About: The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles.

080-args.exp  (modules-5.1.1.tar.bz2):080-args.exp  (modules-5.2.0.tar.bz2)
skipping to change at line 57 skipping to change at line 57
send_user "\tSetup BAR = '$bar'\n" send_user "\tSetup BAR = '$bar'\n"
} }
set env(FOO) "$foo" set env(FOO) "$foo"
set env(BAR) "$bar" set env(BAR) "$bar"
for {set i 0} {$i < 2} {incr i} { for {set i 0} {$i < 2} {incr i} {
# do the tests twice, second time with a quarantine setup # do the tests twice, second time with a quarantine setup
# to check quarantine mechanism does not alter argument handling # to check quarantine mechanism does not alter argument handling
if {$i == 1} { if {$i == 1} {
# skip tests with quarantine enabled if space character found in install path
if {[string first { } $install_libexecdir] != -1} {
send_user "\tSkip quarantine mechanism test as installation path is not co
mpliant with it\n"
break
}
if { $verbose > 0 } { if { $verbose > 0 } {
send_user "\tSetup MODULES_RUN_QUARANTINE = 'FOO'\n" send_user "\tSetup MODULES_RUN_QUARANTINE = 'FOO'\n"
} }
set env(MODULES_RUN_QUARANTINE) "FOO" set env(MODULES_RUN_QUARANTINE) "FOO"
} }
foreach shell $shell_list { foreach shell $shell_list {
testall_cmd "$shell" "module use \"\"" "" $err_emptydir 1 testall_cmd "$shell" "module use \"\"" "" $err_emptydir 1
testall_cmd "$shell" "module load ''" "" $err_emptymod 1 testall_cmd "$shell" "module load ''" "" $err_emptymod 1
testall_cmd "$shell" "module load \\\"\\\"" "" $err_locatemod6 1 testall_cmd "$shell" "module load \\\"\\\"" "" $err_locatemod6 1
skipping to change at line 83 skipping to change at line 88
testall_cmd_re "$shell" "module \"\"" "" $usage_msg 0 testall_cmd_re "$shell" "module \"\"" "" $usage_msg 0
testall_cmd_re "$shell" "module \"\" \"\"" "" $usage_msg 0 testall_cmd_re "$shell" "module \"\" \"\"" "" $usage_msg 0
testall_cmd "$shell" "module append-path -d \" \" FOO /path/to/dir2;module so urce $modfile" "" "$foo /path/to/dir2" 0 testall_cmd "$shell" "module append-path -d \" \" FOO /path/to/dir2;module so urce $modfile" "" "$foo /path/to/dir2" 0
testall_cmd "$shell" "module append-path -d ' ' FOO /path/to/dir2;module sour ce $modfile" "" "$foo /path/to/dir2" 0 testall_cmd "$shell" "module append-path -d ' ' FOO /path/to/dir2;module sour ce $modfile" "" "$foo /path/to/dir2" 0
testall_cmd "$shell" "module append-path FOO \"\$BAR\";module source $modfile " "" "$foo:$bar" 0 testall_cmd "$shell" "module append-path FOO \"\$BAR\";module source $modfile " "" "$foo:$bar" 0
testall_cmd "$shell" "module append-path FOO \\\$foo;module source $modfile" "" "$foo:\$foo" 0 testall_cmd "$shell" "module append-path FOO \\\$foo;module source $modfile" "" "$foo:\$foo" 0
testall_cmd "$shell" "module append-path --duplicates FOO \"\";module source $modfile" "" "$foo:" 0 testall_cmd "$shell" "module append-path --duplicates FOO \"\";module source $modfile" "" "$foo:" 0
testall_cmd "$shell" "module remove-path FOO \"\";module source $modfile" "" "/path/to/dir1" 0 testall_cmd "$shell" "module remove-path FOO \"\";module source $modfile" "" "/path/to/dir1" 0
} }
# ensure colored output is disabled for CMake tests
setenv_var CLICOLOR 0
foreach shell $othlang_list { foreach shell $othlang_list {
switch -- $shell { switch -- $shell {
r { r {
set postmsg "\nError: \nExecution halted" set postmsg "\nError: \nExecution halted"
} }
cmake { cmake {
set postmsg "\nCMake Error at testsuite/bin/install_test_cmake:115 \\\( message\\\):\n\n" set postmsg "\nCMake Error at testsuite/bin/install_test_cmake:115 \\\( message\\\):\n\n"
} }
default { default {
set postmsg {} set postmsg {}
skipping to change at line 147 skipping to change at line 154
{tcl} - {python} { {tcl} - {python} {
testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$ foo:\\\\\\\$foo" 0 testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$ foo:\\\\\\\$foo" 0
} }
default { default {
testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$ foo:\\\$foo" 0 testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$ foo:\\\$foo" 0
} }
} }
testall_cmd_re "$shell" "append-path,--duplicates,FOO,:source,$modfile" "" "$ foo:" 0 testall_cmd_re "$shell" "append-path,--duplicates,FOO,:source,$modfile" "" "$ foo:" 0
testall_cmd_re "$shell" "remove-path,FOO,:source,$modfile" "" "/path/to/dir1" 0 testall_cmd_re "$shell" "remove-path,FOO,:source,$modfile" "" "/path/to/dir1" 0
} }
unsetenv_var CLICOLOR
} }
# #
# Clean up variables used in this test case # Clean up variables used in this test case
# #
reset_test_env reset_test_env
# vim:set tabstop=3 shiftwidth=3 expandtab autoindent: # vim:set tabstop=3 shiftwidth=3 expandtab autoindent:
 End of changes. 3 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)