Example cramtest for demonstration purposes draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 18 Aug 2017 12:07:01 -0400
changeset 649091 6f44d7c35ae80e7af1f4c577d28daf2b0cfda9d2
parent 649090 494cfdde5627d56868d9d7316e6798703e05b693
child 727001 3a8a84c47b87e8800444d854771869631d2ba8fe
push id74949
push userahalberstadt@mozilla.com
push dateFri, 18 Aug 2017 16:15:05 +0000
milestone57.0a1
Example cramtest for demonstration purposes MozReview-Commit-ID: LmjA3Kq7xKN
moz.build
tools/moz.build
tools/tryselect/test/cram.ini
tools/tryselect/test/test_foo.t
--- a/moz.build
+++ b/moz.build
@@ -62,16 +62,17 @@ if CONFIG['ENABLE_CLANG_PLUGIN']:
     DIRS += ['build/clang-plugin']
 
 DIRS += [
     'config',
     'python',
     'taskcluster',
     'testing/mozbase',
     'third_party/python',
+    'tools',
 ]
 
 if not CONFIG['JS_STANDALONE']:
     # These python manifests are included here so they get picked up without an objdir
     PYTHON_UNITTEST_MANIFESTS += [
         'testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini',
         'testing/mochitest/tests/python/python.ini',
     ]
--- a/tools/moz.build
+++ b/tools/moz.build
@@ -43,8 +43,12 @@ with Files("rewriting/**"):
 with Files("tryselect/**"):
     BUG_COMPONENT = ("Testing", "General")
 
 with Files("update-packaging/**"):
     BUG_COMPONENT = ("Release Engineering", "Other")
 
 SPHINX_TREES['lint'] = 'lint/docs'
 SPHINX_TREES['compare-locales'] = 'compare-locales/docs'
+
+CRAMTEST_MANIFESTS += [
+    'tryselect/test/cram.ini',
+]
new file mode 100644
--- /dev/null
+++ b/tools/tryselect/test/cram.ini
@@ -0,0 +1,1 @@
+[test_foo.t]
new file mode 100644
--- /dev/null
+++ b/tools/tryselect/test/test_foo.t
@@ -0,0 +1,4 @@
+Test Foo
+
+  $ echo foo
+  foo