summaryrefslogtreecommitdiff
path: root/runner/testdata/successtest.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-08-08 14:07:01 +0300
committerPetri Latvala <petri.latvala@intel.com>2018-08-09 10:34:03 +0300
commit6cb3d7dbe5831a7b2b5b7a4638d8a8b7ac624f5f (patch)
tree6d25159b083afc51b38f003ae87974eb795b06a0 /runner/testdata/successtest.c
parent18c1e7525591b98b53321c26464f3181a5f7cce1 (diff)
runner: Unit tests for the runner
TODO: Unit tests for the results.json file contents. v2: - Avoid writing the nul character to mock files - Properly set up tmpdirs v3: - Restore the resume-related changes that were lost in rebase v4: - Better teardown for temporary directories - Build with autotools Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'runner/testdata/successtest.c')
-rw-r--r--runner/testdata/successtest.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/runner/testdata/successtest.c b/runner/testdata/successtest.c
new file mode 100644
index 00000000..bb411eb4
--- /dev/null
+++ b/runner/testdata/successtest.c
@@ -0,0 +1,10 @@
+#include "igt.h"
+
+igt_main
+{
+ igt_subtest("first-subtest")
+ igt_debug("Running first subtest\n");
+
+ igt_subtest("second-subtest")
+ igt_debug("Running second subtest\n");
+}