From c1e1215115c4bfe5e4b0cdef98cd9cf09f6a14e7 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Fri, 5 Nov 2021 12:32:12 +0000 Subject: [PATCH] [KERNEL][TEST] Add example keyboard and screenshot test git-svn-id: svn://kolibrios.org@9258 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/test/open_cpu/test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kernel/trunk/test/open_cpu/test.py diff --git a/kernel/trunk/test/open_cpu/test.py b/kernel/trunk/test/open_cpu/test.py new file mode 100644 index 0000000000..9b93fe3007 --- /dev/null +++ b/kernel/trunk/test/open_cpu/test.py @@ -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() +