@@ -287,6 +287,7 @@ def test_string_templates_substitution(self):
287287 outputs = []
288288 ret = dictfunc (inputs , outputs )
289289 d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ],
290+ '@PLAINNAME0@' : 'foo.c.in' , '@BASENAME0@' : 'foo.c' ,
290291 '@PLAINNAME@' : 'foo.c.in' , '@BASENAME@' : 'foo.c' }
291292 # Check dictionary
292293 self .assertEqual (ret , d )
@@ -309,6 +310,7 @@ def test_string_templates_substitution(self):
309310 outputs = ['out.c' ]
310311 ret = dictfunc (inputs , outputs )
311312 d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ],
313+ '@PLAINNAME0@' : 'foo.c.in' , '@BASENAME0@' : 'foo.c' ,
312314 '@PLAINNAME@' : 'foo.c.in' , '@BASENAME@' : 'foo.c' ,
313315 '@OUTPUT@' : outputs , '@OUTPUT0@' : outputs [0 ], '@OUTDIR@' : '.' }
314316 # Check dictionary
@@ -330,6 +332,7 @@ def test_string_templates_substitution(self):
330332 outputs = ['dir/out.c' ]
331333 ret = dictfunc (inputs , outputs )
332334 d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ],
335+ '@PLAINNAME0@' : 'foo.c.in' , '@BASENAME0@' : 'foo.c' ,
333336 '@PLAINNAME@' : 'foo.c.in' , '@BASENAME@' : 'foo.c' ,
334337 '@OUTPUT@' : outputs , '@OUTPUT0@' : outputs [0 ], '@OUTDIR@' : 'dir' }
335338 # Check dictionary
@@ -339,7 +342,9 @@ def test_string_templates_substitution(self):
339342 inputs = ['bar/foo.c.in' , 'baz/foo.c.in' ]
340343 outputs = []
341344 ret = dictfunc (inputs , outputs )
342- d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ], '@INPUT1@' : inputs [1 ]}
345+ d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ], '@INPUT1@' : inputs [1 ],
346+ '@PLAINNAME0@' : 'foo.c.in' , '@PLAINNAME1@' : 'foo.c.in' ,
347+ '@BASENAME0@' : 'foo.c' , '@BASENAME1@' : 'foo.c' }
343348 # Check dictionary
344349 self .assertEqual (ret , d )
345350 # Check substitutions
@@ -376,6 +381,8 @@ def test_string_templates_substitution(self):
376381 outputs = ['dir/out.c' ]
377382 ret = dictfunc (inputs , outputs )
378383 d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ], '@INPUT1@' : inputs [1 ],
384+ '@PLAINNAME0@' : 'foo.c.in' , '@PLAINNAME1@' : 'foo.c.in' ,
385+ '@BASENAME0@' : 'foo.c' , '@BASENAME1@' : 'foo.c' ,
379386 '@OUTPUT@' : outputs , '@OUTPUT0@' : outputs [0 ], '@OUTDIR@' : 'dir' }
380387 # Check dictionary
381388 self .assertEqual (ret , d )
@@ -402,6 +409,8 @@ def test_string_templates_substitution(self):
402409 outputs = ['dir/out.c' , 'dir/out2.c' ]
403410 ret = dictfunc (inputs , outputs )
404411 d = {'@INPUT@' : inputs , '@INPUT0@' : inputs [0 ], '@INPUT1@' : inputs [1 ],
412+ '@PLAINNAME0@' : 'foo.c.in' , '@PLAINNAME1@' : 'foo.c.in' ,
413+ '@BASENAME0@' : 'foo.c' , '@BASENAME1@' : 'foo.c' ,
405414 '@OUTPUT@' : outputs , '@OUTPUT0@' : outputs [0 ], '@OUTPUT1@' : outputs [1 ],
406415 '@OUTDIR@' : 'dir' }
407416 # Check dictionary
0 commit comments