summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-07-19 15:58:45 +0300
committerAlon Levy <alevy@redhat.com>2011-07-19 15:58:45 +0300
commit978433d0695368ce77961cb1164cc59bb10a30b9 (patch)
tree8077bcc4bd14aa9b6a4c7513c6c347d4f65c08bf
parent27734ecaddedd26d379009b671c6cb170c01c719 (diff)
README and spice_async_s3_tests
-rw-r--r--README.txt8
-rwxr-xr-xspice_async_s3_tests22
2 files changed, 30 insertions, 0 deletions
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..94895b1
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,8 @@
+Requirements:
+
+reschange.exe and suspend.exe are built using the WinDDK, prebuilt binaries provided.
+
+guestfish is used to modify images before launching.
+
+qemu is required to launch vms (you can run tests from spice directly without it, including
+replay).
diff --git a/spice_async_s3_tests b/spice_async_s3_tests
new file mode 100755
index 0000000..c6ed897
--- /dev/null
+++ b/spice_async_s3_tests
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+import os
+import sys
+
+passed = 0
+base_args = lambda test: ('--guestdebug 2 --second --xephyr --shutdown --wintest %s' % test).split()
+tests = [
+ ("shutdown", []),
+ ("shutdown", ['--qxl', '2']),
+ ("suspend2", ['--qxl', '2']),
+ ("suspend", []),
+ ("resolution1", []),
+ ("resolution2", ['--qxl', '2']),
+]
+for test, extra in tests:
+ print "-- %15s -------------------------------------------" % test
+ if os.system('win7 %s' % (' '.join(extra + base_args(test)))):
+ print "failed %s" % test
+ sys.exit(1)
+ passed += 1
+print "-"*80
+print "passed %d/%d" % (passed, len(tests))