# ***************************************************************************************************************************
# * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file
# * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file
# * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
# * with the License.  You may obtain a copy of the License at
# *
# *  http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the
# * specific language governing permissions and limitations under the License.
# ***************************************************************************************************************************
# Golden transcripts for the additive extensions to terminal protocol v1.  One scenario per "# scenario:" line; every
# scenario is driven by the matching test in src/test/python/test_markers.py and compared with ms normalized to 0.
# A "| " line is raw, non-marker output, written without the "| "; a literal \r in it stands for a carriage return.
# scenario: nested-steps-and-tests
##terminal {"ev":"run","v":1,"mode":"test","project":"demo","branch":"main","head":"abc1234"}
##terminal {"ev":"step","id":"mvn","n":1,"title":"Maven"}
##terminal {"ev":"step","id":"mvn/mod-a","n":2,"title":"Module A","parent":"mvn"}
##terminal {"ev":"tests","step":"mvn/mod-a","total":2,"fail":0,"err":0,"skip":0}
##terminal {"ev":"tests","step":"mvn/mod-a","total":5,"fail":1,"err":0,"skip":1}
##terminal {"ev":"end","id":"mvn/mod-a","status":"ok","ms":0}
##terminal {"ev":"end","id":"mvn","status":"ok","ms":0}
##terminal {"ev":"done","status":"ok"}
# scenario: module-failure
##terminal {"ev":"run","v":1,"mode":"test","project":"demo","branch":"main","head":"abc1234"}
##terminal {"ev":"step","id":"mvn","n":1,"title":"Maven"}
##terminal {"ev":"step","id":"mvn/mod-b","n":3,"title":"Module B","parent":"mvn"}
##terminal {"ev":"note","level":"error","text":"Module failed: Module B","step":"mvn"}
##terminal {"ev":"end","id":"mvn/mod-b","status":"fail","ms":0}
##terminal {"ev":"end","id":"mvn","status":"fail","ms":0,"exit":1}
##terminal {"ev":"done","status":"fail"}
# scenario: cancelled-children-closed-first
##terminal {"ev":"run","v":1,"mode":"test","project":"demo","branch":"main","head":"abc1234"}
##terminal {"ev":"step","id":"mvn","n":1,"title":"Maven"}
##terminal {"ev":"step","id":"mvn/mod-a","n":2,"title":"Module A","parent":"mvn"}
##terminal {"ev":"end","id":"mvn/mod-a","status":"fail","ms":0}
##terminal {"ev":"end","id":"mvn","status":"fail","ms":0,"exit":130}
##terminal {"ev":"done","status":"cancelled"}
# scenario: unknown-field-on-known-event
##terminal {"ev":"step","id":"x","n":1,"title":"X","future":true}
##terminal {"ev":"end","id":"x","status":"ok","ms":0,"extra":[1,2]}
# scenario: dots-then-marker
##terminal {"ev":"step","id":"load","n":1,"title":"Load"}
| ORDERS: filling UID...
##terminal {"ev":"end","id":"load","status":"ok","ms":0}
# scenario: set-tail-counter-then-marker
##terminal {"ev":"step","id":"task","n":1,"title":"Task x"}
| Performing task x: \rPerforming task x: 1 of 2 complete\rPerforming task x: 2 of 2 complete
##terminal {"ev":"end","id":"task","status":"ok","ms":0}
