[KERNEL][TEST] Add example keyboard and screenshot test

git-svn-id: svn://kolibrios.org@9258 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-11-05 12:32:12 +00:00
parent 41f68b6632
commit c1e1215115

View File

@ -0,0 +1,18 @@
#!/usr/bin/python3
import sys
sys.path.append('../')
import common
def run():
# Just an example test, disabled cause it's 3+ seconds long
return
test = common.run()
test.wait(3)
test.take_screenshot("before.ppm")
test.send_keys("ctrl-alt-delete")
test.wait(0.25)
test.take_screenshot("after.ppm")
test.images_diff("before.ppm", "after.ppm", expect = True)
test.kill()