@@ -1100,6 +1100,13 @@ def test_templating_constants(self):
11001100 'Perl: %%(perlver)s, %%(perlmajver)s, %%(perlminver)s, %%(perlshortver)s' ,
11011101 'R: %%(rver)s, %%(rmajver)s, %%(rminver)s, %%(rshortver)s' ,
11021102 ]),
1103+ 'modunloadmsg = "%s"' % '; ' .join ([
1104+ 'CUDA: %%(cudaver)s, %%(cudamajver)s, %%(cudaminver)s, %%(cudashortver)s' ,
1105+ 'Java: %%(javaver)s, %%(javamajver)s, %%(javaminver)s, %%(javashortver)s' ,
1106+ 'Python: %%(pyver)s, %%(pymajver)s, %%(pyminver)s, %%(pyshortver)s' ,
1107+ 'Perl: %%(perlver)s, %%(perlmajver)s, %%(perlminver)s, %%(perlshortver)s' ,
1108+ 'R: %%(rver)s, %%(rmajver)s, %%(rminver)s, %%(rshortver)s' ,
1109+ ]),
11031110 'modextrapaths = {"PI_MOD_NAME": "%%(module_name)s"}' ,
11041111 'license_file = HOME + "/licenses/PI/license.txt"' ,
11051112 "github_account = 'easybuilders'" ,
@@ -1139,6 +1146,7 @@ def test_templating_constants(self):
11391146 "Perl: 5.22.0, 5, 22, 5.22; "
11401147 "R: 3.2.3, 3, 2, 3.2" )
11411148 self .assertEqual (ec ['modloadmsg' ], expected )
1149+ self .assertEqual (ec ['modunloadmsg' ], expected )
11421150 self .assertEqual (ec ['modextrapaths' ], {'PI_MOD_NAME' : 'PI/3.04-Python-2.7.10' })
11431151 self .assertEqual (ec ['license_file' ], os .path .join (os .environ ['HOME' ], 'licenses' , 'PI' , 'license.txt' ))
11441152
@@ -1225,6 +1233,7 @@ def test_java_wrapper_templating(self):
12251233 'toolchain = {"name":"GCC", "version": "4.6.3"}' ,
12261234 'dependencies = [("Java", "11", "", SYSTEM)]' ,
12271235 'modloadmsg = "Java: %(javaver)s, %(javamajver)s, %(javashortver)s"' ,
1236+ 'modunloadmsg = "Java: %(javaver)s, %(javamajver)s, %(javashortver)s"' ,
12281237 ])
12291238 self .prep ()
12301239 eb = EasyConfig (self .eb_file )
@@ -1236,6 +1245,7 @@ def test_java_wrapper_templating(self):
12361245 self .assertNotIn ('javaminver' , eb .template_values )
12371246
12381247 self .assertEqual (eb ['modloadmsg' ], "Java: 11, 11, 11" )
1248+ self .assertEqual (eb ['modunloadmsg' ], "Java: 11, 11, 11" )
12391249
12401250 def test_python_whl_templating (self ):
12411251 """test templating for Python wheels"""
0 commit comments