tk: convert to new stand-alone test process (#38575)
This commit is contained in:
parent
8372726a88
commit
632f840d8a
1 changed files with 8 additions and 5 deletions
|
@ -91,14 +91,17 @@ def symlink_wish(self):
|
||||||
with working_dir(self.prefix.bin):
|
with working_dir(self.prefix.bin):
|
||||||
symlink("wish{0}".format(self.version.up_to(2)), "wish")
|
symlink("wish{0}".format(self.version.up_to(2)), "wish")
|
||||||
|
|
||||||
def test(self):
|
def test_tk_help(self):
|
||||||
self.run_test(self.spec["tk"].command.path, ["-h"], purpose="test wish command")
|
"""run tk help"""
|
||||||
|
tk = self.spec["tk"].command
|
||||||
|
tk("-h")
|
||||||
|
|
||||||
|
def test_tk_load(self):
|
||||||
|
"""check that tk can be loaded"""
|
||||||
test_data_dir = self.test_suite.current_test_data_dir
|
test_data_dir = self.test_suite.current_test_data_dir
|
||||||
test_file = test_data_dir.join("test.tcl")
|
test_file = test_data_dir.join("test.tcl")
|
||||||
self.run_test(
|
tcl = self.spec["tcl"].command
|
||||||
self.spec["tcl"].command.path, test_file, purpose="test that tk can be loaded"
|
tcl(test_file)
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def command(self):
|
def command(self):
|
||||||
|
|
Loading…
Reference in a new issue