# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# Tests that configuration parsing will fail when there is an inclusion
+# loop (recursion) in the included files.
version: '2.1'
metadata:
$include: recursive1.inc.yaml
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# Tests that configuration parsing will fail when a file with an invalid
+# absolute path is included.
version: '2.1'
metadata:
$include: /path/to/not/found
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# Tests that configuration parsing will fail when a file that is not
+# found is included.
version: '2.1'
metadata:
$include:
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# Tests that configuration parsing will fail when a file that includes a
+# file that cannot be found is included.
version: '2.1'
metadata:
$include: include-not-found.inc.yaml
import subprocess
+# Tests that a barectf 2 configuration using many features will
+# generate tracer C code that appears valid and functional.
def test_everything(request, tmpdir):
yaml_path = os.path.join(os.path.dirname(request.fspath), 'configs',
'pass', 'everything', 'config.yaml')