Skip to content

Commit 8ec675c

Browse files
committed
Release of version 4.0.0-beta
Adapt testsuite to take new release name in account.
1 parent 2a430cd commit 8ec675c

File tree

10 files changed

+18
-25
lines changed

10 files changed

+18
-25
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
test testinstall instrument testcoverage
33

44
CURRENT_VERSION := $(shell grep '^set MODULES_CURRENT_VERSION' \
5-
modulecmd.tcl.in | cut -d ' ' -f 3)
5+
modulecmd.tcl.in | cut -d ' ' -f 3 | tr -d \")
66
DIST_PREFIX := modules-$(CURRENT_VERSION)
77

88
# definitions for code coverage
@@ -184,7 +184,6 @@ else
184184
test: modulecmd.tcl
185185
endif
186186
TCLSH=$(TCLSH); export TCLSH; \
187-
MODULEVERSION=Tcl; export MODULEVERSION; \
188187
OBJDIR=`pwd -P`; export OBJDIR; \
189188
TESTSUITEDIR=`cd testsuite;pwd -P`; export TESTSUITEDIR; \
190189
runtest --srcdir $$TESTSUITEDIR --objdir $$OBJDIR $(RUNTESTFLAGS) --tool modules

contrib/rpm/environment-modules.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fi
209209

210210

211211
%changelog
212-
* Mon Sep 18 2017 Xavier Delaruelle <[email protected]> - 4.0.0-0.1.beta
212+
* Mon Sep 25 2017 Xavier Delaruelle <[email protected]> - 4.0.0-0.1.beta
213213
- Update to 4.0.0-beta
214214
- Define compat subpackage to provide 3.2 compatiblity version also
215215
provided in source tarball

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
VERSION_FILE := ../modulecmd.tcl.in
44
MAN_VERSION := "modules $(shell grep '^set MODULES_CURRENT_VERSION' \
5-
$(VERSION_FILE) | cut -d ' ' -f 3)"
5+
$(VERSION_FILE) | cut -d ' ' -f 3 | tr -d \")"
66
MAN_HEADER := "Environment Modules"
77

88
HTML_DIR := html

init/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
VERSION_FILE := ../modulecmd.tcl.in
44
CURRENT_VERSION := $(shell grep '^set MODULES_CURRENT_VERSION' \
5-
$(VERSION_FILE) | cut -d ' ' -f 3)
5+
$(VERSION_FILE) | cut -d ' ' -f 3 | tr -d \")
66

77
SH_LIKE = sh ksh bash zsh profile.sh bash_completion
88
CSH_LIKE = csh tcsh tcsh_completion profile.csh

