##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---

schema: "yardstick:task:0.1"
description: >
    Measure CPU performance using SPEC CPU2006;

{% set file = file or "/etc/yardstick/pod.yaml" %}
{% set host = host or 'node1' %}
{% set benchmark = benchmark or 'int' %}
{% set runspec_iterations = runspec_iterations or 1 %}
{% set runspec_tune = runspec_tune or 'base' %}
{% set runspec_size = runspec_size or 'ref' %}
{% set runspec_rate = runspec_rate or 1 %}

scenarios:
-
  type: SpecCPU2006

  options:
      SPECint_benchmark: {{benchmark}}
      runspec_iterations: {{runspec_iterations}}
      runspec_tune: {{runspec_tune}}
      runspec_size: {{runspec_size}}
      runspec_rate: {{runspec_rate}}

  host: {{host}}.yardstick-TC078

  runner:
    type: Iteration
    iterations: 1

context:
  type: Node
  name: yardstick-TC078
  file: {{ file }}

  env:
    type: ansible
    setup: spec_cpu2006_install.yaml
    teardown: spec_cpu2006_uninstall.yaml