Changes between Initial Version and Version 1 of DSC/zdc_framework-ext


Ignore:
Timestamp:
Jan 25, 2014, 10:51:18 PM (10 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DSC/zdc_framework-ext

    v1 v1  
     1= Tournament Scripts =
     2
     3[[TOC(DSC*,depth=2)]]
     4
     5== Objective ==
     6
     7=== Team Configuration File ===
     8[http://en.wikipedia.org/wiki/YAML YAML] file is used for configuring team configurations specifying team names and images...
     9Note that YAML format insists on leading spaces (i.e. can't use TABs).
     10 
     11Example:
     12{{{
     13T0:
     14  name: ORBIT team 1
     15  image: dsc-wtest1.ndz
     16T1:
     17  name: ORBIT team 2
     18  image: dsc-wtest2.ndz
     19T2:
     20  name: ORBIT team 3
     21  image: dsc-wtest3.ndz
     22
     23}}}
     24=== Competitive Configuration File ===
     25
     26[http://en.wikipedia.org/wiki/YAML YAML] file that specifies matches. Number defining the match is used by the framework to select the match.
     27
     28{{{
     29G1:
     30   1: T1
     31   2: T2
     32G2:
     33   1: T0
     34   2: T2
     35G3:
     36   1: T0
     37   2: T1
     38}}}
     39In this file we have 3 mathces defined. The first match (i.e. match 1) teams 1 and 2 will be playing and in A configuration X nodes will get image from team 1 and Y nodes will be imaged with team 2 image; B match will have team 2 image on X nodes and team 1 image on Y nodes. Similarly, match 2 will be played between team 0 and team 2 while match 3 will be played between teams 0 and 1.
     40Default file name is '''comp_matches.yaml''' in current working directory (can be changed with the command line option).
     41
     42=== Cooperative Configuraiton File ===
     43Format of the configuration [http://en.wikipedia.org/wiki/YAML YAML] file defines cooperative matches is:.
     44{{{
     45G1:
     46   1: T0
     47   2: T1
     48   3: T2
     49
     50}}}
     51T0 -> A, T1 -> B, T1 -> C
     52
     53== Running Competitive Matches ==
     54
     55Script for running competitive matches is '''dsc-comp'''. The sysnopsys of the command is:
     56{{{
     57Usage: /usr/local/bin/dsc-comp [OPTIONS] MATCHNUMBER MATCHVARIANT
     58
     59where
     60    MATCHNUMBER - ordinal number of the match to be played form the match configuration file
     61    MATCHVARIANT - A for first vairant of the match; B for second variant of the match
     62
     63Example: /usr/local/bin/dsc-comp 7 B
     64
     65OPTIONS
     66    -s, --secondary                  Play the match in the secondary arena [default: false]
     67    -l, --loadonly                   Only load images but do NOT execute the match [default: false]
     68    -v, --verbose                    Turn on more verbose output [default: false]
     69    -n, --notexecute                 Only explain what is being done rather than doing it
     70    -t, --teams FILE                 Teams file [default: teams.yaml]
     71    -m, --matches FILE               Competitive matches configuration file [default: comp_matches.yaml
     72    -h, --help                       Show this usage message and quit.
     73
     74}}}