modulecmd.tcl.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#
2424
# Some Global Variables.....
2525
#
26-
set MODULES_CURRENT_VERSION 1.1005
27-
set MODULES_CURRENT_RELEASE_DATE "2017-09-04"
26+
set MODULES_CURRENT_VERSION "4.0.0-beta"
27+
set MODULES_CURRENT_RELEASE_DATE "2017-09-25"
2828
set g_debug 0 ;# Set to 1 to enable debugging
2929
set error_count 0 ;# Start with 0 errors
3030
set g_autoInit 0
@@ -5066,7 +5066,7 @@ proc cmdModuleHelp {args} {
50665066
}
50675067
popMode
50685068
if {[llength $args] == 0} {
5069-
report "Modules Release Tcl $MODULES_CURRENT_VERSION " 1
5069+
report "Modules Release $MODULES_CURRENT_VERSION " 1
50705070
report "($MODULES_CURRENT_RELEASE_DATE)" 1
50715071
report { Copyright GNU GPL v2 1991}
50725072
report {Usage: module [options] [command] [args ...]}
@@ -5193,7 +5193,7 @@ if {[catch {
51935193
exit 0
51945194
}
51955195
{-V} - {--version} {
5196-
report "Modules Release Tcl $MODULES_CURRENT_VERSION\
5196+
report "Modules Release $MODULES_CURRENT_VERSION\
51975197
($MODULES_CURRENT_RELEASE_DATE)"
51985198
exit 0
51995199
}

testsuite/install.00-init/020-module.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if {$verbose > 0} {
3131
}
3232

3333
foreach shell $shell_list {
34-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
34+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
3535
testall_cmd "$shell" "module foo" "" "$bad_cmd\n$type_help" 1
3636
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "" "$cur_loaded\nnull" 0
3737
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "" "$no_loaded" 0

testsuite/install.00-init/025-autoinit.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if {$verbose > 0} {
3232
}
3333

3434
foreach shell $shell_list {
35-
testall_cmd_re "autoinit:$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
35+
testall_cmd_re "autoinit:$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
3636
testall_cmd "autoinit:$shell" "module foo" "" "$bad_cmd\n$type_help" 1
3737
testall_cmd "autoinit:$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "" "$cur_loaded\nnull" 0
3838
testall_cmd "autoinit:$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "" "$no_loaded" 0

testsuite/install.00-init/040-subshell.exp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ foreach shell $shell_list {
6464
testall_cmd_re "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "^\$" ".*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\$" 252
6565
testall_cmd_re "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "^\$" ".*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\$" 123
6666
} else {
67-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
67+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
6868
testall_cmd "$shell" "module foo" "" "$bad_cmd\n$type_help" 1
6969
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "" "$cur_loaded\nnull" 0
7070
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "" "$no_loaded" 0
@@ -106,7 +106,7 @@ foreach shell $shell_list {
106106
testall_cmd_re "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "^\$" ".*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\$" 252
107107
testall_cmd_re "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "^\$" ".*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\n.*$dash_nf\$" 123
108108
} else {
109-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
109+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
110110
testall_cmd "$shell" "module foo" "" "$bad_cmd\n$type_help" 1
111111
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "" "$cur_loaded\nnull" 0
112112
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "" "$no_loaded" 0

testsuite/install.00-init/050-crossshell.exp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ foreach subshell $shell_list {
5858
if {$subshell eq "sh" && $sh_kind eq "dash"} {
5959
testall_cmd_re "$shell" "module --version" "^\$" "$cmd_nf\$" 127
6060
} else {
61-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
61+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
6262
}
6363
}
6464
default {
@@ -68,7 +68,7 @@ foreach subshell $shell_list {
6868
}
6969
# propagate in any cases as BASH_ENV is set everywhere
7070
bash {
71-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
71+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
7272
}
7373
ksh {
7474
testall_cmd_re "$shell" "module --version" "^\$" "$ksh_nf\$" 127
@@ -97,7 +97,7 @@ foreach subshell $shell_list {
9797
if {$subshell eq "sh" && $sh_kind eq "dash"} {
9898
testall_cmd_re "$shell" "module --version" "^\$" "$cmd_nf\$" 127
9999
} else {
100-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
100+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
101101
}
102102
}
103103
default {
@@ -107,7 +107,7 @@ foreach subshell $shell_list {
107107
}
108108
# propagate in any cases as BASH_ENV is set everywhere
109109
bash {
110-
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release Tcl \\S+ (\\S+)\$" 0
110+
testall_cmd_re "$shell" "module --version" "^\$" "^Modules Release \\S+ (\\S+)\$" 0
111111
}
112112
ksh {
113113
testall_cmd_re "$shell" "module --version" "^\$" "$ksh_nf\$" 127

testsuite/modules.00-init/015-version.exp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,11 @@
2525
# This command will only be run for the bourne shell
2626
#
2727

28-
if [info exists env(MODULEVERSION)] {
29-
set exp_vers $env(MODULEVERSION)
30-
} else {
31-
send_user "FATAL: MODULEVERSION env var needs to be set\n"
32-
exit
33-
}
3428
set shell "sh"
3529

3630
#
3731
# Check the version at first
3832
#
3933

40-
testouterr_cmd_re "csh" "--version" "" "Modules Release $exp_vers \[0-9a-zA-Z\.\+\\-\]+ \\(\[0-9\-\]{10}\\)"
41-
testouterr_cmd_re "csh" "-V" "" "Modules Release $exp_vers \[0-9a-zA-Z\.\+\\-\]+ \\(\[0-9\-\]{10}\\)"
34+
testouterr_cmd_re "csh" "--version" "" "Modules Release \[0-9a-zA-Z\.\+\\-\]+ \\(\[0-9\-\]{10}\\)"
35+
testouterr_cmd_re "csh" "-V" "" "Modules Release \[0-9a-zA-Z\.\+\\-\]+ \\(\[0-9\-\]{10}\\)"

0 commit comments

Comments
 (0)