summaryrefslogtreecommitdiff
path: root/testing/tools/run_xfa_tests.py
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-02-23 22:10:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-23 22:10:06 +0000
commit26820b47434313b187d664ef702f48b1059bacb5 (patch)
treefb46186c97fd4fbd5a418a4cdc3541fdc6562ee8 /testing/tools/run_xfa_tests.py
parent3760afa05acd4955120a47b82ecf3d543541b791 (diff)
downloadpdfium-26820b47434313b187d664ef702f48b1059bacb5.tar.xz
Setup testing XFA using .in fileschromium/3355chromium/3354
This adds a number of {{}} style tags to the .in format that allow the fix-up script to inject XFA related boilerplate into the PDF, instead of having the .in file replicate this. A simple example XFA .in file, called xfa_example.in has been added as a template for future files to follow. Finally a run_xfa_tests.py has been added for executing all of the tests in testing/resources/xfa, which from what I can tell are not executed any other way. All of the existing PDFs in that directory are currently suppressed. BUG=pdfium:1008 Change-Id: Ie055b6640969ce8291b4c96b401ebf6887dfa0c0 Reviewed-on: https://pdfium-review.googlesource.com/27631 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/tools/run_xfa_tests.py')
-rwxr-xr-xtesting/tools/run_xfa_tests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/tools/run_xfa_tests.py b/testing/tools/run_xfa_tests.py
new file mode 100755
index 0000000000..6647cfd939
--- /dev/null
+++ b/testing/tools/run_xfa_tests.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# Copyright 2018 The PDFium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+
+import test_runner
+
+def main():
+ runner = test_runner.TestRunner('xfa')
+ runner.SetEnforceExpectedImages(True)
+ return runner.Run()
+
+if __name__ == '__main__':
+ sys.exit(main())