@@ -961,12 +961,14 @@ def test_templating(self):
961961 ' "dirs": ["libfoo.%%s" %% SHLIB_EXT, "lib/%%(arch)s"],' ,
962962 '}' ,
963963 'dependencies = [' ,
964+ ' ("CUDA", "10.1.105"),'
964965 ' ("Java", "1.7.80"),'
965966 ' ("Perl", "5.22.0"),'
966967 ' ("Python", "2.7.10"),'
967968 ' ("R", "3.2.3"),'
968969 ']' ,
969970 'modloadmsg = "%s"' % '; ' .join ([
971+ 'CUDA: %%(cudaver)s, %%(cudamajver)s, %%(cudashortver)s' ,
970972 'Java: %%(javaver)s, %%(javamajver)s, %%(javashortver)s' ,
971973 'Python: %%(pyver)s, %%(pymajver)s, %%(pyshortver)s' ,
972974 'Perl: %%(perlver)s, %%(perlmajver)s, %%(perlshortver)s' ,
@@ -1000,7 +1002,11 @@ def test_templating(self):
10001002 dirs1 = eb ['sanity_check_paths' ]['dirs' ][1 ]
10011003 self .assertTrue (lib_arch_regex .match (dirs1 ), "Pattern '%s' matches '%s'" % (lib_arch_regex .pattern , dirs1 ))
10021004 self .assertEqual (eb ['homepage' ], "http://example.com/P/p/v3/" )
1003- expected = "Java: 1.7.80, 1, 1.7; Python: 2.7.10, 2, 2.7; Perl: 5.22.0, 5, 5.22; R: 3.2.3, 3, 3.2"
1005+ expected = ("CUDA: 10.1.105, 10, 10.1; "
1006+ "Java: 1.7.80, 1, 1.7; "
1007+ "Python: 2.7.10, 2, 2.7; "
1008+ "Perl: 5.22.0, 5, 5.22; "
1009+ "R: 3.2.3, 3, 3.2" )
10041010 self .assertEqual (eb ['modloadmsg' ], expected )
10051011 self .assertEqual (eb ['license_file' ], os .path .join (os .environ ['HOME' ], 'licenses' , 'PI' , 'license.txt' ))
10061012
0 commit comments