Skip to content

Commit 426cdf0

Browse files
committed
testsuite updated
1 parent 4ac6d99 commit 426cdf0

File tree

9 files changed

+18
-4
lines changed

9 files changed

+18
-4
lines changed

Makefile.inc.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ variantshortcut := @variantshortcut@
158158
# editor
159159
editor := @editor@
160160

161+
# Lmod path order
162+
pathentryreorder := @pathentryreorder@
163+
161164
# shell completion location
162165
bashcompletiondir := @bashcompletiondir@
163166
fishcompletiondir := @fishcompletiondir@

init/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ comp_lint_opts := -a -i --all --icase
136136
comp_modtosh_opts := --auto --no-auto --force -f --icase -i
137137
comp_path_opts := -d --delim --duplicates
138138
comp_rm_path_opts := -d --delim --index
139-
comp_config_opts := --dump-state --reset abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277 path_entry_reorder
139+
comp_config_opts := --dump-state --reset abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager path_entry_reorder protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277
140140

141141
define translate-in-script
142142
$(ECHO_GEN)

init/fish_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ complete -c module -n '__fish_module_use_stashlist' -f -a "(module stashlist --c
8787
/Stash collection list\$/d; \
8888
/:\$/d; \
8989
/:ERROR:/d;')"
90-
complete -c module -n '__fish_module_use_config' -f -a "--dump-state --reset abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277"
90+
complete -c module -n '__fish_module_use_config' -f -a "--dump-state --reset abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager path_entry_reorder protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277"
9191

9292
complete -f -n '__fish_module_no_subcommand' -c module -a 'help' --description 'Print this or modulefile(s) help info'
9393
complete -f -n '__fish_module_no_subcommand' -c module -a 'avail' --description 'List all or matching available modules'

init/zsh-functions/_module.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ _module() {
378378
_arguments \
379379
'--dump-state[Report each state value of current Modules execution]' \
380380
'--reset[Unset environment variable relative to configuration key]' \
381-
'1:configuration key:(abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277)' \
381+
'1:configuration key:(abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_user_rc implicit_default implicit_requirement list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml nearly_forbidden_days pager path_entry_reorder protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277)' \
382382
&& ret=0
383383
;;
384384
(edit)

site.exp.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ set install_variantshortcut "@variantshortcut@"
117117

118118
set install_editor "@editor@"
119119

120+
set install_pathentryreorder "@pathentryreorder@"
121+
120122
set install_bashcompletiondir "@bashcompletiondir@"
121123
set install_fishcompletiondir "@fishcompletiondir@"
122124
set install_zshcompletiondir "@zshcompletiondir@"

tcl/init.tcl.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ array set g_config_defs [list\
111111
alias indesym sym tag hidden key} {} {} eltlist}\
112112
list_terse_output {MODULES_LIST_TERSE_OUTPUT {@listterseoutput@} 0 l\
113113
{header idx variant alias indesym sym tag hidden key} {} {} eltlist}\
114-
path_entry_reorder {MODULES_PATH_ENTRY_REORDER @pathentryreorder@ 0 0 b {0 1}}\
115114
locked_configs {{} {@lockedconfigs@} 0 o}\
116115
logged_events {MODULES_LOGGED_EVENTS {@loggedevents@} 1 l {auto_eval\
117116
requested_eval requested_cmd} {} {} eltlist}\
@@ -123,6 +122,7 @@ array set g_config_defs [list\
123122
nearly_forbidden_days {MODULES_NEARLY_FORBIDDEN_DAYS @nearlyforbiddendays@\
124123
0 i {0 365} {} {} intbe}\
125124
pager {MODULES_PAGER {@pagercmd@} 0 s}\
125+
path_entry_reorder {MODULES_PATH_ENTRY_REORDER @pathentryreorder@ 0 0 b {0 1}}\
126126
protected_envvars {MODULES_PROTECTED_ENVVARS <undef> 0 l}\
127127
rcfile {MODULERCFILE <undef> 0 l}\
128128
redirect_output {MODULES_REDIRECT_OUTPUT 1 0 b {0 1}}\

testsuite/install.00-init/010-environ.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,7 @@ catch {unset env(MODULERCFILE)}
194194
# setup basic locale for tests
195195
set env(LANG) "C"
196196

197+
# ensure that tests doesn't run with Lmod path order
198+
unsetenv_var MODULES_PATH_ENTRY_REORDER
199+
197200
# vim:set tabstop=3 shiftwidth=3 expandtab autoindent:

testsuite/modules.00-init/010-environ.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ catch {unset env(MODULES_COLLECTION_TARGET)}
188188
catch {unset env(MODULE_VERSION)}
189189
catch {unset env(MODULE_VERSION_STACK)}
190190

191+
# ensure that tests doesn't run with Lmod path order
192+
unsetenv_var MODULES_PATH_ENTRY_REORDER
193+
191194
set env(MODULERCFILE) "$env(TESTSUITEDIR)/etc/empty"
192195
set ORIG_MODULERCFILE $env(MODULERCFILE)
193196
catch {unset env(MODULESHOME)}

testsuite/modules.70-maint/220-config.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ array set configdfl [list\
9393
ml [expr {$install_ml eq {y}}]\
9494
nearly_forbidden_days $install_nearlyforbiddendays\
9595
pager "$install_pagercmd"\
96+
path_entry_reorder [expr {$install_pathentryreorder eq {y}}]\
9697
protected_envvars <undef>\
9798
quarantine_support [expr {$install_quarantinesupport eq {y}}]\
9899
rcfile <undef>\
@@ -158,6 +159,7 @@ array set configvar [list\
158159
ml MODULES_ML\
159160
nearly_forbidden_days MODULES_NEARLY_FORBIDDEN_DAYS\
160161
pager MODULES_PAGER\
162+
path_entry_reorder MODULES_PATH_ENTRY_REORDER\
161163
protected_envvars MODULES_PROTECTED_ENVVARS\
162164
quarantine_support MODULES_QUARANTINE_SUPPORT\
163165
rcfile MODULERCFILE\
@@ -213,6 +215,7 @@ array set configvalid [list\
213215
mcookie_version_check {0 1}\
214216
ml {0 1}\
215217
nearly_forbidden_days {0 365}\
218+
path_entry_reorder {0 1}\
216219
quarantine_support {0 1}\
217220
redirect_output {0 1}\
218221
require_via {0 1}\

0 commit comments

Comments
 (0)