Index: recipes/engine_tests/recipe_paths.py |
diff --git a/recipes/engine_tests/recipe_paths.py b/recipes/engine_tests/recipe_paths.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07ef35bea2af6c990059062a8c3b63a0a9380c2f |
--- /dev/null |
+++ b/recipes/engine_tests/recipe_paths.py |
@@ -0,0 +1,19 @@ |
+# Copyright 2015 The LUCI Authors. All rights reserved. |
+# Use of this source code is governed under the Apache License, Version 2.0 |
+# that can be found in the LICENSE file. |
+ |
+"""Tests that recipes have access to names, resources and their package.""" |
+ |
+DEPS = [ |
+ 'path', |
+ 'python', |
+ 'step', |
+] |
+ |
+def RunSteps(api): |
+ api.step('recipe_name', ['echo', api.name]) |
+ api.python('some_resource', api.resource('hello.py')) |
+ api.step('package_root', ['echo', api.package_repo_resource('file', 'path')]) |
+ |
+def GenTests(api): |
+ yield api.test('basic') |