VC Execution Manager™ User Guide
Version V-2023.12-SP2, June 2024
Feedback
Contents
1.
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Terminologies Used in This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Getting Help on Command-Line Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Synopsys Statement on Inclusivity and Diversity . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.
Introduction to VC Execution Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Key Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ExecMan User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Verdi GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Invoking ExecMan in the Verdi GUI Using the eman Command . . . . . . . . . 26
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Database Server Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Tool Reckoner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Using ExecMan for Complete Regression Management Or Using Test API for
Regression Data Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.
Installing and Administering VC Execution Manager . . . . . . . . . . . . . . . . . . . . . 31
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Hardware and Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Licensing Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
The Server License: VC-EXECMAN-SERVER . . . . . . . . . . . . . . . . . . . . . . . . 35
The Client License: VC-EXECMAN-CLIENT . . . . . . . . . . . . . . . . . . . . . . . . .35
Customizing URG Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Installing ExecMan With the Database Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Overview of the Installation Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Installing VC Execution Manager in the Database Server Mode . . . . . . . . . . . . 38
Downloading and Installing the MySQL Database . . . . . . . . . . . . . . . . . . . . . . . 40
2
Feedback
Contents
Downloading and Installing the MySQL Database Without Internet . . . . . . . . . . 44
Silent Post Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Live Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Upgrading the Current Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Upgrading the Older Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Database Server Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
Installing ExecMan Without the Database Server . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Setting Up Your Regression Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Modifying the Setup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
Specifying Server Certification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Configuring the Compute Farm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Setting Up a Compute Farm in Your Environment . . . . . . . . . . . . . . . . . . . .54
Setting Up the Slurm Grid Using the Setup File . . . . . . . . . . . . . . . . . . . . . 54
Setting Environment Variables for Grid Management . . . . . . . . . . . . . . . . . . . . 55
Configuring Job Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Specifying Stop Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Starting the Web Server and Viewing Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Configuring Wait Time for License Check Out . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Configuring License Expiry Warning Lead Time . . . . . . . . . . . . . . . . . . . . . . . . 58
Setting Up the MySQL Database Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Checking the MySQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Launching the MySQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Stopping the MySQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
Repairing the MySQL Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
Creating Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Creating a Backup of the MySQL Database . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Automatic Backup of the MySQL Database . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
Creating a Backup of an Existing VC Execution Manager Setup . . . . . . . . . . . . 61
Restoring a Database From a Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Custom Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
Template Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Available Built-In Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
JavaScript APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
Handling Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Saving Custom Values in the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Saving Values in an Internal Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
EManInterface API Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Interactively Reloading UI Customization Templates . . . . . . . . . . . . . . . . . . . . . 74
3
Feedback
Contents
Secure Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
Secure Mode Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Sorting and Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Sorting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Quick Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
4.
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
Running Regressions in the Batch Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Setup Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Creating a Regression Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Executing a Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Viewing Results in the ExecMan User Interface . . . . . . . . . . . . . . . . . . . . . . . . 87
Running Regressions Using Verdi Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Viewing Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Rerunning Sessions and Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
Relaunching a Failed Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Restoring a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Running Regressions Using an HVP File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102
Regressions Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Bucketing Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Control Bucketing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
View Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
System Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Event Severity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Static URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Session Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
4
Feedback
Contents
5.
VC Execution Manager Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Supporting the YAML Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Attributes of Error Pattern Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
The New Format of Error Pattern Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
The error_patterns Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
The functions Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
Detecting Error Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Basic Blocks of a Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Sample Configuration File With Mandatory Blocks . . . . . . . . . . . . . . . . . . . . . 144
Advanced Blocks and Options of a Configuration File . . . . . . . . . . . . . . . . . . . . . . 144
Including Configuration Files in a Parent Configuration File . . . . . . . . . . . . . . 145
Running Custom Commands Before Starting Builds . . . . . . . . . . . . . . . . . . . . 146
Running Custom Commands at the End of a Session . . . . . . . . . . . . . . . . . . .146
Defining Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Immediate Resolution Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Deferred Resolution Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Defining Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Deleting Test’s Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Options in the Builds Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Keywords in the Builds Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154
Options in the Tests Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Keywords in the Tests Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Tags in the Tests Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Overriding Attributes From the Command Line . . . . . . . . . . . . . . . . . . . . . . . . 172
Auto Group With User-Defined Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Round Robin With Auto Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173
Creating the Test Run Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174
Specifying the Timeout Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Specifying the Running Timeout Value . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Specifying the Pending Timeout Value . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Importing Regression Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Inheritance in Builds and Tests Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179
Abstract Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Configuring Rules for a Regression Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Rules for a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Invoking the Rules File in the Configuration File . . . . . . . . . . . . . . . . . . . . 183
Defining Rules in the Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Sample Rules File (*.emr file) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Precedence in the Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190
5
Feedback
Contents
Specifying Grid Options for Individual Tests and Builds . . . . . . . . . . . . . . . . . . 191
Grid Setup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Grid Options in the ExecMan Configuration File . . . . . . . . . . . . . . . . . . . . 195
Priority in the Setup Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
Specifying Job Dependencies and Priorities on a Grid . . . . . . . . . . . . . . . . . . 197
Setting the Priority for Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Setting the Priority for Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
Setting Run Dependency for Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Setting Run Dependency for Tests Using Scripts . . . . . . . . . . . . . . . . . . . 205
Priority in the Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
Priority Set on Smoke Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
Setting the Priority for Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Setting Grid Options Dynamically . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
A Sample Configuration File With Advanced Options and Keywords . . . . . . . . . . . 209
Setting Up Advanced Configuration Options Using Verdi . . . . . . . . . . . . . . . . . . . . 210
Common Errors in the Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Compressing or Decompressing ExecMan Log Files . . . . . . . . . . . . . . . . . . . . . . . 215
Reference Finder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .216
Defining the Reference Finder in the EMC File . . . . . . . . . . . . . . . . . . . . . . . . 217
Alternative Fields for Reference Builds and their Tests . . . . . . . . . . . . . . . . . . 218
Usage Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220
Integrating the Reference Finder Flow Into the ExecMan Flow . . . . . . . . . . . . 221
ExecMan Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Reference Finder Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
GUI Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
6.
Setting Up the Environment and Running Regressions . . . . . . . . . . . . . . . . . . 225
Setting Up the Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Mandatory Environment Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Optional Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
List of ExecMan Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
Running a Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231
Command-Line Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Running Multiple Regressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Viewing Running and Queued Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252
Generating Emails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Rerunning Regressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
6
Feedback
Contents
Rerun Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Generating the Rerun, Rerun With Debug, or Debug Rerun Command . . 256
Linking a Parent Session With a Rerun Session . . . . . . . . . . . . . . . . . . . . 258
Linking a Parent Test With a Rerun Test . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Debug Rerun Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Rerun Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
Reuse Compilation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Reuse Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Reuse Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262
Validation Rules for Dependent Compilation Results . . . . . . . . . . . . . . . . . . . . 263
Show Configuration Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Collecting Session Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Automatic Debug Rerun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Executing Debug-Rerun Immediately After a Failure . . . . . . . . . . . . . . . . . . . . 267
Retry Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Predefined Custom Status List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Grid Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Example of Using retry_grid_opt_list in the Setup File . . . . . . . . . . . . . . . 269
Example of Using retry_grid_opt_list in the Configuration File . . . . . . . . . 269
Results View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Minimization of Total Regression Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Cleaning Up the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
The cleanup Block in tests/builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272
The Cleanup Block Under merge_options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
The -db Switch for the cleanup Command . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
The Cleanup Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
7.
Managing and Administering Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
VC Execution Manager Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Managing Data and Server Using the eman Command . . . . . . . . . . . . . . . . . . . . . 277
Managing Projects Using the eman project Command . . . . . . . . . . . . . . . . . . 278
Adding Members to a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
Merging Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Merging Sessions With Duplicate Tests . . . . . . . . . . . . . . . . . . . . . . . . . . .284
Limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285
Continuing Sessions With Random Rounds . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Partial Regressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
7
Feedback
Contents
Randomization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Session Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Migrating Session Data to a Centralized MySQL Server . . . . . . . . . . . . . . . . . 286
Options to Specify Source Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Options to Manage Migrated Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Options to Specify the Migration Operation . . . . . . . . . . . . . . . . . . . . . . . . 289
Stopping a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292
Deleting a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Deleting Specific Tests and Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Extracting Predefined Errors From a Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Extracting and Saving Errors to Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Extracting and Saving Errors Into an ExecMan Session . . . . . . . . . . . . . . . . . 297
Specifying Multiple Error Pattern Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
8.
Planning and Coverage Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Enabling or Disabling Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
ExecMan With Coverage and Back-Annotation . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
Viewing Coverage Data in Verdi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Coverage Merge Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Merging With a User-Defined Test Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Coverage Merging and Multiple Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .306
Setting Test Run Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
Merging Tests of a New Session With Parent Sessions . . . . . . . . . . . . . . . . . . . . .307
Types of Merges Coverage Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Full Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Build Block Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .308
Merge Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Hierarchical Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .309
Disabling Intermediate Merges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Defining Merge Per Build . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Parallel Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310
Skipping Failed VDBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Merge Options Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
Alternative Merge Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
STDOUT Errors in Merge Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Merging Session and Coverage Using the Verdi GUI . . . . . . . . . . . . . . . . . . . . . . 313
8
Feedback
Contents
Test Grading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
Hierarchical View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Tree View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Flat View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Plan-Driven Grading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Method of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
User Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Using plangrade With Eman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
Hierarchical View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Tree View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Flat View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .331
Plan Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Database-Based Plan Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Viewing Latest Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Searching a Plan Using its Tag Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Viewing Feature Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
Viewing Plan Versions Difference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339
Searching the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Features in a CSV File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .341
Reviewing Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
9.
Test Application Programming Interface (Test API) . . . . . . . . . . . . . . . . . . . . . 343
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Running Test API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Sample Test APICode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Test API Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Starting Test API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .349
Posting Test Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Database Field Updates Using Unique IDs . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Stopping Test API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Setting Permissions for a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .356
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Command Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Test Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
9
Feedback
Contents
Info File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
sessionName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .359
Test Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Custom Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
top_run_dir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Saving Files or Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Return Values and Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
General Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361
Attaching Additional Data Using Test API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .362
Updating the Database With the JSON File . . . . . . . . . . . . . . . . . . . . . . . . . . .362
Updating Data With Test API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
Adding Custom Values to the Project and Config Pages . . . . . . . . . . . . . . . . . . . . 363
Retrieving Test Data From the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
Using Dump Files to Analyze the Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Retrieving Session Name Using RID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Viewing TestAPI Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
Software Reliability Growth Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Storing Bug Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Configuring the Redmine Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Extracting Bug Status From the Redmine Server . . . . . . . . . . . . . . . . . . . 369
Saving Bug Data Into the ExecMan Database . . . . . . . . . . . . . . . . . . . . . 370
Counting Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
Generating the Reliability Growth Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .371
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
10.
Restful Application Programming Interface (Restful API) . . . . . . . . . . . . . . . . 374
API Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
API Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .374
API Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Accessing Plan Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
10
Feedback
Contents
11.
Viewing and Analyzing Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
Configuring the Auto Refresh Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .388
Layout Customization Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .389
Layout Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Select/Unselect Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Reorder Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Rename Column Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Save, Apply, Delete, Save & Apply, Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Save & Apply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Apply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .393
Vertical Column Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Share Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .394
Apply Layout as default . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Viewing the Build Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Viewing the Test Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .399
Displaying Sessions Within a Specific Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . .401
Viewing Test Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Selecting Different Tests View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Type Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Scope Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
View Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Restoring the Default View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Viewing Test Trend Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Creating and Viewing Trend Chart for Plan Data . . . . . . . . . . . . . . . . . . . . . . . . . . 410
Viewing the Default Plan Trend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Viewing Plan Trend Chart With Multiple Features . . . . . . . . . . . . . . . . . . . . . . 414
Viewing Plan Trend With Multiple Features and Multiple Metrics . . . . . . . . . . .415
Saving Trend Chart Configuration Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Loading the Saved Trend Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
Excluding or Including Sessions for Trend Charts . . . . . . . . . . . . . . . . . . . . . . . . . 419
Managing X-Axis in Session and Plan Trend Charts . . . . . . . . . . . . . . . . . . . . . . . 421
Configurable Trend Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
Configuring the Chart Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
Configuring the Chart Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
11
Feedback
Contents
Configuring Y-Axis Data Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
Data Model Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
Multiple Charts on the Same Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .431
Creating a Chart Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Editing a Chart Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .435
Deleting a Chart Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Selecting and Deselecting Rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Viewing Results From all Sessions and Configurations . . . . . . . . . . . . . . . . . . . . . 438
Filtering Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .440
Viewing Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
Adding Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
Saving Results to a CSV File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
Emailing the Results Page Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
Comparing Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
Deleting Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
Categorizing the Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .449
Viewing Test Status in a URG Dashboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
Viewing the URG Report From the Session Detail Page . . . . . . . . . . . . . . . . . . . . 451
12.
Retrieving Information From the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
testcase_result_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
custom_result_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
feature_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
feature_attribute_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
metric_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .461
feature_core_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
sess_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464
sess_att_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
Usage Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
Basic Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Querying Extended Project-Specific Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
PERL Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
Creating Custom Database Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
session_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
12
Feedback
Contents
testcase_vw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
Limitation - JOINed Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
Implementation Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
13.
Integration With VC Formal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
VC Formal Runs as Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Rerun Options for VC Formal Checks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481
Property Types for VC Formal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481
Build Status for VC Formal Runs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
Merge Coverage for VC Formal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
UNR Flow With ExecMan VCF Plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
14.
Integration With Redmine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .485
Installing the Redmine Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .485
Configuring the Redmine Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .486
The redmine.emd Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
The synopsys_eman.setup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .487
The eman admin add_redmine command . . . . . . . . . . . . . . . . . . . . . . . . . 487
Creating New Tickets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
GUI Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
Results Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .488
Projects Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Configs Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Sessions Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
15.
Integration With ICO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Enabling and Disabling Constraint Biasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
Passing ICO Options to Simv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
Setting Batch Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .492
Storing ICO Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
Rerunning Regression Option for ICO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Viewing ICO Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
13
Feedback
Contents
16.
Integration with Regression Debug Automation (RDA) . . . . . . . . . . . . . . . . . . 495
Loading RDA in ExecMan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .496
Enabling RDA Binning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .497
Enabling Debug Facilitator/RCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
Reference Finder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .499
Defining Commands to Rebuild/Rerun simv . . . . . . . . . . . . . . . . . . . . . . . . . . 501
A.
Structure of the ExecMan Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . .504
B.
Serverless Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
Installing the Software Package Without the Database Server . . . . . . . . . . . . . . . 511
Installing VC Execution Manager in the Serverless Mode . . . . . . . . . . . . . . . . 512
Customizing the Setup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Accessing Regression Run Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Viewing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Command-Line Options for the Serverless Mode . . . . . . . . . . . . . . . . . . . . . . . . . .516
Viewing Static Regression Run Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517
Migrating Session Data Generated in the Serverless Mode to the MySQL
Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
C.
Troubleshooting Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
Troubleshooting Installation Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
Troubleshooting Common Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
Facing Issues While Launching ExecMan . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
LSF/SGE farms fail to launch jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Saved files do not appear in GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .523
Tests do not return expected pass/fail results . . . . . . . . . . . . . . . . . . . . . . . . . 523
Cannot find results in GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Troubleshooting Configuration File Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
General Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .526
14
Feedback
1
Preface
This chapter provides the following information:
• About This Guide
• Terminologies Used in This Guide
• Getting Help on Command-Line Options
• Customer Support
• Synopsys Statement on Inclusivity and Diversity
About This Guide
This guide provides an insight into the VC Execution Manager ("ExecMan") environment
and gives information about the following:
• Installing, administering, and using VC Execution Manager
• Running regressions, tracking results, and storing them in a relational database
• Generating interactive reports using VC Execution Manager
• Enabling or disabling coverage
• Improving productivity using the utilities, such as Test API and Restful API
• Retrieving information from the database
VC Execution Manager™ User Guide
V-2023.12-SP2
15
Chapter 1: Preface
Terminologies Used in This Guide
Feedback
Terminologies Used in This Guide
Following are some of the common terminologies used in this guide:
Host — A UNIX server that hosts VC Execution Manager applications or servers. A host
can be any of the following:
• Launch host — Where regressions are initiated with the eman -regr_config command.
For details on this command, see "-regr_config".
• Grid host — Where regression tasks are run through Load Sharing Facility (LSF),
SunGrid, or other grid managers.
• Server host — Where either MySQL, Web server, or both run.
Environment — A UNIX environment where VC Execution Manager applications and
servers run.
cvsdepot — A location where archived and MYSQL database files are stored. This
location is set through the depot setting in the synopsys_eman.setup file.
Spool — A location where log files related to tests are stored. The spool is controlled by
the spool setting in the synopsys_eman.setup file.
builds — A block in the VC Execution Manager regression configuration file that enables
you to define how you can compile a design. You can specify various options and
keywords to further optimize coverage scores.
tests — A block in the VC Execution Manager regression configuration file that enables
you to define how each test is run.
Schema — The logical view of a database. It defines how the data is organized and how
the relations among them are associated.
Getting Help on Command-Line Options
You can use the eman-h command or the eman--help command to view the usage of a
command, definition, and syntax.
To view help on VC Execution Manager projects, use the following command:
% eman project <option> -h
or
% eman project <option> --help
VC Execution Manager™ User Guide
V-2023.12-SP2
16
Chapter 1: Preface
Customer Support
Feedback
For example:
% eman project create -h
or
% eman project create --help
To view help on any eman option, use the following command:
% eman <option> -h
or
% eman <option> --help
For example:
% eman -regr_config -h
or
% eman -regr_config --help
Customer Support
This section explains how to report ExecMan-related issues. To report any issue, send an
e-mail to:
support_center@synopsys.com
In general, an issue needs to be reproduced to get it fixed. Therefore, providing a simple
model demonstrating an issue is the most effective way to identify a bug. If that is not
possible, then provide a detailed explanation of the issue.
You can also provide direct feedback on the documentation of ExecMan by clicking the
Feedback button in the footer of a page. The Feedback button opens an email application
and automatically specifies the email address where the feedback is sent. The button also
picks the guide name, section name, and page number from the page where you click the
button. You can type-in your comments in the email. Your e-mail will be acknowledged by
an automatic reply and will be assigned a case number.
Synopsys Statement on Inclusivity and Diversity
Synopsys is committed to creating an inclusive environment where every employee,
customer, and partner feels welcomed. We are reviewing and removing exclusionary
language from our products and supporting customer-facing collateral. Our effort also
includes internal initiatives to remove biased language from our engineering and working
VC Execution Manager™ User Guide
V-2023.12-SP2
17
Chapter 1: Preface
Synopsys Statement on Inclusivity and Diversity
Feedback
environment, including terms that are embedded in our software and IPs. At the same
time, we are working to ensure that our web content and software applications are usable
to people of varying abilities. You may still find examples of non-inclusive language in our
software or documentation as our IPs implement industry-standard specifications that are
currently under review to remove exclusionary language.
VC Execution Manager™ User Guide
V-2023.12-SP2
18
Feedback
2
Introduction to VC Execution Manager
VC Execution Manager (or "ExecMan") is a versatile and robust application that runs a set
of regressions, tracks and collects regression results, and generates interactive reports for
exploring these results.
VC Execution Manager automates coverage-driven SoC verification execution, data
collection, and reporting. It is a key element of the Synopsys SoC Verification Automation
solution of Verification Continuum.
VC Execution Manager is preconfigured to work with VCS and UVM methodologies.
ExecMan accepts executables produced by functional verification tools (VCS, VC Formal,
and so on), runs regressions, and stores regression results in a relational database.
Regression results can be annotated back to the Verification Planner as ExecMan is
natively integrated with Verdi. This integration enables you to easily manage verification
execution in the same environment used for planning, coverage, and debug tasks.
Figure 1 shows the VC Execution Manager environment. VC Execution Manager consists
of the following main components:
• A regression engine driven by a simple configuration file (*.emc file).
• A relational database that stores regression results. These regression results can be
viewed in a Web-based user interface or in Verdi.
VC Execution Manager™ User Guide
V-2023.12-SP2
19
Chapter 2: Introduction to VC Execution Manager
Key Features
Feedback
• Utilities for management, analysis, tracking, and reporting.
Figure 1
VC Execution Manager Environment
This chapter consists of the following sections:
• Key Features
• User Interfaces
• Modes
• Database Server Features
• Tool Reckoner
Key Features
VC Execution Manager provides state-of-the-art support for basic tasks of functional
verification flows. VC Execution Manager is a simplified, an extensible, and a powerful
regression configuration that offers the following features:
• Regression Efficiency:
◦ Optimizes regressions for turnaround time and costs
• Scalability
VC Execution Manager™ User Guide
V-2023.12-SP2
20
Chapter 2: Introduction to VC Execution Manager
Key Features
Feedback
◦ Enhances the ability of teams to coordinate their efforts and accurately estimate
schedules
◦ Provides APIs to store and track regression data in a relational database
◦ Supports full regression database server and serverless capability. In the serverless
mode, ExecMan regression results are written to a local data file. This mode is
useful for smaller verification environments where there is no need for sharing
regression data, comparing results between regression sessions, and searching
results among multiple sessions.
◦ Flexibly supports executing regression jobs on local hosts as well as widely-used
grid managers, such as SGE, LSF, and RTDA. It also supports running regressions
with named hosts via RSH and SSH protocols.
• Debug Productivity
◦ Provides a plan-driven grading application to rank tests by how you target coverage
in your executable verification plan
◦ Provides test filtering, on-the-fly visibility, real-time regression monitoring, debug
triage, and regression trend charting.
◦ Provides interactive launch and control
◦ Provides prompt analysis and automatic rerun of regression failures
◦ Overcomes common system failures, such as failed hosts and disk access
interruptions
• Verification closure
◦ Provides flexible automated infrastructure management that improves time to
coverage closure.
◦ Provides an extensible infrastructure to allow home-grown scripts to be integrated
without manual maintenance
◦ Supports automatic coverage merging and automatic debug rerun
VC Execution Manager™ User Guide
V-2023.12-SP2
21
Chapter 2: Introduction to VC Execution Manager
Key Features
Feedback
Figure 2 shows a typical regression flow that you can build using VC Execution Manager:
Figure 2
A Typical Regression Flow Using VC Execution Manager
VC Execution Manager™ User Guide
V-2023.12-SP2
22
Chapter 2: Introduction to VC Execution Manager
User Interfaces
Feedback
User Interfaces
You can invoke VC Execution Manager using either of the following user interfaces:
1. ExecMan User Interface
2. Verdi GUI
ExecMan User Interface
To invoke the ExecMan User Interface, perform the following steps:
1. Use a recommended browser to open the Web server address (or the URL) that gets
displayed after installing ExecMan. To know recommended browsers, see Browser
Requirements. You can obtain the Web server address by executing the following
command:
% eman -get_web_url
This command displays the base address of the Web server. For example:
http://hostname:port/eman/
2. Use the Web server address to view the VC Execution Manager Home page. When
you visit this address for the first time, you are prompted to log in, as shown in the
following figure:
Figure 3
The Login Screen of the ExecMan User Interface
VC Execution Manager™ User Guide
V-2023.12-SP2
23
Chapter 2: Introduction to VC Execution Manager
User Interfaces
Feedback
3. On the Login screen, specify your UNIX user name and click Login to view regression
run results.
4. After you log in, the Home page displays the list of projects that you have created using
the eman project create command as shown in following figure:
Figure 4
The Home Page of the ExecMan User Interface
Click a project name to navigate and see the list of configurations for that project. When
you click a configuration name, it shows its sessions. Select a session name to view the
builds for that session. For each build, you can see the status, start time, runtime, and
configuration name. Click the build name to view the status of each test.
The Legend and Note link is provided at the bottom-left corner of each table. This
provides information about projects, project permissions, and so on. Click the Legends
and Note link and the following information is displayed:
VC Execution Manager™ User Guide
V-2023.12-SP2
24
Chapter 2: Introduction to VC Execution Manager
User Interfaces
Feedback
Verdi GUI
To invoke ExecMan from the Verdi GUI, perform the following steps:
1. Create a project in ExecMan using the following command:
setenv EMAN_PROJECT <project_name>
2. Invoke Verdi using the following command:
verdi -cov &
3. Invoke ExecMan from the Verdi GUI using Tools > Open Tests Browseras shown in
Figure 5.
Figure 5
Invoking ExecMan From the Verdi GUI
VC Execution Manager™ User Guide
V-2023.12-SP2
25
Chapter 2: Introduction to VC Execution Manager
User Interfaces
Feedback
The Home page of ExecMan appears as shown in Figure 6:
Figure 6
The Home Page of ExecMan From the Verdi GUI
Note:
The Legend and Note link provided at the bottom-left corner of each table is the
same as explained in ExecMan User Interface.
Invoking ExecMan in the Verdi GUI Using the eman Command
To invoke ExecMan in the Verdi GUI and redirect its log files into the Verdi message
window, use the following command:
eman -gui
Note:
It is mandatory to set VERDI_HOME before using the -gui option and the version
of Verdi should be greater than or equal to ExecMan and VCS version.
The eman -gui command invokes ExecMan, as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
26
Chapter 2: Introduction to VC Execution Manager
User Interfaces
Feedback
The -gui option can be appended into the run command or other eman options. For
example: eman -regr_config <config.emc> -gui
All eman options except the following support -gui:
• eman testapi
• eman data
• eman server
• eman project
• eman cleanup
VC Execution Manager™ User Guide
V-2023.12-SP2
27
Chapter 2: Introduction to VC Execution Manager
Modes
Feedback
Modes
You can invoke ExecMan in either of the following modes:
• Interactive Mode
◦ This mode uses the Verdi Coverage GUI to interactively launch tests, manage tests,
execute them, and collect their results
◦ This mode enables you to directly interact with a grid manager to ensure that
right tests are run with right options. Instead, you can also use a local host to run
regressions.
◦ This mode is used for projects which do not already have a full functional system to
launch regressions.
◦ This mode is used for projects that already have a configuration defined in the
configuration (*.emc) file.
◦ This mode provides the following benefits:
▪ Easy-to-use interface
▪ Easily accessible URG reports
▪ Easily reruns a particular session or a selected test
• For more details on the interactive mode, see the Running Regressions Using Verdi
Coverage section.
• To view a demo video on the interactive mode, click here.
• Batch Mode
◦ This mode uses the UNIX system to invoke ExecMan. It launches tests, manages
tests, executes them, and collects their results.
◦ This mode enables you to directly interact with a grid manager to ensure that
right tests are run with right options. Instead, you can also use a local host to run
regressions.
◦ This mode is used for projects which do not already have a full functional system to
launch regressions.
◦ This mode provides a full-featured self-contained regression management solution.
◦ For more details on batch mode, see the Running Regressions in the Batch Mode.
VC Execution Manager™ User Guide
V-2023.12-SP2
28
Chapter 2: Introduction to VC Execution Manager
Database Server Features
Feedback
Database Server Features
The ExecMan database is a relational database that stores passed and failed tests along
with metrics. It can store coverage reports generated after a run and other output files.
The database is open and can support arbitrary user-defined metrics. If there is an existing
in-house regression engine, the database can still be used to store test pass/fail data,
metrics or any custom value. In other words, the database is designed to easily connect to
any existing regression engine.
VC Execution Manager is available either as a server or as a client:
• Server
◦ Requires a dedicated and a protected server to run the database server and Web
server continuously (24*7).
◦ Enables all functionality including database setup and management, debug rerun
capability, automatic error extraction and binning, plan grading, and test grading.
◦ Enables you to launch tests, manage their execution, and collect results
interactively using Web-based and Verdi GUIs.
◦ To install ExecMan with the database server, see Installing ExecMan With the
Database Server.
◦ To enable ExecMan Server capabilities, a license key, VC-EXECMAN-SERVER, is
required. For its details, see The Server License: VC-EXECMAN-SERVER.
• Client
◦ Works in conjunction with ExecMan Server-administered databases or can work
standalone in the "serverless" mode for smaller verification environments.
◦ Does not provide ExecMan database management capabilities.
◦ In the serverless mode, runs ExecMan without launching a database server and
can run regressions without maintaining a Web server. ExecMan automatically
detects the absence of a server, and runs tests in the serverless mode. For more
details on the serverless mode, see Chapter, Serverless Mode.
◦ To enable ExecMan client capabilities, a license key, VC-EXECMAN-CLIENT, is
required. For its details, see The Client License: VC-EXECMAN-CLIENT.
VC Execution Manager™ User Guide
V-2023.12-SP2
29
Feedback
Chapter 2: Introduction to VC Execution Manager
Tool Reckoner
Tool Reckoner
The following table provides information about how to use ExecMan:
• Using ExecMan for Complete Regression Management Or Using Test API for
Regression Data Management
Using ExecMan for Complete Regression Management Or Using
Test API for Regression Data Management
Choice
What it does
What is it for
Pros
Cons
References
Full
Launches tests,
ExecMan manages their
execution, and collects
results. It directly
interfaces to your grid
manager to ensure that
right tests are run with
right options.
Projects which
do not already
have a full
functional
system for
launching
regressions.
• A full featured
self-contained
regression
management
solution
• Debug rerun
capability
Automatic
error
extraction and
binning
• Plan grading
and test
grading
• Verdi
Coverage
UI for
interactively
launching
tests
May require extensive
customization to fit
in with any required
legacy test wrappers or
run scripts
• Introduction to
VC Execution
Manager
• Installing and
Administering
VC Execution
Manager
• Getting Started
• Managing and
Administering
Projects
• VC Execution
Manager
Configuration F
• Setting Up the
Environment
and Running
Regressions
• Viewing and
Analyzing Resu
Test API
Projects which
already have
a satisfactory
tool for
launching and
managing
tests.
• Easily
Many full ExecMan
interacts with capabilities, such as
any existing
debug rerun and error
test launch
status extraction are
environment
not available with the
• Provides
test API functionality
access to
ExecMan’s
robust data
transmission
and storage
capabilities
• Compatible
with the
ExecMan User
Interface
Test Application
Programming
Interface (Test AP
Provides an interface
to transmit data from
tests to the ExecMan
database and is used
for data management.
VC Execution Manager™ User Guide
V-2023.12-SP2
30
Feedback
3
Installing and Administering VC Execution
Manager
This chapter describes how to install and administer the VC Execution Manager
application in the following sections:
• Prerequisites
• Customizing URG Version
• Installing ExecMan With the Database Server
• Installing ExecMan Without the Database Server
• Setting Up Your Regression Environment
• Starting the Web Server and Viewing Results
• Setting Up the MySQL Database Server
• Creating Backup
• Custom Templates
Prerequisites
This section discusses minimum requirements to install and administer VC Execution
Manager. This section consists of the following subsections:
• Hardware and Software Requirements
• Licensing Requirements
Hardware and Software Requirements
VC Execution Manager involves several processes that run on different hosts connected
through a TCP/IP network. You can get better performance from VC Execution Manager
with the fastest hosts connected to large, fast storage through a fast network.
VC Execution Manager™ User Guide
V-2023.12-SP2
31
Chapter 3: Installing and Administering VC Execution Manager
Prerequisites
Feedback
The recommended minimum requirements to install VC Execution Manager are:
• Grid Host Requirements
The physical capabilities of grid hosts are governed by the size of regressions that
will run. However, VC Execution Manager requires grid hosts that contain fast reliable
connections to both the spool and your work directories.
• Server Host Requirements
Physical requirements are 1 Gigahertz (GHz) processor and 2 Gigabyte (GB) physical
memory. Higher speeds, more processors, and more memory results in faster
Graphical User Interface (GUI) response times.
◦ Web-server should contain sub 100 milliseconds (ms) ping times to any browser
host that might access the GUI.
◦ Database server should contain sub 1ms ping times to launch any host, as well as
the GUI server, if the GUI server is on a different host. You can run both GUI and
database servers on the same host.
◦ In addition to the physical and network requirements, it is recommended that
the operating system environment allows a large amount of CPU time that these
servers require. You can check the limitations of your OS using the limit C-shell
command.
The recommended minimum space for selected limit parameters are listed in the
following table:
Parameter
Recommended Minimum Space
cputime
Unlimited
filesize
4 GB
datasize
4 GB
stacksize
10240 KB
memoryuse
4 GB
vmemoryuse
Unlimited
descriptors
1024
memorylocked
4 KB
The host that runs VC Execution Manager database and Web servers should be
designated exclusively for VC Execution Manager. No other applications should
VC Execution Manager™ User Guide
V-2023.12-SP2
32
Chapter 3: Installing and Administering VC Execution Manager
Prerequisites
Feedback
run on the VC Execution Manager server host. This is to protect the VC Execution
Manager server host from the resource shortage that might cause the database
server to fail.
• Network Requirements
Most of the previously mentioned requirements are necessary. It is recommended
that the network provides fast and reliable access between all nodes related to a
regression.
• File System Requirements
Most file system requirements are dependent upon the volume of tests run and the
amount of data that each regression generates. Therefore, the file size requirements
are reported in regression tests.
For example, consider a project expecting to run 200 regressions, each of about 100
tests is a 20000 regression-test project. A project that saves 1Gigabyte (GB) of data
per test in the cvsdepot area consumes 1000 times more disk storage compared to a
project storing 1 Megabyte (MB) of data per test.
• Database Storage
The database storage area does not require as much space as cvsdepot.
Though calculations are approximate, you can estimate about 1Kb * P * RP for storage
space on the database storage partition, which is <depot_dir>/var, where:
◦ P is the number of projects
◦ RP is the average regression test-count per project
It is important for the partition where database storage (<depot_dir>/var) is not
allowed to fill up as it causes the database server to halt abruptly.
For example, using the previous approximation for a regression suite containing
1000 tests, you need about 1 MB database storage for that run. Therefore, if 10 GB
storage is allocated for the database, these regressions can be run ten thousand
times.
• cvsdepot Storage
The size of cvsdepot is dependent on the number of projects, tests, regressions, and
average size of files saved per test. Projects that expect to generate more cvsdepot
file data than what can be realistically stored, can manage their storage space through
VC Execution Manager™ User Guide
V-2023.12-SP2
33
Chapter 3: Installing and Administering VC Execution Manager
Prerequisites
Feedback
the periodic use of the eman project_trim command to trim away older and less
relevant files.
The default installation of VC Execution Manager keeps cvsdepot and the database
on the same storage. It is recommended to separate them, if cvsdepot is expected to
grow exponentially.
The recommended wget version to install ExecMan is 1.12 and above. The minimum
version of bash to install ExecMan is 4.4.
• Spool Storage
Spool files consist of the stdout of test runs and the ExecMan-generated files needed
for running tests. In a normal operation, spool files are deleted at the end of each
regression. However, there should be sufficient storage to accommodate the files
needed if you choose to keep the spool.
It is recommended to have at least (10 Kb + L Kb) * N * T disk space, where:
◦ L is the expected size of the stdout log file generated by each test
◦ N is the number of expected concurrent regressions (the number of RMAN_RUN
licenses)
◦ T is the average number of tests in each regression
Note:
The RMAN_RUN license key holders of EMAN can use ExecMan without
server and client license keys.
Auto-cleanup of spool occurs for directories that are more than 7 days old. For example,
if your regressions generate a total of 200 MB of stdout or log files, then the spool size
for that regression would be around 220 MB. If there are five users actively running these
regressions (that is, running 10 times a day), then you need 220x5x10x7 MB+20% buffer
=~ 100 GB to store the spool for all of these runs.
It is recommended to allow a margin in the spool area to accommodate usage of the
-keep_spool eman run argument for debugging.
Note:
It is not recommended to add depot and spool under the installation area
because the performance of ExecMan gets degraded as the size of spool or
depot grows.
• Host Launch Requirements
VC Execution Manager does not place large requirements on the launch host, even
though it is important that it has fast connections to the cvsdepot, spool, and current
VC Execution Manager™ User Guide
V-2023.12-SP2
34
Chapter 3: Installing and Administering VC Execution Manager
Prerequisites
Feedback
work directory disks. It should also have fast connections to the database server host.
A ping to these directories should show delays of less than one second.
• Browser Requirements
VC Execution Manager supports the following Web browsers to view regression run
results:
◦ Firefox 68.9.0 and above
◦ Google Chrome 85.0.4183.192 and above
◦ Internet Explorer 9 and above
◦ Microsoft Edge 98.0.1108.56 and above
Licensing Requirements
This section discusses the licensing requirements for Server and Client and consists of the
following subsections:
• The Server License: VC-EXECMAN-SERVER
• The Client License: VC-EXECMAN-CLIENT
The Server License: VC-EXECMAN-SERVER
At least one server license, VC-EXECMAN-SERVER, is required to use the Web UI so that
multiple users can share regression results. More server licenses are required if:
• There are multiple projects/teams that are unable to share system resources (mainly
database and file storage space) and/or different projects should be prevented from
viewing or altering each other's regression data.
• To expand system capacity problems when there are a large number of users running
large regressions that have many tests.
While it is possible to run ExecMan without a server license, this mode is only useful for
individual engineers to run a single regression. There is no direct support for sharing
information or comparing regression results across multiple regression sessions.
The Client License: VC-EXECMAN-CLIENT
For clients, you need enough client licenses to cover the expected number of
simultaneous regression runs.
VC Execution Manager™ User Guide
V-2023.12-SP2
35
Chapter 3: Installing and Administering VC Execution Manager
Customizing URG Version
Feedback
Customizing URG Version
ExecMan enables you to use different URG version for coverage merge other than
that is specified in $VCS_HOME. For this, use the -vcs_home_path option under the
merge_options block in the .emc file.
The syntax of the -vcs_home_path option is as follows:
merge_options:
-vcs_home_path: /global/apps/vcs_2020.12-SP1-1
Installing ExecMan With the Database Server
The following sections describe how to install the VC Execution Manager application:
• Overview of the Installation Process
• Installing VC Execution Manager in the Database Server Mode
• Downloading and Installing the MySQL Database
• Downloading and Installing the MySQL Database Without Internet
• Silent Post Installation
• Live Upgrade
• Upgrading the Current Installation
• Upgrading the Older Installation
• Database Server Recovery
Overview of the Installation Process
It is recommended to use a VC Execution Manager administrator (a user with IT
administrator privileges) to use a dedicated single UNIX account for installing ExecMan.
However, general users can start the servers from different UNIX accounts and run
ExecMan.
VC Execution Manager™ User Guide
V-2023.12-SP2
36
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
ExecMan can either be installed by the IT team or an individual group as explained here:
• ExecMan supports modular installation, in which the IT team controls the installation of
ExecMan. ExecMan enables you to download and start the database project-wise for
different users. The general users or the CAD administrator can start the servers from
different UNIX accounts and run ExecMan.
• Individual groups who use ExecMan for a regression run can install and manage the
ExecMan application without involving the IT team
To install VC Execution Manager, as an administrator, perform the following step:
• Download the VC Execution Manager tar file and use the Synopsys Installer to install
it. For more information, see section Installing VC Execution Manager in the Database
Server Mode.
As an end-user (general user) or a CAD administrator, multiple users can reference a
single installation of ExecMan from different server instances and run ExecMan on multiple
servers. ExecMan can be run by performing the post-installation task, as described in the
following steps:
Note:
EMAN_HOME must point to <installation_directory>/execman/version/
VMS.
1. Start the database and Web server, that is, perform the installation task, using the
following command:
$EMAN_HOME/admin/post_install
2. (Optional) Execute the following command to start using Execution Manager:
source $EMAN_HOME/data/depot/bin/sourceme.csh (or sourceme.sh)
The $EMAN_HOME/data/depot/bin/sourceme.cshlocation is valid only when you select
the default location for depot.
The sourceme.csh or sourceme.sh files are generated in the <depot_dir> directory. The
location of the sourceme.* files are displayed at the end of the post-installation process.
VC Execution Manager™ User Guide
V-2023.12-SP2
37
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
Installing VC Execution Manager in the Database Server Mode
You can use the Installer GUI to install the ExecMan software package, as described in the
section Installing VC Execution Manager in the Serverless Mode. Alternatively, you can
install ExecMan using the bundled software in the batch mode using the following steps:
1. Change to the top-level directory of the CD or unpacked tar file and run the installer.
./installer
The installation wizard appears.
Note:
It is recommended to use the -legacy switch when using the Synopsys
installer version 4 and above. Here is the command to use the switch:
./installer -legacy
2. Enter the path to the so urce directory containing the downloaded EST file(s): <ENTER
the path of the tar files>
3. Enter the full path to the directory where you want to install Synopsys products. If the
directory does not exist, it will be created. [/usr/synopsys]
4. Site ID number [000]: <Enter your site id >
The site administrator is your site's main contact for Synopsys licensing and other tool
issues. You can leave your own name or type a different name.
After you specify site ID, the installation gets completed and the installer displays the
following installation summary:
VC Execution Manager™ User Guide
V-2023.12-SP2
38
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
Note:
An invocation of this script performs the necessary tool installations and
setup actions. It creates sourceme.csh and sourceme.sh files. You can
"source" sourceme.csh or sourceme.sh to setup ExecMan in the current
shell.
Run the sourceme.* script, using the following command:
% source $EMAN_HOME/data/depot/bin/sourceme.csh (.sh)
Note:
The $EMAN_HOME/data/depot/bin/sourceme.csh location is valid only when
you select the default location for depot.
The command sets EMAN_HOME and displays the Web Server URL that you can use to
invoke VC Execution Manager:
Note:
You need to set EMAN_PROJECT for using ExecMan.
VC Execution Manager™ User Guide
V-2023.12-SP2
39
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
To view how to invoke VC Execution Manager, see the ExecMan User Interface.
Downloading and Installing the MySQL Database
Essentially, users who run the Synopsys Installer installation, must download the MySQL
package. No other user is allowed to download MySQL.
A CAD administrator or an end-user without any special privileges, can run the postinstallation script after the installation is complete using the following command:
$EMAN_HOME/admin/post_install
This step can be performed on multiple server instances by different users. All the required
files are written in to the DEPOT directory. With every new invocation of the post installation
script, to start the new set of servers with the new database, the end-users should provide
a new DEPOT location.
The post_install script performs necessary tool installations and setup actions. The
post_install script starts the following post-installation process:
1. The post_install script performs syscheck that verifies whether the database server
and Web server can run on the current host (as shown in the figure below). It sets
up the configuration required for the database and starts the database and the Web
servers.
Note:
You can perform post installation without doing a system check. However,
it is not recommended. To perform post installation without a system check,
use the post_install -no_syscheck command. For more information on
post installation, use post_install -h.
VC Execution Manager™ User Guide
V-2023.12-SP2
40
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
Provide installation platform [amd64]:
<specify the installation platform>
2. Enter the depot path where the data will be stored [./db/depot]:
<specify the depot directory>
3. Enter the spool path where the data will be stored [./db/spool]:
<specify the spool directory>
4. Do you want to enable auto-backup (y|n):
<Yes to enable or No to disable>.
For details on auto-backup, see Automatic Backup of the MySQL Database.
5. Enter the directory to store auto-backup [./data/autobackup] (Only if you gave Y in the
previous option):
<specify the auto-backup directory>
6. Choose the MySQL configuration.
VC Execution Manager™ User Guide
V-2023.12-SP2
41
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
◦ To install the local MySQL server, enter 1.
◦ To connect to a pre-installed MySQL server, enter 2.
Note:
If you connect to a pre-installed MySQL server, provide the host server
name and port numbers of the server.
After you select the MySQL server, the prompt to provide server port for DB servers is
displayed.
7. Enter the MySQL server port number [3306].
8. Specify the MYSQL root password:
<specify password>
Note:
When prompted, provide a new root password for MySQL and not the UNIX
account root password.
9. Enter the Web server port number [8000].
10. Provide the MySQL8 installation file.
[https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.25-linuxglibc2.12-x86_64.tar.xz].
VC Execution Manager™ User Guide
V-2023.12-SP2
42
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
The Web server gets started as shown below:
The post_install script creates sourceme.csh and sourceme.sh files. You can
"source" sourceme.csh or sourceme.sh to setup ExecMan in the current shell using the
following command:
source <Path to Depot dir>/depot/bin/sourceme.csh (.sh)
Note:
The <Path to Depot dir>/depot/bin/sourceme.csh location is valid only
when you select the default location for depot.
The command sets EMAN_HOME and displays the Web Server URL that you can use to
invoke VC Execution Manager:
Note:
You need to set EMAN_PROJECT for using ExecMan. To view how to invoke VC
Execution Manager, see the ExecMan User Interface.
VC Execution Manager™ User Guide
V-2023.12-SP2
43
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
Downloading and Installing the MySQL Database Without Internet
You may download and install the MySQL database without Internet. For this, perform the
following steps:
1. Download the mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz file from
www.mysql.com using an Internet connection and copy this file to your local directory.
2. Set the NEW_POST_INSTALL environment variable to 1 using the following command:
setenv NEW_POST_INSTALL 1
3. Execute the post-installation script with the -no_syscheck switch, as follows:
$EMAN_HOME/admin/post_install -no_syscheck
4. Provide the installation platform [LINUXAMD64].
<specify the installation platform>
5. Enter the depot path where the data will be stored [./db/depot].
<specify the depot directory>
6. Enter the spool path where the data will be stored [./db/spool].
<specify the spool directory>
7. Do you want to enable auto-backup [y|n]:
<Yes to enable or No to disable>.
For details on auto-backup, see Automatic Backup of the MySQL Database.
8. Enter the directory to store auto-backup [./data/autobackup] (Only if you gave Y in the
previous option):
<specify the auto-backup directory>
9. Choose the MySQL configuration.
Choose option 1 in the above step.
After you select the MySQL server, the prompt to provide server port for DB servers is
displayed.
10. Enter the MySQL server port number [3306].
VC Execution Manager™ User Guide
V-2023.12-SP2
44
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
11. Specify the MYSQL root password:
<specify password>
Note:
When prompted, provide a new root password for MySQL and not the UNIX
account root password.
12. Enter the Web server port number [8000].
13. Provide the MySQL8 installation file.
[https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.25-linuxglibc2.12-x86_64.tar.xz].
Enter the path of the directory where you have copied the downloaded mysql-8.0.25linux-glibc2.12-x86_64.tar.xz file
After specifying the path of mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz, the
post_install starts to install MySQL8, as shown in the following figure:
Note that the post_install script uses the already installed mysql database under the
depot location.
Silent Post Installation
Silent post installation helps to run the post_installscript without having to perform any
actions during the run.
To enable silent post installation, set the EMAN_SILENT_INSTALL environment variable to 1.
Example
VC Execution Manager™ User Guide
V-2023.12-SP2
45
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
export EMAN_SILENT_INSTALL=1
export EMAN_PLATS=amd64
export EMAN_INSTALL_HOME=<absulte
installtion>
path to the VMS folder of binary
export EMAN_MYSQL_ROOT_PSWD=<enter the password>
export EMAN_DEPOT_DIR=<abslute path to your new depot>
export EMAN_SPOOL_DIR=<absalute path to your new spool>
export EMAN_MYSQL_INSTALL_PORT=<free port for mysql db server>
export EMAN_WEB_SERVER_PORT=<free port for web server>
${EMAN_INSTALL_HOME}/admin/post_install
Note:
Remember the password you use for silent post installation as it will be required
for upgrade of the VMS DB version and for shut down of the DB servers.
Use the following environment variables to point to MySQL binaries, and not download
while installing.
• export EMAN_POST_INSTALL_MYSQL5=<absolute path to mysql-5.5.2-m2linux-x86_64-icc-glibc23.tar.gz binary downloaded>
• export EMAN_POST_INSTALL_DOWNLOAD_GETFILE=<absolute path to
mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz binary downloaded>
Live Upgrade
ExecMan provides the capability to perform live upgrade for any minor patch release. For
example, an upgrade from O-2018.09 to O-2018.09-1 can be a live upgrade. However,
any upgrade from any major release, say O-2018.09, to another major release, say
P-2019.06, requires you to shutdown both the GUI and the database, which is described in
Upgrading the Current Installation.
Note:
Live upgrade is only valid for the version update after N-2017.12.
For a live upgrade, perform the following steps:
The <Path to Depot dir>/depot/bin/sourceme.csh location is valid only when you
select the default location for depot.
VC Execution Manager™ User Guide
V-2023.12-SP2
46
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
1. Source the <Path to Depot dir>/depot/bin/sourceme.csh file of the current
release.
2. Shutdown the Web server with the following command:
eman server shutdown_web
3. Set EMAN_HOME to the newly installed ExecMan and run $EMAN_HOME/admin/
post_install.
4. Use depot and spool directories used in the previous installation.
5. Use the same old MySQL password when prompted.
If you want to backup the database before doing the upgrade, see Creating a Backup of
the MySQL Database.
Upgrading the Current Installation
Users with IT administrator privileges can upgrade the current installation to the latest
version of ExecMan. When performing the installation, it is recommended to install
ExecMan in a directory that is named after the release. This enables you to easily add
another installation directory and perform the installation, as described in the section
Installing VC Execution Manager in the Database Server Mode.
As data or the servers are not bound with the installation, the end-user of the servers are
required not to run the post installation tasks until the administrator upgrades the ExecMan
installation.
To ensure that no changes are made in between the project cycle, it is recommended
to continue to run ExecMan P-2019.06. At the beginning of a new project or when the
ExecMan upgrade is required, execute the following steps:
► Stop the servers of the older installation using the following command:
eman server shutdown_web
eman server shutdown_db (optional)
Note:
It is recommended to use the following command only when the newer version
contains server-side enhancements/bug fixes or when you need to run web or
database servers on a different host:
eman server shutdown_db
VC Execution Manager™ User Guide
V-2023.12-SP2
47
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan With the Database Server
Feedback
► Run the post installation script for the latest release.
For example: ./admin/post_install
When prompted for DEPOT and SPOOL directories, use the same directories provided in
the older installation. ExecMan automatically makes the changes to the database so as
to run with the latest version.
Upgrading the Older Installation
If you are using ExecMan versions, such as J-2014.12, K-2015.09, or N-2017.12, a user
with IT administrator privileges can upgrade the older installation of ExecMan as described
in the Installing VC Execution Manager in the Database Server Mode with the following
changes:
• If the data directory is inside the installation directory, it is recommended to create a
data directory outside the installation.
• The sourceme.csh and sourceme.sh files might still be present under the
$EMAN_HOME/bin directory. However, the files are regenerated in the< DEPOT_DIR>/
bin directory with installation upgrade. Therefore, if there is any reference to the
$EMAN_HOME/bin/sourceme.* files in the scripts, change it to <DEPOT_DIR>/bin/
sourceme.*.
Starting from the S-2021.09 release, multi-version upgrade is not supported for the preR-2020.12 release streams. When migrating from pre-R-2020.12 release streams, you
should first migrate to the R-2020.12 stream and then to the required higher stream.
Note:
ExecMan enables you to perform minor upgrades without the database
shutdown from N-2017.12 onwards, that is, no downtime for minor upgrades.
ExecMan supports upgrades from any version to a new version. An upgrade
between the same schema version of both installations is a minor upgrade and
it is automatically detected by the post installer. However, the upgrade from the
lower schema version to higher is a major upgrade.
Database Server Recovery
ExecMan provides a database recovery mechanism in which you can repair your database
when it is corrupted. When a database is corrupted, recover your database using the
following command:
mysql -h $yourHostName -D emandb -ueman -p$yourExecManPassword <
$EMAN_HOME/VMS/admin/repair_table.sql
VC Execution Manager™ User Guide
V-2023.12-SP2
48
Chapter 3: Installing and Administering VC Execution Manager
Installing ExecMan Without the Database Server
Feedback
where, emandb is the default database name and repair_table.sql is the script that
repairs corrupted tables in the database.
If you do not know the password for an ExecMan user, you can use the admin (or root)
user as follows:
mysql -h $yourHostName -D emandb -uroot -p$yourSQLRootPassword <
$EMAN_HOME/VMS/admin/repair_table.sql
Installing ExecMan Without the Database Server
Installing ExecMan and running regressions without a server (also, called as the
serverless mode) enables you to run regressions without installing the database server
and the Web server. In this mode, it is not required to run the post installation script or
tasks. ExecMan automatically detects the absence of servers and runs regressions in the
serverless mode; thus, enabling you to run ExecMan even when the database server is
down or not accessible.
The serverless installation enables you to perform the following tasks:
• Handle multiple runs as a single user. That is, although you can execute multiple runs,
the runs are independent of each other. The data for each run is isolated and stored
separately as there is no centralized database.
• Provide an interface to write data in the csv or HVP format so that you can annotate
plans.
For detail on how to install ExecMan without a database server, see Installing the Software
Package Without the Database Server.
Setting Up Your Regression Environment
To set up your regression environment, perform the following tasks:
• Modifying the Setup File
• Configuring the Compute Farm
• Setting Environment Variables for Grid Management
• Configuring Job Queues
• Starting the Web Server and Viewing Results
• Setting Up the MySQL Database Server
• Creating Backup
VC Execution Manager™ User Guide
V-2023.12-SP2
49
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
Modifying the Setup File
To set up your regression environment, modify the synopsys_eman.setup file using the
following steps:
Note:
It is recommended to change or modify the synopsys_eman.setup file when
VMS is in use. Any changes to the synopsys_eman.setup file when VMS is in
use may cause VMS to fail and may lead to unexpected results.
1. Change the working directory as the <DEPOT> directory.
2. Open the synopsys_eman.setup file in a text editor and modify the database setup
section to define your environment as follows:
◦ host — is your machine name (this should be auto-updated by post_install)
◦ depot_dir — is the depot directory and is set to the <INSTALL_DIR>/VMS/data/
depot directory, by default. This is also updated during post installation and this
should not be changed manually. It must be changed only using the post_install
script.
◦ spool_dir — is the default global spool scratch directory and is set to the
<INSTALL_DIR>/VMS/data/spool directory, by default. This is also updated during
post installation.
You can define user-specific spool_dir in the following way:
► You can use -spool_dir <dir> with eman or can use the following:
setenv EMAN_OVERRIDE_SPOOL_DIR <USER_SPOOL>
ExecMan creates the <USER_SPOOL>/user/project/config/session hierarchy
in the given override directory. This is the area where all the spool data is added.
ExecMan also creates a link from <GLOBAL_SPOOL>/user/project/config/session
to <USER_SPOOL>/user/project/config/session. This enables you to auto clean
old spool directories. It shows spool logs for the corresponding tests.
Auto cleanup for the spool data is configurable. It defaults to 7 days, however, you can
set it to any number using the following command:
export EMAN_JKEEP_DAYS=<number>
Note:
The default values for depot and spool directories are given as an
example. It is recommended to keep these two directories outside of the
installation directory so that upgrades can be performed easily without
modifying the older installation.
VC Execution Manager™ User Guide
V-2023.12-SP2
50
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
• json_config_save_size_limit: is used to specify the maximum size (in bytes)
of the configuration file that can be saved in the database. Its default value is
1000000 and its maximum limit is 2621440. To change its default value, edit
$EMAN_SETUP_FILE_DEFAULT as follows:
webserver:
...
json_config_save_size_limit: 1000000
...
If the configuration data is less than or equal to the limit specified in
json_config_save_size_limit, the configuration data is saved to the database and
ExecMan displays the following message:
"Info: Successfully post config data to EMAN Server."
If the configuration data is more than the limit specified in json_config_save_size_limit
but is less than its maximum limit (2621440 bytes), the configuration data is not saved
to the database and ExecMan displays the following message:
"Warning: Config size (size) is over the limit (limit), not sending
config to server. Editing the configuration through the GUI
will not be possible. If changing the configuration is required
before rerunning, set a higher limit in the installation using
json_config_save_size_limit attribute in synopsys_eman.setup"
If the configuration data is more than the maximum limit (2621440 bytes), the
configuration data is not saved to the database and ExecMan displays the following
message:
"Warning: Config file data size is larger than (max size limit). It
will not be saved to EMAN server. Editing the config data in rerun
will not be possible"
Specifying Server Certification
ExecMan enables you to specify server certification details in the synopsys_eman.setup
file using the crt_file keyword.
The crt_file keyword points to the following location, by default:
crt_file: $EMAN_HOME/gui/certs/server.crt
You can change the location of this server certification file.
Following new keywords are added in the synopsys_eman.setup file:
• secured: This keyword is used to include user authentication via PAM (Linux
authentication mechanism) and to enforce file permissions on the spool/depot.
ExecMan gives priority to the secured keyword. Therefore, the secured keyword
overrides https_pam and https.
VC Execution Manager™ User Guide
V-2023.12-SP2
51
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
• https_pam: This keyword is a subset of secured that uses PAM, however, it does
not enforce file permissions on the spool/depot. For backward compatibility, use the
following settings:
◦ secured: 0
◦ https_pam: 0
◦ https: 0
This keyword uses HTTPS and accepts empty password to be compatible with the
non-HTTPS mode that does not require password. This keyword overrides https.
Note:
When https_pam:0, it is not possible to stop the ExecMan session from
Verdi Coverage. Instead, the following error is displayed:
Failure: Not find user server host:port
Configuring the Compute Farm
VC Execution Manager provides support for the setup of the following compute farms:
• SGE
• LSF
• RTDA
• RSH
• SSH
You can also run VC Execution Manager on a local machine using the -local_host
option or set the status of LOCAL_HOST to true in the synopsys_eman.setup file.
Note:
You can disable the LSF status, if the -d option of the bjobs command for
the queued job is not supported. To disable checking the LSF status, set the
EMAN_DISABLE_LSF_CHECK_STATUS environment variable to 1.
VC Execution Manager™ User Guide
V-2023.12-SP2
52
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
You can configure grid settings using one of the following methods:
• Using the synopsys_eman.setup file.
• Using the EMAN_SETUP_FILE environment variable. Copy the synopsys_eman.setup
file to your local folder, modify the file, and set the EMAN_SETUP_FILE variable using the
following command:
setenv EMAN_SETUP_FILE
./<absolute_or_relative_ path/synopsys_eman.setup
For more information, see Setting Up a Compute Farm in Your Environment.
You can configure compute farms in the synopsys_eman.setup file as follows:
Note:
You can select only one compute farm by setting its status to true in the
synopsys_eman.setup file or using submit_opts in the configuration file. By
default, RTDA is set to true. Before, setting any compute farm to true, ensure
to set RTDA to false.
VC Execution Manager™ User Guide
V-2023.12-SP2
53
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
Setting Up a Compute Farm in Your Environment
You can configure a grid in your environment directly. ExecMan supports multiple grid
setups in the environment.
Following are the rules to determine the priority of compute farm selection when multiple
farm settings are available in both the synopsys_eman.setup file and the environment:
• If the -local_host command-line option is used, ExecMan executes on a local host,
regardless of the farm settings in the environment and the setup file.
• If -local_host is not used in the command line, the compute farm is always
determined from the setup file. Only one compute farm must be selected in the setup
file; otherwise, ExecMan exits with an error message.
• If an environment is configured for a compute farm selected in the setup file,
environment settings take precedence over the setup file settings.
• If there are settings for compute farm in the setup file and in the configuration file, the
settings in the configuration file take precedence over the setup file settings.
• If multiple grids are set up in the environment, the grid that was selected in the setup
file is used for submitting jobs in an ExecMan run.
• If no compute farms are selected in the setup file and the -local_host option is not
specified on the command line, ExecMan issues an error message, regardless of
whether any farm is set up in a user’s environment.
You can override the farm selected in the setup file by setting the FARM_TYPE_OVERRIDE
environment variable to the required compute farm.
Setting Up the Slurm Grid Using the Setup File
You can configure the Slurm grid in the synopsys_eman.setup file. You need to provide a
shell script to enable sbatch and scancel commands.
ExecMan submits a predefined internal worker script to the Slurm grid using the sbatch
command. This script pulls jobs from the ExecMan client. Once the worker script is
completed, ExecMan might call the scancel command. For the submitted job, ExecMan
generates a job number and suppresses the creation of default stdout and stderr output
files for the Slurm sbatch command.
The supported Slurm version is 20.02.4 and above.
Limitations
• The sbatch command limitations:
◦ #SBATCH lines in user scripts are not supported.
◦ All sbatch grid options are supported except
VC Execution Manager™ User Guide
V-2023.12-SP2
54
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
▪ Options which have not equivalent in other grids (for example, SGE)
▪ Options which have equivalent in other grids but those other grid options are not
supported by ExecMan.
• Other commands limitations
◦ The srun command is not supported.
◦ Job names are internally generated by ExecMan so that they can be tracked.
The Slurm commands that consume job names cannot be used in ExecMan user
scripts.
◦ The default Slurm stdout/stderr are suppressed by ExecMan. You may decide to
re-enable them as grid options.
Setting Environment Variables for Grid Management
You can choose to set the following environment variables for managing the grid:
• EMAN_SUBMIT_OPTS
Used for setting job submission options for LSF bsub, SGE qsub, and RTDA nc.
• EMAN_JSUBMIT_CMD
This is the submission command. Its Default values are bsub for LSF, qsub for SGE,
and nc for RTDA. You can specify wrappers, such as csub (in Clearcase with the old
version of LSF).
• EMAN_JPOLL_SECS
This is used to specify Job polling interval in seconds.
• EMAN_JPEND_TIMEOUT
This is used to specify timeout in seconds for pending jobs in queue. Pending jobs are
terminated if the jobs are on the PEND queue beyond the timeout and without being
scheduled on the RUN queue. If a test times out in the Queued state and if it reaches
the EMAN_JPEND_TIMEOUT value, the status is shown as Queue_TimedOut.
• EMAN_JRUN_TIMEOUT
This is used to specify timeout in seconds for RUN jobs in queue. RUN jobs are
terminated beyond this timeout if the job status has not been updated. If a test times
out in the Run state and if it reaches the EMAN_JRUN_TIMEOUT value, the status is
shown as Run_TimedOut.
• EMAN_JKEEP_DAYS
VC Execution Manager™ User Guide
V-2023.12-SP2
55
Chapter 3: Installing and Administering VC Execution Manager
Setting Up Your Regression Environment
Feedback
This is used to specify time in days for keeping job directories under the spool.
• EMAN_STOP_OPTS
This is used to specify options for the grid stop command.
Configuring Job Queues
You can configure the queuing of jobs using any of the following methods that are listed in
the lower to the highest order of precedence:
• Setting the submit_opts option in the synopsys_eman.setup file
• Using the EMAN_SUBMIT_OPTS environment variable
• Using the -submit_opts option in the command line
The -submit_opts option in the eman command overrides EMAN_SUBMIT_OPTS in the user
environment, which in turn overrides submit_opts in the synopsys_eman.setup file.
Specifying Stop Options
You can specify options for the Grid Stop command. The command is supported for
LSF, NB, PBS, RTDA, SGE, and Slurm grids. The command can be specified in the
synopsys_eman.setup file as follows:
LSF: true
setup_file: /remote/lsf/cells/snps/conf/profile.lsf
stop_opts: <options>
submit_opts: -q eman -R " rusage[mem=1000] && os_version==7_0 "
For example,
LSF: true
setup_file: /remote/lsf/cells/snps/conf/profile.lsf
stop_opts: -l -C <comment>
submit_opts: -q eman -R " rusage[mem=1000] && os_version==7_0 "
VC Execution Manager™ User Guide
V-2023.12-SP2
56
Chapter 3: Installing and Administering VC Execution Manager
Starting the Web Server and Viewing Results
Feedback
Starting the Web Server and Viewing Results
Web servers and data servers are started as part of the post- installation process. If the
Web server needs to be restarted, perform the following steps:
1. Start the Web server using the command:
% eman server run_web
2. Check whether the server is running using the command:
% eman server check_web
If the server is running, the following message is displayed:
EMAN GUI server is running
3. To view the VC Execution Manager Web interface, enter the following address in a
Web browser after starting the server.
http://<host_name>:<port>/eman
where, <host_name> is the name of your Web server and <port> is the server port.
This section discusses the following topics:
• Configuring Wait Time for License Check Out
• Configuring License Expiry Warning Lead Time
Configuring Wait Time for License Check Out
VC Execution Manager checks out the license before it proceeds to run a regression. If the
license server is down and/or if all valid licenses are currently in use, ExecMan waits for
the license to be available.
To configure total wait time for the license, use the EMAN_LIC_WAIT environment variable
as follows:
setenv EMAN_LIC_WAIT <time>
where, <time> is the time duration for which ExecMan checks for the availability of
license. It is specified in seconds and it’s default value is 0.
To configure the polling (retry) interval after which ExecMan retries for the availability of
license, use the following command:
setenv EMAN_LIC_POLL_TIME <time>
The default value of the EMAN_LIC_POLL_TIME environment variable is 0.
VC Execution Manager™ User Guide
V-2023.12-SP2
57
Chapter 3: Installing and Administering VC Execution Manager
Setting Up the MySQL Database Server
Feedback
For example, if EMAN_LIC_WAIT is set to 60s and EMAN_LIC_POLL_TINME is set to 10s,
ExecMan exits after 60s and during 60s, ExecMan tries for the availability of the license
after every 10s.
Configuring License Expiry Warning Lead Time
VC Execution Manager checks out the license before it proceeds to run a regression.
By default, VC Execution Manager warns if the license is due to expire within five
days from the time the regression run is being carried out. To customize this, use the
EMAN_LIC_WARN_LEAD_DAYS environment variable as follows:
setenv EMAN_LIC_WARN_LEAD_DAYS <number_of_days>
For example, to set ExecMan to issue a warning message if the license is due to expire
within the next ten days from the time of execution, use the following command:
% setenv EMAN_LIC_WARN_LEAD_DAYS 10
Setting Up the MySQL Database Server
This section explains how to manage the MySQL server. These tasks are applicable only if
you use MySQL database that the VC Execution Manager provides:
• Checking the MySQL Server
• Launching the MySQL Server
• Stopping the MySQL Server
• Repairing the MySQL Database
Checking the MySQL Server
To check whether the database server is running, use the following command:
% eman server check_db
If the server is running, the MySQL database server start message is displayed.
Note:
In some environments, a warning message is issued while starting the MySQL
server. If the server is running, you can ignore the message.
VC Execution Manager™ User Guide
V-2023.12-SP2
58
Chapter 3: Installing and Administering VC Execution Manager
Creating Backup
Feedback
Launching the MySQL Server
The installation process includes launching the MySQL server. If you reboot your machine
or stop the MySQL server manually, you can restart the MySQL server, using the following
command:
% eman server run_db
If the server does not start, the server issues messages about the failure. In this case,
open the mysql.err file located in your depot path to determine the cause of the failure.
Stopping the MySQL Server
To stop the MySQL server manually, execute the following command:
% eman server shutdown_db
root password: <enter>
Enter the password that you had created while performing post installation.
Repairing the MySQL Database
To repair a corrupted MySQL database, use the following command:
% eman admin repair_db -p <password>
where,
• -p/-root_password is the password for the root user and it is mandatory for the SQL
database engine.
The eman admin repair_db command should be executed only on the host specified in
the setup file.
Creating Backup
You can create a backup of the MySQL database and the existing ExecMan setup. For
more information, see the following sections:
• Creating a Backup of the MySQL Database
• Automatic Backup of the MySQL Database
VC Execution Manager™ User Guide
V-2023.12-SP2
59
Chapter 3: Installing and Administering VC Execution Manager
Creating Backup
Feedback
• Creating a Backup of an Existing VC Execution Manager Setup
• Restoring a Database From a Backup
Creating a Backup of the MySQL Database
To create a backup of the MySQL database, use the following command:
% eman admin backup_db [-p <password>] [-o <OutputDir>]
where,
• -p/-root_password is the password for the root user. It is mandatory for the MySQL
database engine.
• -o/-out_dir is the output directory for the created backup database file. If not
specified, created backup database file is written in the current directory. This option
accepts only a directory name and cannot be used to specify the name of the created
backup database file.
The created backup database file is always named as eman_backup.db.sql. The backup
operation interferes with any ExecMan runs that are active during the process. A warning
message is issued stating the same.
The eman admin backup_db command should be executed only on the host specified in
the setup file.
Automatic Backup of the MySQL Database
ExecMan provides an automatic system to store a backup of the database to prevent data
loss. While installing the database, ExecMan checks with you whether you want to enable
auto-backup. ExecMan displays the following on the command prompt during installation:
If you choose to enable the automatic backup of the database, ExecMan asks you to
specify the location for storing its backup as follows:
ExecMan stores automatic backup settings inside the EMAN_SETUP_FILE_DEFAULT
environment variable. ExecMan automatically sets the value of this variable. ExecMan
VC Execution Manager™ User Guide
V-2023.12-SP2
60
Chapter 3: Installing and Administering VC Execution Manager
Creating Backup
Feedback
provides the following automatic backup settings; it routinely checks the settings and
applies them accordingly:
• autobackup: Set this value to True to enable the auto-backup feature.
• autobackup_dir: Specify the directory location where the auto-backup of the database
is saved.
• autobackup_limit: Set this limit to the number of auto-backup copies you want
ExecMan to create. Its default value is 100.
• autobackup_times: Set clock time (24 hours clock) when the auto-backup of the
database happens. This option allows you to specify more than one clock time for
taking backup.
Creating a Backup of an Existing VC Execution Manager Setup
To ensure that you do not lose the existing VC Execution Manager setup while installing
a new version, create a backup of an existing ExecMan setup. (This step is an optional).
This step is not required if you are installing VC Execution Manager for the first time.
The files or directories that you need to backup are as follows:
• The eman setup file, $EMAN_HOME/admin/synopsys_eman.setup
• The depot directory (default is: $EMAN_HOME/data/depot)
$EMAN_HOME refers to the <EMAN_installation_area>/VMS. By default, a depot is
created in the ExecMan area. If the depot is not inside $EMAN_HOME, create a backup of
the depot from wherever it is pointing to. This step is not required if you have chosen the
existing installation directory.
Restoring a Database From a Backup
ExecMan enables you to restore a database from a backup using the following steps:
1. Create a new database in a new depot using the post_install script.
2. Login to the MySQL database using the following command:
eman data sql -u root -p <root_password>
3. Source the backup of MySQL database using the following command:
source <path_to_backup_file>/<name_of_the_backup>.backup
VC Execution Manager™ User Guide
V-2023.12-SP2
61
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Custom Templates
ExecMan enables you to add and remove templates to the server using the eman admin
register_custom_template command. You may apply these templates to projects and
configurations. In addition, you may control server options related to templates. Only users
with admin permissions are allowed to call this command.
Custom columns provide the following features:
• UI Customization: You can add custom columns to default tables with control over
rendering of column cells through the JavaScript provided.
• Save Custom Values into the Database: You can save custom values into the database
using the save_custom_values() JavaScript API provided by ExecMan to be used in
the custom column script. The effect of save_custom_values() is the same as testapi
saved custom values in the command line but through GUI.
The arguments of the eman admin register_custom_template command are as
follows:
admin register_custom_template [-t TEMPLATE_FILE | -n TEMPLATE_NAME] [-a
| -d | -r] [-p PROJECT_NAME] [-c CONFIG_NAME] [-debug_mode {true,false}]
[-templates_support {true,false}] [-column_rendering {true,false}]
[-column_processing {true,false}] [-v]
Note:
register_custom_columns and register_custom_buttons are aliases for
register_custom_template.
These arguments are explained in the table below:
Argument
Description
-t
Loads the template.emd file at the server. The .emd file is
TEMPLATE_FILE,-template_f in the YAML format.
ile TEMPLATE_FILE
-n
Specifies the name of the already loaded template.
TEMPLATE_NAME,-template
_name TEMPLATE_NAME
-a,-apply
Applies this template to the specified project/configuration.
If no project/configuration is specified, applies this template
as default to all projects.
-d,-delete
Deletes this template from the system. If no template name
is specified, all templates information and their associations
to projects are deleted from the database.
VC Execution Manager™ User Guide
V-2023.12-SP2
62
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Argument
Description
-r,-reload
Reloads the template into the database. If it is not present,
the template is added in the database.
-v
Displays additional information messages and prints them
with the templates content from the database.
Project Configuration Options
-p PROJECT_NAME,-project
PROJECT_NAME
Applies the template to the project with this name. If
PROJECT_NAME is not specified, the template is applied
to all projects.
-c CONFIG_NAME,-config
CONFIG_NAME
Applies the template to the project’s configuration with this
name. If CONFIG_NAME is not specified, the template is
applied to all configurations of the project.
System Options
-debug_mode {true, false}
Enables or disables the template of debug mode in the
server. When this mode is set to true, ExecMan loads
scripts from the disk instead of the database. The default
value of -debug_mode is false.
-templates_support {true,
false}
Enables or disables custom templates in the server.
Custom columns are displayed in the table that show
values from the database but are enabled or disabled
based on the selected value (true or false). The default
value of -templates_support is true.
-column_rendering {true,
false}
Enables or disables custom columns rendering function.
Custom columns are displayed in the table that
show values from the database. The default value of
-column_rendering is true.
-column_processing {true,
false}
Enables or disables custom columns values processing
and rendering function. Custom columns are displayed in
the table that show values from the database. The default
value of -column_processing is true.
Note:
* templates_support=0: Disables all templates in the server.
* templates_support=1, column_processing=0: Enables all templates
in the server but disables processing of custom values and rendering; the
columns are displayed in the table but are disabled. *templates_support=,
column_processing=1, column_rendering=0: Enables all templates in the
server, fetches custom values from the database, but does not call Javascript
code for rendering.
VC Execution Manager™ User Guide
V-2023.12-SP2
63
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
This section consists of the following subsections:
• Template Definition
• Available Built-In Properties
• JavaScript APIs
• Interactively Reloading UI Customization Templates
• Secure Mode
• Sorting and Filtering
• Quick Filtering
Template Definition
The general structure of template_file.emd for defining custom templates is as follows:
-name : template_name
-include :
-path/to/file1.emd
-path/to/file.emd
-scripts :
-path/to/file1.js
-path/to/file.js
-columns :
-column_name_1:
-title: My column title
-tables:
-projects
-configs
-sessions
-builds
-groups
-tests
-function: function_name_1
-inputs:
-builtin_prop_name_1[: type]
-builtin_prop_name_2[: type]
-custom_value_name_1[: type]
-column_name_1: str
-id: int
-type: str
-outputs:
-html: str
-sort: str
-filter: str
- tmpval_name_1: type
- tmpval_name_2: type
-column_name_2:
VC Execution Manager™ User Guide
V-2023.12-SP2
64
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
...
...
...
-buttons :
-button_name_1:
-text: Button Text
-style:
-background: hexcolorspec
-color: hexcolorspec
-font-size: pct%
-tables:
-projects
-configs
-sessions
-builds
-groups
-tests
-function: function_name_2
-inputs:
-builtin_prop_name_1[: type]
-builtin_prop_name_2[: type]
-column_name_1.tmpval_name_1[: type]
-tmpval_name_2[: type]
-custom_value_name_1[: type]
-id: int
-type: str
-outputs:
-html: str
-sort: str
-filter: str
-tmpval_name_1: type
-tmpval_name_2: type
-button_name_2:
...
...
...
Available Built-In Properties
Following properties are available with tables and custom columns:
Table 1
Available Built-In Properties
Property
Data Type/Value
Projects
id
int
type
str
VC Execution Manager™ User Guide
V-2023.12-SP2
65
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
name
str
owner
str
group
str
created
datetime
last_modified
datetime
spool
str
nsessions
int
nusers
int
nconfigs
int
configs
id
int
type
str
project
object
latest_session
str
ntests
int
npass
int
nfailed
int
nwarn
int
nassert
int
nunknown
int
summary
str
created
datetime
sessions
id
VC Execution Manager™ User Guide
V-2023.12-SP2
str
66
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
type
str
name
str
config
object
project
object
state
str
user
str
work_dir
str
log_dir
str
start_time
datetime
end_time
datetime
comment
str
summary
str
summary_log
str
stop_session_rule_name
str
nbuilds
int
ntests
int
nrunning
int
nqueued
int
npass
int
nwarn
int
nfailed
int
nunknown
int
nassert
int
nmatches
int
VC Execution Manager™ User Guide
V-2023.12-SP2
67
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
nmismatch
int
builds
id
int
type
str
session
object
name
str
status
str
run_dir
str
description
str
machine
str
ntests
int
nrunning
int
nqueued
int
npass
int
nfailed
int
nwarn
int
nassert
int
nunknown
int
summary
str
nmatches
int
nmismatch
int
start_time
datetime
run_time
int
peak_mem
int
VC Execution Manager™ User Guide
V-2023.12-SP2
68
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
total_peak_mem
int
log_file
str
comment
str
timeout
int
jpend_timeout
int
groups
id
int
type
str
session
object
name
str
status
str
run_dir
str
description
str
machine
str
ntests
int
nrunning
int
nq ueued
int
npass
int
nfailed
int
nwarn
int
nassert
int
nunknown
int
summary
str
nmatches
int
VC Execution Manager™ User Guide
V-2023.12-SP2
69
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
start_time
datetime
run_time
int
peak_mem
int
total_peak_mem
int
log_file
str
comment
str
timeout
int
jpend_timeout
int
tests
id
int
type
str, "test"
session
object
scope
object
name
str
status
str
owner
str
run_dir
str
description
str
machine
str
stopped_by_rule
str
smoke
int
start_time
datetime
run_time
int
peak_mem
int
VC Execution Manager™ User Guide
V-2023.12-SP2
70
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Table 1
Feedback
Available Built-In Properties (Continued)
Property
Data Type/Value
total_peak_mem
int
log_file
str
comment
str
retry
int
timeout
int
jpend_timeout
int
JavaScript APIs
ExecMan provides JavaScript APIs for the following:
• Handling Properties
• Saving Custom Values in the Database
• Saving Values in an Internal Cache
• EManInterface API Functions
Handling Properties
This section shows how properties are handled inside the following JS functions:
• The Custom Column Rendering Function
• The Custom Button Function
The Custom Column Rendering Function
ExecMan provides input_obj as an argument to the custom column rendering function is
a JSON object. The input_obj argument always have properties as id: int and type :
str. The input_obj argument may have other properties depending on their value in the
database:
• Built-In Properties: If the value of a property in the database is NULL, the property is
not available in the json, input_obj. An undefined value is obtained in the JS code if
the property is accessed as input_obj.<property_name>.
• Custom Values: If the value of a property does not exist in the database, the property is
not available in the json, input_obj. An undefined value is obtained in the JS code if
the property is accessed as input_obj.<property_name>.
VC Execution Manager™ User Guide
V-2023.12-SP2
71
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
The Custom Button Function
ExecMan provides input_obj as an argument to the custom button function is an array
of JSON object. The array contains an input_obj JSON object for each table row. The
input_obj argument always have properties as id: int, type : str, and selected:
• The selected property is undefined if the table does not have selectable rows.
• The selected property has one of the following values if the table has selectable rows:
◦ For simple items (not having sub-items in the hierarchy)
▪ false: if the item is not selected
▪ true: if the item is selected
◦ For hierarchical items (having sub-items in the hierarchy, such as builds or groups)
▪ false: if the item and no sub-item are selected
▪ true: if the item and all sub-items are selected
The input_obj argument may have other properties depending on their value in the
database:
• Built-In Properties: If the value of a property in the database is NULL, the property is
not available in the json, input_obj. An undefined value is obtained in the JS code if
the property is accessed as input_obj.<property_name>.
• Custom Values: If the value of a property does not exist in the database, the property is
not available in the json, input_obj. An undefined value is obtained in the JS code if
the property is accessed as input_obj.<property_name>.
• Cached Values: If the value is saved with save_cached_values(), it comes as a
property to input_obj, even if not specified as an input to the button. If the value is
specified as an input to the button but is not saved to the cache, the value does not
exist in the json, input_obj. An undefined value is obtained in the JS code if accessed
as input_obj.property_name.
Saving Custom Values in the Database
You may save custom values to one database id or more than one database ids using
save_custom_values(save_obj).
VC Execution Manager™ User Guide
V-2023.12-SP2
72
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
For saving custom values to only one database id, save_obj must be a JSON object with
the following properties:
• save_obj.id and save_obj.type: Specifies the id and type of the row for which a
custom value is saved:
◦ id : int: Specifies the database id of the table row entry
◦ type: str: Specifies the table row entry type. Available table types are project,
config, session, build, group, and test.
• One or multiple other properties, custom_value_name:
custom_value_string; with custom values to be saved into this database
for this id.
For saving custom values to multiple database ids, save_obj must be an array of JSON
objects with the properties mentioned above. It is recommended to save custom values for
multiple ids in one server transaction for efficiency.
Saving Values in an Internal Cache
You may save custom values to an internal cache of the currently loaded Web page using
save_cache_values(save_obj). This cache is reset when the web page is refreshed.
No value is saved into the database. This cache is a mechanism for custom columns to
transmit data to the custom buttons.
EManInterface API Functions
ExecMan provides the UIInterface API that can be accessed from .emd files. The
UIInterface API consists of the following EManInterface API functions:
• runCmd: This function runs user commands, such as changing file permissions. Note
that it takes user-defined command as an argument and does not run other tools.
• checkFileExists: This function checks whether a file exists at a specified path.
The function takes file path as an argument. The function returns True if a file exists,
otherwise, it returns False.
• checkFilePresent: It functions in the same way as checkFileExists.
• checkFileReadable: This function checks whether a file is readable. The function
takes file path as an argument. The function returns True if a file is readable, otherwise,
it returns False.
• isFile: This function checks whether a file exists at the specified path. The function
takes file path as an argument. The function returns True if a file exists at the provided
path, otherwise, it returns False.
VC Execution Manager™ User Guide
V-2023.12-SP2
73
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
• isDir: This function checks whether a directory exists at the specified path. The
function takes directory path as an argument. The function returns True if a directory
exists at the provided path, otherwise, it returns False.
• runThirdPartyToolCommand: This function runs a third-party tool, such as running an
editor or any other tool. The function takes a command as an argument.
• runCmdFile: The function internally runs an auto-generated shell file and then
executes a command. The function takes the command as an argument.
• listDir: The function returns a list of files and directories. It works in the same
manner as Python function, listdir.
• walk: Similar to listdir, it returns files and directories with inner files and directories.
This function works in the same manner as Python function, walk.
Note:
These functions are only supported in Verdi. Trying to use them from web
results in showing a message saying that this a Verdi-only function. An
example of how UIinterface can be used with custom buttons is shown
in the following area in ExecMan installation: $EMAN_HOME/examples/
ui_customization/ui_interface/
Interactively Reloading UI Customization Templates
ExecMan enables you to reload UI customization template configurations, as the server
keeps a cache of option values and UI customization template configurations. When a
client clicks Home in the UI, customization template configurations are reloaded in all
clients. The following figure shows the Home tab in the UI:
VC Execution Manager™ User Guide
V-2023.12-SP2
74
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Secure Mode
For the Web server installed without enabling secure mode, there are no restrictions.
However, for the Web server installed with secure mode, the following restrictions are
applied:
• Users with admin rights are allowed to use the eman admin
register_cust_template command and apply templates to any project, or change
any system options (full permissions).
• Users with project_manager rights are allowed to use the eman admin
register_cust_template command and have the following rights:
◦ Can apply templates only to the projects that they manage.
◦ If the template is already loaded in the system, the existing template definition from
the database is used. If the template differs from the newly-provided definition, a
warning is displayed, and the database definition gets updated.
◦ If the template is new to the system, it is added.
◦ Are not allowed to change system options, such as turning debug mode true/false.
◦ For all situations that are not permitted, an error message is displayed.
• Regular users (developers): These users do not have admin or project_manager rights.
They are allowed to use the eman admin register_cust_template command only in
combination with the following switch that does not make any change to the database:
◦ Permitted to execute the command with the -verbose switch, to see the existing
templates and system options values
Note:
In the GUI, custom columns and custom buttons are visible for all users
in accordance to their application per projects/configs. Also, there are no
restrictions in saving or changing custom values into the database using
the save_custom_values() API.
• Regular users are not permitted to execute any action, such as apply, delete, reload or
change system options.
VC Execution Manager™ User Guide
V-2023.12-SP2
75
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Secure Mode Examples
Following are few examples for the eman_test_dummy user with project manager rights on
the project, Io1:
• The user tries to apply the custom template to all projects, as shown in the figure
below:
As the user is not admin, the user is not allowed to apply the custom template to all
projects.
• The user tries to apply the template to the managed project, Io1, before creating it in
the database, as shown in the figure below:
As the Io1 project does not exist in the database, the user cannot apply the template to
this project.
• The user tries to apply the template to the managed project, Io1, after creating it in the
database, as shown in the figure below:
The template is successfully applied to the project.
VC Execution Manager™ User Guide
V-2023.12-SP2
76
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Note that if a command does not change the database, the command can be executed by
any reason, as shown in the following example:
Sorting and Filtering
ExecMan enables you to sort and filter columns of the custom template. This section
consists of the following subsections:
• Sorting
• Filtering
• Examples
Sorting
To sort columns of the custom template, specify the -sort_by section in the column
definition, as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
77
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Filtering
To filter columns of the custom template, specify the -filter_on section in the column
definition, as shown in the following figure:
The filter name in the Filter page is the column name. The filter is applied on the custom
value specified in the filter_on section. The filter type is decided based on the value
type of the custom value or the type specified at the declaration. For example:
VC Execution Manager™ User Guide
V-2023.12-SP2
78
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Filters are supported by Execman only in the Results table. The column name is displayed
in the Name list of filters. Filters are case-sensitive, except the 'pattern' filter which is caseinsensitive.
Examples
ExecMan provides examples at the following location:
$EMAN_HOME/examples/ui_customization/column_sort_and_filter/sort_and_filt
er.emd
This section consists of the following subsections:
• Sorting and Filtering Based on their Custom Value
• Sorting Based on Other Custom Values
• Filtering Based on Other Custom Values
Sorting and Filtering Based on their Custom Value
Sorting and filtering are performed on the custom value with the same name as column
name. Filtering is done by default, therefore, there is no need to specify the filter_on
section. For example:
VC Execution Manager™ User Guide
V-2023.12-SP2
79
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Sorting Based on Other Custom Values
Sorting can be performed based on other custom values. For example, to sort a column
based on the custom value, cv1, use the following:
Filtering Based on Other Custom Values
Filtering can be performed based on other custom values. This is most useful for the
situation when the column itself does not have own custom value in database, but uses
other custom values. For example, to filter a column based on the custom value, cv2, use
the following:
VC Execution Manager™ User Guide
V-2023.12-SP2
80
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Note that filtering is not applied on column_with_filter_on because
column_with_filter_on has no values.
Quick Filtering
ExecMan provides quick filters to search values in columns on Projects, Configs,Sessions,
Builds, and Tests pages. For this, a check box named Quick Filters is available at the top
of the table on these pages to expand or collapse all search fields for all columns.
When the checkbox is enabled, search fields are displayed at the top of the column data in
a page. You can specify search values in the search fields.
Note:
If the Quick Filters check box is unchecked, filtering is reset and search fields
become empty.
This section consists of two subsections:
• Example
• Limitations
Example
If you specify nightly in the search field of the column, Name, ExecMan displays data with
the name as nightly as shown in the figure below:
VC Execution Manager™ User Guide
V-2023.12-SP2
81
Chapter 3: Installing and Administering VC Execution Manager
Custom Templates
Feedback
Limitations
• Quick filter is not supported for the columns that contain dates, images, or icons.
• Quick filter is not supported in the tree view.
VC Execution Manager™ User Guide
V-2023.12-SP2
82
Feedback
4
Getting Started
When you install ExecMan, few basic examples get installed in the following installation
directory:
$EMAN_HOME/examples/
The examples directory consists of ready-to-use examples in the following directories:
• basic: This directory consists of a basic example that runs dummy regressions and
does not rely on any resource aside from ExecMan. It is recommended to try this basic
example after the initial ExecMan installation to ensure that the core infrastructure is
healthy.
• quickstart: This directory consists of a simple design with a self-contained ExecMan
configuration which compiles and runs tests.
• alu_uvm: This directory consists of an ALU design with a UVM-based testbench. This
example is split into two versions. One example builds the design via a user-defined
script. The other example builds the simulation via a built-in ExecMan configuration.
• test_api: This directory consists of an example on how to use ExecMan to
collect regression results without having ExecMan launch the tests. This example
demonstrates how to use the ExecMan test API.
• rest_api: This directory consists of an example that is built on the top of the REST
framework to get data from the ExecMan database.
• db_api: This directory consists of examples on building site-specific query views on
the top of the existing standard ExecMan API as described in $EMAN_HOME/admin/
view_api.sql.
• exclusionFolding: This directory consists of an example on how to use a UCAPI
program to convert an exclusion file into unreachable status on the exclude objects
directly in a VCS coverage directory.
This chapter demonstrates the usage of VC Execution Manager in the following sections:
• Running Regressions in the Batch Mode
• Running Regressions Using Verdi Coverage
• Running Regressions Using an HVP File
VC Execution Manager™ User Guide
V-2023.12-SP2
83
Chapter 4: Getting Started
Running Regressions in the Batch Mode
Feedback
• Regressions Monitor
• Bucketing Tests
• System Events
• Server Architecture
• Static URL
• Session Control
Running Regressions in the Batch Mode
This section explains the steps to run a basic regression in the batch mode using VC
Execution Manager. A typical regression run consists of the flow depicted in Figure 7.
VC Execution Manager™ User Guide
V-2023.12-SP2
84
Chapter 4: Getting Started
Running Regressions in the Batch Mode
Figure 7
Feedback
Launching a Basic Regression Run and Viewing Results
These steps are explained in the following sections:
• Setup Environment Variables
• Creating a Regression Configuration File
• Executing a Regression
• Viewing Results in the ExecMan User Interface
VC Execution Manager™ User Guide
V-2023.12-SP2
85
Chapter 4: Getting Started
Running Regressions in the Batch Mode
Feedback
Setup Environment Variables
To start working with ExecMan, set the required environment variables using the following
commands:
source <path_to_depot_area>/bin/sourceme.csh or sourceme.sh
To run a regression, create a project using the following command:
eman project create <project_name>
After creating a project, set the following environment variable using
the following command:
setenv EMAN_PROJECT <project_name>
Note:
The eman project create command is an administrative command and only
ExecMan administrators have the privilege to create a new project. If you are
not an administrator, contact your project manager to create a project.
For information about managing ExecMan projects, see chapter Managing and
Administering Projects.
Creating a Regression Configuration File
You can create a regression configuration file to specify how to build a design, describe
tests in a regression, and how these tests are run. A configuration file is a simple text
file in a YAML format (http://yaml.org/spec/1.1/) and should be saved in the
.emc format. For details on the configuration file, see Chapter, VC Execution Manager
Configuration File.
The examples of an ExecMan configuration file are available in the $EMAN_HOME/
examples/ directory. For example, you can use my_config.emc in the $EMAN_HOME/
examples/quickstart directory to run a sample regression.
Executing a Regression
To execute a regression, use the following command:
% eman -regr_config <config_file.emc> -local_host
The -local_host option enables you to run the regression in the local computing farm.
The following figure shows the execution of the regression run:
VC Execution Manager™ User Guide
V-2023.12-SP2
86
Chapter 4: Getting Started
Running Regressions in the Batch Mode
Feedback
After the regression is executed, VC Execution Manager generates the regression
summary in the following file:
./eman_rundir/eman_logs/<session_name>.summary.txt
This file provides a summary of the regression and the location of the Web server.
Viewing Results in the ExecMan User Interface
VC Execution Manager provides a Web-based UI that enables you to perform test filtering,
on-the-fly visibility, real-time regression monitoring, debug triage, and regression trend
charting. To access the ExecMan UI, use the Web server address displayed in the log file.
You can also obtain the Web server address using the following command:
% eman -get_web_url
The command displays the Web URL similar to the following:
http://hostname:port/eman/
For more details, see the ExecMan User Interface.
VC Execution Manager™ User Guide
V-2023.12-SP2
87
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Running Regressions Using Verdi Coverage
This section explains how to setup and run regression configuration in Verdi Coverage.
To view a demo video on how to run regression using Execution manager and check the
regression status and results, click here.
To run a regression configuration, execute the following steps:
• Running Tests
• Viewing Results
• Rerunning Sessions and Tests
Running Tests
To run tests using Verdi Coverage, perform the following steps:
1. Invoke Verdi Coverage using the following command:
% verdi –cov
The ExecMan configuration file must be created in advance to use Verdi Coverage for
running regressions.
2. To invoke VC Execution Manager from Verdi Coverage, click Run Tests from the Tools
menu, as shown in the following figure:
Figure 8
Run Tests Options
The Run Tests dialog box opens, which enables you to specify VC Execution Manager
options.
VC Execution Manager™ User Guide
V-2023.12-SP2
88
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
3. Fill in the fields in the Run Tests dialog box and click the Begin Run button to initiate a
regression.
Figure 9
The Run Tests Dialog Box
Table 2 provides the descriptions of the fields in the Run Tests dialog box.
Table 2
The Setup Tab Fields of the Run Tests Dialog Box
Field
Description
Project Name
Specify the name of a project. If you have defined $EMAN_PROJECT,
the value is default to $EMAN_PROJECT.
Configuration Name
Optional field with the configuration name. If the field is empty, the
name specified in the configuration file is used.
Configuration File
Specify the path to the configuration file.
Error Pattern File
Enable this field by selecting the check box to specify the path to your
error pattern file.
Merge Directory
Optional field with the name of the directory to contain the merged
coverage database.
VC Execution Manager™ User Guide
V-2023.12-SP2
89
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Table 2
Feedback
The Setup Tab Fields of the Run Tests Dialog Box (Continued)
Field
Description
Local Run
If selected, tests are run on the local host. Otherwise, they are
run on the grid machine whose value is specified as ‘true’ in the
configuration file.
Automatic Cleanup
Automatically clean up the run directory to remove previously run
files.
Overwrite
If enabled, the merge directory is overwritten for each run. If not
enabled, a warning message is displayed if the directory already
exists.
Serverless
Option to enable a serverless regression run. In the serverless mode,
VC Execution Manager runs even if the database and Web servers
are not functioning. When servers are not available, ExecMan auto
detects the absence of the servers and runs in the serverless mode.
For more details, see "-serverless".
In the Run Tests dialog box, if a merge directory is specified for the regression, VC
Execution Manager merges coverage results and dumps the merged VDB and urgReport
in this directory. In this case, after the regression is completed, Verdi checks whether
the merged VDB is updated. If the merged VDB is updated, the following message is
displayed:
Figure 10
Open Merged Database
Click Yes to open a new merged.vdb.
VC Execution Manager™ User Guide
V-2023.12-SP2
90
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Viewing Results
To view regression results, perform the following steps:
1. Start a regression from the Verdi Coverage GUI using the Run Tests dialog box as
explained in Running Tests.
2. Click the Begin Run button to initiate a regression. The log of the regression is
displayed in the Message box:
Figure 11
The Verdi Message Window
VC Execution Manager™ User Guide
V-2023.12-SP2
91
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Verdi automatically opens the ExecMan window. The regression run status is
displayed, as shown in Figure 12:
Figure 12
The ExecMan Window in Verdi
This window shows the status of the builds.
3. Click the build name (my_first_build) to display the test results of the build, as
shown in Figure 13.
Figure 13
Test Results of a Build
VC Execution Manager™ User Guide
V-2023.12-SP2
92
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Figure 14 shows the status of the tests after the regression is completed.
Figure 14
Tests Status
The Builds/Tests page consists of the following buttons:
◦ Rerun Session: This button is used to rerun a session. For details, see Rerunning
Sessions and Tests.
◦ Rerun Selected: This button is used to rerun selected tests. For details, see
Rerunning Sessions and Tests.
◦ Open Session: This button is used to open a session.
◦ Save to Session: This button is used to save a session. This button checks
whether you want to save a session. If you click OK, it displays the Choose Plan
Directory to Save dialog box to specify the plan root directory.
VC Execution Manager™ User Guide
V-2023.12-SP2
93
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
◦ Link Tests to Issue: This button is used to link tests to an issue.
◦ View Config: This button is used to display the content of the configuration file for a
selected test or all tests. If you select any test and click View Config, it displays the
configuration details of that test only. The following figure shows the configuration
details for random_test1_1709511326:
VC Execution Manager™ User Guide
V-2023.12-SP2
94
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
If the View Config button is not available in the Builds/Tests page, then perform the
following steps:
a. Open $EMAN_SETUP_FILE_DEFAULT.
b. Change the value of json_config_save_size_limit to a larger non-zero
value. For example: json_config_save_size_limit: 1000000
The value of this option should be greater than the size of the configuration file
that got saved to the database. If the value of json_config_save_size_limit
is less than the size of the configuration file, the configuration file is not saved
and the View Config button is not displayed.
VC Execution Manager™ User Guide
V-2023.12-SP2
95
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Rerunning Sessions and Tests
After a regression is completed (or stopped), you can rerun an entire session or rerun
required tests. Figure 15 shows the buttons related to running a session:
Figure 15
Rerunning a Session
To rerun a session, perform the following steps:
1. Click Rerun Session to rerun the entire session. This restarts eman using the options
that were provided in the previous run.
2. In this view, you can either rerun all sessions or the required sessions. To rerun the
required session, select the check-box next to the build and click the Rerun Selected
button.
When you click Rerun Session or Rerun Selected, the Rerun/Debug Rerun dialog box is
displayed to specify rerun type, rerun option, and rerun mode. For details, see Rerunning
Regressions.
This section discusses the following topics:
• Relaunching a Failed Test
• Restoring a Session
VC Execution Manager™ User Guide
V-2023.12-SP2
96
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
Rerunning Tests
You can rerun a test from the ExecMan window in Verdi even when the session is not
finished yet. To rerun specific tests, perform the following steps:
1. Navigate to the tests page. To navigate to the tests page, click the build name, as
shown in Figure 15.
2. Select the required tests and then click Rerun Selected (rerun selected refers to
rerunning selected tests). You can also select Rerun Session to rerun all the builds
and tests of a given session, as shown in Figure 16.
Figure 16
Rerunning Tests
Removing Tests of an Existing Session
ExecMan enables you to reuse a session name and remove all existing tests of the
session using the -recreate option. Without this option, ExecMan keeps the existing tests
of the session, appends new tests, and overwrites the tests with the same name.
VC Execution Manager™ User Guide
V-2023.12-SP2
97
Feedback
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Relaunching a Failed Test
A failed test is a test whose status is not Pass or Warn. In the Verdi interactive mode,
you can relaunch a failed test and debug this test. To relaunch a failed test, enable the
following settings:
1. To invoke the debugging capability with Verdi, compile the design with -debug_access
+r -kdb -lca options.
Note:
In the batch mode, you can rerun a failed test case by specifying the
following arguments in the configuration file:
-build_args="debug_access+r -kdb -lca"
2. Set the EMAN_VERDI_DEBUG environment variable to 1 before running the Web server.
If the ExecMan Web server is already running, then stop it and restart it after setting
EMAN_VERDI_DEBUG to 1.
Verdi Debug Actions
To debug a failed test, compare it with a parent test by performing the following tasks
using the Action buttons:
• To see the folder where the selected test is run, click Show details (
• To relaunch a failed test, click Open Verdi debug (
in Figure 17. The
Figure 17
).
) in the Actions column, as shown
button is visible only when EMAN_VERDI_DEBUG is set to 1.
Relaunching Failed Tests Using Open Verdi debug
VC Execution Manager™ User Guide
V-2023.12-SP2
98
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
• To open its run directory, click the Open run directory(
Figure 18
Feedback
), as shown in Figure 18.
Open Run Directory
Restoring a Session
ExecMan provides a session recovery mechanism in which you can restart the execution
of tests from where they are interrupted. When a regression is failed with errors or
a session is stopped or corrupted, restart your session using either of the following
commands:
eman -restore <session_name>
or
eman -regr_config config.emc -local_host
[-force_recomp/-test_only] -no_debug_rerun -parent_session <session_name>
-reuse_config -reuse_env -session_name <session_name> -test_filter
<test_file>
where,
• The -force_recomp switch forces recompilation in a different compile directory.
• The -test_only switch runs only the tests specified in the regression configuration
without compiling the builds.
• The -no_debug_rerun switch stops rerunning tests automatically in case of failures.
VC Execution Manager™ User Guide
V-2023.12-SP2
99
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
• The -parent_session option passes a parent session name to associate a rerun
session with an original session.
• <session_name> is the name of the newly-created session that is interrupted due to a
failed regression or a corrupted database.
• The -reuse_config switch uses the saved configuration of an existing session.
• The -reuse_env switch uses the saved environment variables of an existing session.
• The -session_name switch overrides the default session name.
• The -test_filter option specifies a graded test file containing tests that should be
selected from the regression configuration for a regression run. The test filter file must
have the suffix .emt.
• <test_file> is a file that contains a list of test names. This file is generated
automatically by the -restore option.
When a session is specified for restoring, ExecMan checks whether the specified session
exists. If the session exists, ExecMan checks the status of its build. If the status of its build
is Registered or Running, it shows that the build is corrupted.
ExecMan also checks the test status of the specified session. If the test status is
Registered or Running, it shows that the test is corrupted. In this case, ExecMan
collects the test list and generates the test filter file and then, reruns the session with the
generated test filter file.
While restoring a session, ExecMan runs only those tests that are interrupted due to a
failed regression or a corrupted database.
Note:
If a session has one passed build and one corrupted build, ExecMan reruns all
the tests of the corrupted build. For the passed build, ExecMan reruns all the
tests with the status as Registered or Running.
Consider a scenario in which there are 306 tests and the database server gets stopped
or corrupted after running 80 tests. After restarting the database server, the status of the
remaining tests (226) is shown as Registered as highlighted in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
100
Chapter 4: Getting Started
Running Regressions Using Verdi Coverage
Feedback
After the eman -restore command is executed, ExecMan runs only these 226 tests that
are interrupted due to the corrupted database as highlighted in the following figure:
ExecMan collects the information about these 226 tests and automatically stores their
information in the tests_<random_value>.emt file in the current directory.
After ExecMan reruns the session with these tests, it updates the status of these tests as
follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
101
Chapter 4: Getting Started
Running Regressions Using an HVP File
Feedback
Running Regressions Using an HVP File
Hierarchical Verification Planner (HVP) helps you achieve the goals of verification
planning. Using HVP, you can create and maintain an executable verification plan that can
be updated according to the changing implementation of your design. ExecMan supports
the use of this tool, which can be invoked from the Verdi Coverage GUI to plan and track
the progress of verification projects.
VC Execution Manager™ User Guide
V-2023.12-SP2
102
Chapter 4: Getting Started
Running Regressions Using an HVP File
Feedback
The Run Tests dialog box includes the HVP tab to support the setup of a VC Execution
Manager regression with an .hvp file. This tab enables you to specify the location of the
.hvp plan, as shown in the following figure:
Figure 19
Running a Regression Using an HVP File
In the Setup tab, select the configuration file. For the description of the other fields in the
HVP tab, see Table 3.
Table 3
Descriptions of the HVP Tab Field Descriptions
Field
Description
Plan File
Enable this option to pass an .hvp file using the -plan option to
ExecMan.
Run Feature Specific Tests
Enable this option to run only the tests that affect the selected
features.
VC Execution Manager™ User Guide
V-2023.12-SP2
103
Chapter 4: Getting Started
Running Regressions Using an HVP File
Table 3
Feedback
Descriptions of the HVP Tab Field Descriptions (Continued)
Field
Description
Base Full Session Name
Specify the name of a previous full-session run. A full session
run is a regression where the Plan Name is given, but the Run
Feature Specific Tests check box is disabled.
Session Features
If the Base Full Session Name is given in the field, this field
displays the HVP feature hierarchy with check boxes to select
one or more features.
Tests for Selected Features
This field displays the test names that are run based on the
selected features.
Running a regression with Plan File enabled and Run Feature Specific Tests disabled is
considered as running the Full Session and results in the following:
• The generated URG report includes an HVP section that shows the HVP hierarchy and
scores.
• When a regression is completed and if you answer Yes to the dialog box that asks
whether you want to open the new merged .vdb, Verdi opens the .hvp file and
updates the scores.
VC Execution Manager™ User Guide
V-2023.12-SP2
104
Chapter 4: Getting Started
Running Regressions Using an HVP File
Feedback
To run only the tests that affect specific features, perform the following steps:
1. Enable the Run Feature Specific Tests option and click the Select button to select a
Full Session in the Run Tests dialog box, as shown in Figure 20:
Figure 20
The Run Tests Dialog Box
2. The Select Full Session dialog box is displayed that lists all full sessions with the most
recent session at the top, as shown in Figure 21. Select a session from Full Sessions
to display its attributes and values in the Session Run Details section.
VC Execution Manager™ User Guide
V-2023.12-SP2
105
Chapter 4: Getting Started
Running Regressions Using an HVP File
Figure 21
Feedback
The Select Full Session Dialog Box
VC Execution Manager™ User Guide
V-2023.12-SP2
106
Feedback
Chapter 4: Getting Started
Regressions Monitor
3. Click OK to load the HVP hierarchy of the selected full session. To run only the tests for
the selected features, select the required check boxes of the session feature and click
Begin Run, as shown in Figure 22:
Figure 22
The Run Tests Dialog Box (HVP Tab)
Regressions Monitor
ExecMan provides regressions monitor to monitor and control regressions. One of the
functionalities of regressions monitor is admin regressions that shows running and queued
regressions of all ExecMan project configurations in the Running sessions page. It enables
you to monitor and control these sessions.
When the
Running sessions page:
button is clicked on the Configs page, it displays the following
VC Execution Manager™ User Guide
V-2023.12-SP2
107
Chapter 4: Getting Started
Bucketing Tests
Feedback
Note that when all running regressions belong to admin users, normal users cannot open
the Running sessions page. If they try to open the page, they are navigated back to the
Configs page. If there is at least one running regression that belongs to a normal user, all
other normal users get access to the Running sessions page.
For example, consider three users, user_A, user_B, and user_C. user_A is an admin user
and user_B and user_C are normal users. Also, consider the following scenarios:
Scenario 1: There are two running sessions, session1_admin, and session2_admin. In this
scenario, user_B and user_C cannot access the Running sessions page.
Scenario 2: user_B starts a new session. Now, there are three running sessions,
session1_admin, and session2_admin, and session3_user_B. In this scenario, user_B can
access the Running sessions page. Also, user_C can open the page even though user_C
does not have any running sessions.
Bucketing Tests
ExecMan enables you to analyze tests by grouping them into buckets and rerunning the
selected tests after the analysis is completed. You might perform bucketing dynamically
using any property of a test by setting the EMAN_INTERNAL_BUCKET_VIEW environment
variable to 1. This environment variable needs to be set before starting the Web user
interface.
VC Execution Manager™ User Guide
V-2023.12-SP2
108
Chapter 4: Getting Started
Bucketing Tests
Feedback
After this environment variable is set to 1, ExecMan creates an interactive view to analyze
tests. To launch this view, perform the following steps:
1. Click the
2. The
icon from the Action column as highlighted in the following figure:
icon displays the following interactive view:
The interactive view consists of the following tabs:
◦ Control Bucketing
◦ View Data
VC Execution Manager™ User Guide
V-2023.12-SP2
109
Chapter 4: Getting Started
Bucketing Tests
Feedback
Control Bucketing
To create a pivot table for analyzing tests, click the Control Bucketing tab. The tab
contains the following sections:
• Attributes: Contains the list of attributes that can be added to the interactive view. This
column is empty by default as all the attributes are selected by default.
• Selected Attributes: Contains the list of selected attributes to be displayed in the
table.
• Rows: Contains the list of attributes that is selected as criteria for bucketing based on
rows.
• Columns: Contains the list of attributes that is selected as criteria for bucketing based
on columns.
• Left/Right Arrows: Moves an attribute from one list to another.
• Pivot Table: Enables you to drag-and-drop an attribute to a row or column. This
drag-and-drop operation updates the Pivot table automatically. Each cell in the table
contains the number of tests for bucketing. Also, each cell contains a check box to
show whether these tests are selected.
• Rerun Selected: Displays the Rerun dialog box to rerun only those tests that are
selected in the Pivot table. Note that the Rerun dialog box does not include tests
selected before and added to the View Data table. To know details on the View Data
table, see View Data.
The following figure shows the Rerun dialog box:
VC Execution Manager™ User Guide
V-2023.12-SP2
110
Chapter 4: Getting Started
Bucketing Tests
Feedback
The following figure shows the pivot table for the selected settings:
The Control Bucketing tab also consists of the following buttons:
• Update: Updates the pivot table according to the selected settings.
• Reset: Resets the settings of the pivot table to its default settings.
VC Execution Manager™ User Guide
V-2023.12-SP2
111
Chapter 4: Getting Started
Bucketing Tests
Feedback
View Data
The View Data tab contains all the selected tests from the Control Bucketing view. The
View Data tab contains the following options:
• Hidden Columns: Displays the list of columns that are hidden from the table.
• Visible Columns: Displays the list of columns that are visible in the table.
• Buckets: Displays the list of attributes using which the current bucketing is performed.
The View Data tab also contains the following table controls:
• The most left column is a check box to select a test or bucket for rerun.
• Each column name is clickable and is used to sort the table.
• Under each column name, the text box accepts a regular expression to filter the rows
of the table.
The View Data tab also consists of the following buttons:
• Rerun Selected: Reruns only tests or buckets selected in this table.
• Update Visibility: Updates the pivot table according to the updates performed using
the table controls explained earlier.
• Bucket: Each row contains a bucket of tests. In the Bucket mode, each cell contains
data according to the following rules:
◦ If all the tests in the row have the same attribute, the value of this cell would be that
attribute.
◦ If there are multiple different values, these values are counted and a JSON is
created. Here, the key is the attribute value and the value is the number of times
this attribute value appeared.
◦ If the size of JSON is smaller than 80 characters, the value is shown in the cell.
Otherwise, a link to this value is created with its tooltip.
◦ Some unique attributes have values provided by other cells. For example, the Log
File attribute always has a list where each entry is a link to the log file.
VC Execution Manager™ User Guide
V-2023.12-SP2
112
Chapter 4: Getting Started
Bucketing Tests
Feedback
The following figure shows the bucket view of the table:
• Unbucket: In the Unbucket mode, each row contains a single test. The following figure
shows the unbucket view of the table
VC Execution Manager™ User Guide
V-2023.12-SP2
113
Chapter 4: Getting Started
System Events
Feedback
System Events
ExecMan provides a detailed information for an error or a warning generated due to a
system event, such as session/test failure, space issue on local/grid machine, NFS issue,
permission issue, and unsupported issues.
System events are of the following two types: Session-level and Result-level. A new
column, Sys.EV, is added in the session table of the ExecMan GUI.The column displays
the number of system events that happened during a session. This number is the sum of
Session-level and Result-level system events:
• Session-Level system events are related to a session, such as events that arose due to
permission denied, abnormal exit, and so on.
• Result-level system events are related to a specific result (test, build, and merge).
If the number of system events happened during a session is not zero, the number is
linked to the bucketing of system events related to a session.
This section consists of the following subsections:
• Event Severity
• Example
Event Severity
Each system event is associated with a severity type to prioritize the events that require
immediate corrective actions. ExecMan provides the following three types of event
severities:
• ERROR Severity
◦ This is the highest severity as it may affect other future session runs if a corrective
action is not taken immediately. This severity is represented in the red color in the
session table of the ExecMan GUI.
• WARNING Severity
◦ This severity does not impact overall regression efficiency. You should be aware
of this issue, however, an immediate corrective action might not be required. This
severity is represented in the yellow color in the session table of the ExecMan GUI.
• INFO Severity
◦ This severity is used to provide any information about a regression or an update.
This severity is represented in the grey color in the session table of the ExecMan
GUI.
VC Execution Manager™ User Guide
V-2023.12-SP2
114
Chapter 4: Getting Started
System Events
Feedback
Example
Consider the following session table that shows the Sys.Ev column:
In the figure, 1 shows that it is a system event of error severity. If you click 1, it displays the
following figure that shows event id as EMAN-OPEN-FILE:
To see the details of a system event, click the
icon in the column. This icon enables
you to analyze a system event using Control Bucketing. The following figure displays the
details of EMAN-OPEN-FILE:
VC Execution Manager™ User Guide
V-2023.12-SP2
115
Chapter 4: Getting Started
Server Architecture
Feedback
Server Architecture
VC ExecMan enables you to access and leverage all its functionalities from any platform:
Linux or Windows. ExecMan enables you to launch a Linux-based server that can
communicate with the ExecMan Web UI.
This section consists of the following subsections:
• Usage
• Limitations
Usage
To enable the ExecMan Web UI to launch a Linux-based server, perform the following
steps:
1. Set the EMAN_ENABLE_USER_SERVER environment variable as follows:
setenv EMAN_ENABLE_USER_SERVER 1
2. Run the following command to launch a new user server:
eman server start_user_server
The details of this user server are registered in the EMAN_SETUP_FILE_DEFAULT file as
follows:
users_servers:
<username>:
address:
euser:
host:
VC Execution Manager™ User Guide
V-2023.12-SP2
116
Chapter 4: Getting Started
Server Architecture
Feedback
log:
pid:
port:
status:
user:
After the eman server start_user_server command is executed, the address and log
file of a user server are printed.
When ExecMan detects that a user server is enabled, it shows rerun options in the
ExecMan Web UI as highlighted in the following figure:
ExecMan provides the following CLI commands for a user server:
• To check whether a user server is running, use the following command:
eman server check_user_server
• To start a new user server, use the following command:
eman server start_user_server
• To stop a user server, use the following command:
eman server stop_user_server
VC Execution Manager™ User Guide
V-2023.12-SP2
117
Chapter 4: Getting Started
Static URL
Feedback
Limitations
Currently, VC ExecMan supports only one session that provides the following limitations:
• As VC ExecMan launches all user servers by forking its main server, the following
issues occur:
◦ If the main server dies, all other user servers die with the main server unless the
nohup option is used.
◦ All servers run on the same host.
• It is not possible to change spool/depot per user server.
Static URL
ExecMan enables you to record every selection on the Web page in the response URL
of its server and save it as a static URL. With static URLs, you can get the same Web
page and can easily create dashboards. For example, create a filter to search test names
containing text as test1 and specify their view as hierarchical with rows as 10 to
display the following Web page:
Figure 23
Static URL
The details of this filter is included in the response URL of the ExecMan server. You can
save this URL and visit the same URL to view the same Web page again.
VC Execution Manager™ User Guide
V-2023.12-SP2
118
Chapter 4: Getting Started
Session Control
Feedback
Session Control
ExecMan provides the following buttons in the Session page of both web-based browser
and Verdi-based browser:
• Suspend Sessions
◦ Suspends a running session. If a session is suspended, its tests in queue are also
suspended.
• Resume Sessions
◦ Restores a suspended session and its tests.
• Stop Sessions
◦ Stops a running session. Once a running session is stopped, it cannot be resumed.
The following figure shows these buttons in the Session page once these buttons are
enabled:
ExecMan provides the following button in the Testlist page of both web-based browser and
Verdi-based browser:
• Stop Selected
◦ Stops the selected tests of a running session. Once these tests are stopped, these
cannot be resumed.
VC Execution Manager™ User Guide
V-2023.12-SP2
119
Feedback
5
VC Execution Manager Configuration File
Verifying a design involves confirming and validating a design according to your
requirements. An effective verification process includes a systematic cycle of planning,
executing, observing, analyzing results, responding intelligently to results, and continually
refining the plan. Any automation in this cycle makes the verification process more
predictable and helps improving the productivity. Automation also ensures a higher level of
quality within a shorter time period.
VC Execution Manager serves as a platform to complete these tasks with a high degree
of automation. As part of planning and execution of the regressions, create the ExecMan
configuration file to specify how to build a design, describe tests in a regression, and how
these tests are run. A configuration file is a simple text file in a YAML format (http://
yaml.org/spec/1.1/)and is saved in the .emc format. A configuration file includes
blocks in its basic form with keywords.
To view demo videos on configuration files, click the following links:
• For information about the syntax of EMC files that define regression flow, click here.
• For information on advanced features of the EMC files syntax and defining new tests
using already defined test instances, click here.
This chapter describes various configuration file blocks and options that are specified in a
configuration file. For more details on configuration files, see the following sections:
Supporting the YAML Format
YAML is a data-serialization language that uses Unicode characters. YAML consists of
structural information and data. For example, indentation is used for structure, colons for
separating "mapping key : value" pairs, and dashes for creating bullet lists.
YAML consists of the following elements that can be used in ExecMan:
Table 4
YAML Elements
Elements
Description
Whitespace indentation
Denotes structures.
VC Execution Manager™ User Guide
V-2023.12-SP2
120
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Table 4
Feedback
YAML Elements (Continued)
Elements
Description
#
Indicates comments that can begin anywhere on a line and
continue till the end of the line.
-
Represents list members with one member per line, or enclosed
in [ ] and separated by comma (,).
:
Indicates associative arrays in the form of key : value, either one
in line, or enclosed in [ ], and separated by comma (,).
$
Specifies immediate resolution variables.
$$ or \$\
Specifies deferred resolution variables. For details on these
variables, see Deferred Resolution Variables.
Note:
$$ and \$\ elements are not part of YAML and therefore, these are not resolved
during the interpretation of a configuration file. These are resolved during a
phase after the YAML interpretation. The interpretation of these elements occur
in the capsule shell that is run during build/test/merge that occurs on the grid
host.
An example of the YAML format in an ExecMan configuration file is as follows:
config_name: alu_uvm
env:
- VCS_HOME
- EMAN_PROJECT
variables:
- vcs: $VCS_HOME/bin/vcs
- cm_opts: -cm line+cond+fsm+assert
- UVM_OPTs: +UVM_TESTNAME=$${EMAN_TEST_NAME}
- current_dir: $PWD
- run_log: $${TESTCASE}.log
builds:
- name: bld1
run_cmd: ./comp.csh
simv_location: ./simv
run_dir: $current_dir
tests:
- name: test_add
build: bld1
arguments: $cm_opts $UVM_OPTs -l $run_log +ntb_random_seed=42
VC Execution Manager™ User Guide
V-2023.12-SP2
121
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
config_name, env, variables, builds, and tests are blocks of a configuration file. For
details on these blocks, see Basic Blocks of a Configuration File.
Another example of an ExecMan Configuration file, which uses both block and flow styles,
is as follows:
config_name: juke
env: [{ VCS_HOME }, { EMAN_PROJECT } ]
variables: [{ vcs: $VCS_HOME/bin/vcs }, {cm_opts: "-cm
line+cond+fsm" }, {current_dir: $PWD}, {run_log:
'\$\{EMAN_TESTCASE}.log'}, {result_name:
'\$\{EMAN_TESTCASE}'}, {test_name:
'\$\{EMAN_TEST_NAME}'}]
builds:
- { name: my_first_build, run_cmd: "vcs -sverilog -full64
$cm_opts $current_dir/compdir/jukebox.v -o simv",
simv_location: '$${EMAN_RUN_DIR}/simv', run_dir:
'$current_dir/compdir'}
tests:
- { name: "seed90", build: my_first_build, arguments:
"-cm line+cond+fsm +ntb_random_seed=90 -l $run_log",
smoke: on }
- { test_file: $current_dir/test_file1, build:
my_first_build, arguments: "-cm line+cond+fsm
+ntb_random_seed=90 -l $run_log", error_patterns:
["^Time: \\d+:::fail:::Time_Fail:::3"]}
- { name: seed87, build: my_first_build, arguments: "-cm
line+cond+fsm +ntb_random_seed=87 -l $run_log", tags:
'direct,critical', error_patterns: ["^Time:
\\d+:::fail:::Time_Fail:::3"]}
This section consists of the following subsections:
• Attributes of Error Pattern Files
• The New Format of Error Pattern Files
VC Execution Manager™ User Guide
V-2023.12-SP2
122
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
Attributes of Error Pattern Files
In the YAML format, ExecMan provides the following attributes for hierarchy error patterns:
Attribute
Optional
Description
name
Yes
This attribute is used to define the name of an error
pattern. ExecMan does not check for the uniqueness
of this attribute. You can leave this attribute as blank.If
this attribute information is provided by you, it enables
ExecMan to search this attribute quickly.
pattern
No
This attribute is a regular expression that is used to
find the status of a test.
base_status
No
This attribute is used to define the type of the base
status.
custom_status
Yes
This attribute is used to customize the base_status
attribute.
priority
No
This attribute is used to determine which pattern is
given a priority when determining the test status.
label
Yes
This attribute is used to specify a label for an
error pattern. This attribute supports built-in and
user-defined functions.
debug_rerun_count
Yes
This attribute is used to specify the number of failing
tests to be selected from each failure category for
debug rerun.
debug_rerun_build_args
Yes
This attribute is used to pass different switches to the
build stage in the debug mode based on different error
patterns.
• If debug_run_cmd is defined as a VCS command, it
passes the arguments to the vcs command
• If debug_run_cmd is defined as a script or makefile,
it passes the arguments to the environment
variable, EMAN_DEBUG_RERUN_ARGS.
debug_rerun_test_args
Yes
This attribute is used to pass different switches to the
test stage in the debug mode based on different error
patterns.
• If debug_run_cmd is defined as a simv command, it
passes the arguments to the simv command
• If debug_run_cmd is defined as a script or makefile,
it passes the arguments to the environment
variable, EMAN_DEBUG_RERUN_ARGS.
VC Execution Manager™ User Guide
V-2023.12-SP2
123
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
Attribute
Optional
Description
debug_rerun_modes
Yes
This attribute is used to override the debug rerun
mode based on different error patterns.
• If debug_run_cmd is defined as a vcs/simv
command, it replaces the current mode in the
vcs/simv command.
• If debug_run_cmd is defined as a script or makefile,
it passes the arguments to the environment
variable, DEBUG_ARGS.
max_lines
Yes
This attribute is used to define maximum lines, an
error pattern can match. This value must be greater
or equal than the line numbers, this error pattern
matches. If you give a very large number as its value,
it affects performance and memory cost.
The New Format of Error Pattern Files
ExecMan supports both old and new format of error pattern files. For the old format of
error pattern files, see, Defining the Status of a Test Run — error_patterns. The new
format of error pattern files consists of the following two sections:
• The error_patterns Section
• The functions Section
The error_patterns Section
The new format of error patterns is as follows:
error_patterns:
- pattern: ^Warning
base_status: warn
priority: 3
- '^\s+1\d+89\d+ COIN: Overpay:::warn:::overpay:::3'
- name: rerun_for_error
pattern: ^Error
base_status: fail
custom_status: my_error
priority: 2
debug_rerun_count: 3
debug_rerun_build_args: -debug_all
debug_rerun_test_args: +debug_level=3
debug_rerun_mode: waves
- '^test failed badly:::fail:::bad_fail:::0'
- name: uvm_fatal_error_pattern
pattern: \[\d+ ns\] UVM_FATAL \[(?P<ID>\w+)\] : (?P<DESC>.*)
base_status: fail
custom_status: assert_fail_(ID)_(DESC)
priority: 1
VC Execution Manager™ User Guide
V-2023.12-SP2
124
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
label: assert_fail_(ID)_(myHash(DESC))
- pattern: ^This is an error\n(.*\n)+error module is (.+)\nRefer.+/.+
base_status: fail
custom_status: fatal_fail
priority: 0
max_lines: 10
where,
• The rerun_for_error name attribute shows how to define debug_rerun_count,
debug_rerun_build_args, debug_rerun_test_args, and debug_rerun_mode in the
new format.
• The uvm_fatal_error_pattern name attribute shows the label attribute to shorten
the custom status. You can use built-in and user-defined functions to define the label
attribute. These functions are explained in The functions Section.
After defining all the error patterns inside the error pattern file, you can write an include
block with the list of paths to the desired error pattern files to be included in the end of the
root error patterns file as shown in the following figure:
The functions Section
ExecMan provides built-in and user-defined functions for error patterns.
Built-In Functions
The following table shows the built-in functions for error patterns:
Function
Description
eman_chop(str, n)
This function returns the first n characters of the string, str.
eman_hash(str)
This function converts a string to a decimal number less than 109.
eman_md5(str)
This function computes md5 for a string. md5 is represented as the
hexadecimal format (32 characters). This function converts different
strings to different numbers.
VC Execution Manager™ User Guide
V-2023.12-SP2
125
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
User-Defined Functions
YAML and Python have conflicting interpretations of whitespace and indentation.
Therefore, only a single line Python definition is supported. For this, the entire function
definition needs to be mentioned in a single line as follows:
functions:
- def first_char(b):\n return b[0]
- def intChecksum(b):\n return str(sum(map(ord, list(b))))
Therefore, only one function definition is allowed for one item.
Note:
This feature might cause Injection attacks as any code can be provided
with user-defined functions.
Detecting Error Patterns
ExecMan enables you to detect error patterns using the -error_matrix switch with the
eman data dump command. When this switch is defined, it displays a new layout as in the
drop down list of Select Layout in the Test List page, as shown here:
VC Execution Manager™ User Guide
V-2023.12-SP2
126
Chapter 5: VC Execution Manager Configuration File
Supporting the YAML Format
Feedback
Once it is selected, the following table is displayed that shows all error patterns
(assert_error, UVM_ERROR_XX, and so on) and the log file of a build, group, or test, as
shown here:
Note that you might customize the table as per your requirements.
You can search within the table using filter criteria. To enable filter fields, select Show
Filter Fields in the Test List page. For example, to display results related to build1 whose
error patterns meet the following criteria: 5 < UVM_ERROR_XXX < 20 and CHECKED_ERROR
> 4, use the following filter criteria:
VC Execution Manager™ User Guide
V-2023.12-SP2
127
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
Basic Blocks of a Configuration File
A configuration file in its basic form enables you to plan, run builds and tests. The following
are the basic blocks that are required to define builds and tests:
Setting the Configuration Name -config_name
The config_name block takes the name of a configuration. You must specify an
appropriate configuration name using the following format: config_name: <simple> A
configuration name can include alphanumeric characters (A-Z, a-z, 0-9), hyphen (-), and
underscore (_).
Setting the Environment Variables — env
The env block enables you to list the environment variables that need to be set before
calling VC Execution Manager. You can also specify a default value that can be used if the
specific environment is not set.
For example:
env:
- VCS_HOME
- EMAN_HOME
OR
env:
- VCS_HOME:<PATH_TO_VCS_HOME>
- EMAN_HOME:<PATH_TO_EMAN_HOME>
If VCS_HOME or EMAN_HOME is not set before running the configuration, (that is, if VCS_HOME
and EMAN_HOME are not set in the c-shell) you can set env using the directory path
(VCS_HOME:<PATH_TO_VCS_HOME>) in the configuration file and this takes the precedence.
The env settings are also accepted within the builds and tests blocks, as shown in the
following example:
builds:
- name: default_build
VC Execution Manager™ User Guide
V-2023.12-SP2
128
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
variables:
- design: jukebox.v
env:
- CUSTOM_NAME: VALUE
run_cmd: $current_dir/compdir/mytest.csh
simv: compdir/simv
Defining the Compilation Steps — builds
VC Execution Manager compiles a design and creates an executable (simv). A
configuration can have multiple builds for different compile arguments, and each test can
pick which build needs to be used. It is mandatory to include run_cmd in the builds block.
You can include multiple build configurations as described in the section Options in the
Builds Block.
For example:
builds:
- name: b1
run_cmd: $current_dir/run_build.csh
run_dir: $current_dir
Defining a Test Run — tests
The tests block enables you to define how to run each test. You can also include multiple
test configurations. For more information, see section Options in the Tests Block.
For example:
tests:
- name: heidi
build: b1
run_cmd: $current_dir/testrun.csh $$EMAN_RANDOM >
count: 20
$run_log
Defining the Status of a Test Run — error_patterns
The error_patterns block allows you to specify a list of error patterns. The error patterns
are used by VC Execution Manager to determine the status of a test. The error pattern is
a regular expression used to find the test status. Standard regular (POSIX) expression
format is supported for error patterns and the following are few supported formats:
^
Start of line
$
End of line
.
Any character
.*
Any string
VC Execution Manager™ User Guide
V-2023.12-SP2
129
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
For more details on POSIX, see POSIX Regular Expressions.
For details about log files analysis and navigation as well as some basic details about
error patterns definition, click this demo video.
The format to specify an error pattern is as follows:
pattern:::base_status_type:::custom_status:::precedence
Note:
To check and define error patterns, see https://pythex.org/ that provides an
easy, a quick, and a user-friendly interface.
After defining all error patterns inside the error pattern file, you can write an include block
with a list of paths to the desired error pattern files to be included in the end of the root
error patterns file, as shown in the following figure:
Error patterns are regular expressions. The custom_status field is optional and can be
used to extend a base status type by defining a custom value. For example, a custom
value fail_fatal can be defined for a base status fail. This allows categorization of the
base status types in binning with finer granularity. The custom_status field can be blank if
a custom value is not required.
For example:
^my custom pattern1:::warn:::warn_custom:::1
^my custom pattern2:::pass::: 2
^test failed badly:::fail:::fail_fatal:::0
^Diag:.*FAIL.*:::fail:::fail_normal:::0
^Diag:.*PASS$:::pass::: :::1
Note:
It is recommended to not use the literal string, :::, as part of a regular
expression pattern. The ::: string is interpreted as a field separator /\ in the
unlikely scenario that your pattern must match the ::: string. You can prevent
ExecMan from interpreting it as a field separator by escaping the colons with
"\:\:\:".
VC Execution Manager™ User Guide
V-2023.12-SP2
130
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
To help determine the status of a test, VC Execution Manager provides prepopulated test
build, licensing, and system error patterns.
ExecMan supports the creation of error pattern groups. Using the group matches, you
can dynamically assign the custom status of a build/test. Groups can be referred either
by names or by their corresponding number. Also, all the groups found in the regular
expression match are saved as custom values for the test.
To define a group, enclose a regular expression in the parentheses (). (...) matches
whatever regular expression is inside the parentheses, and indicates the start and end of a
group. To match the literals '(' or ')', use \( or \), or enclose them inside a character class: [(]
[)].
The format of error pattern messages is as follows:
(UVM_ERROR)\s\d+ns:.*\s+\[\S+\]\s+(.*)
For example, if your testbench generates error messages that share a common pattern
identifying the message as an error followed by some details that further categorizes the
error. Consider the following code snippet:
UVM_ERROR 1887804ns: BitMonitor_c.svh(406) TxBitMonitor
[sas_topo_pkg::BitMonitor_c] Unexpected PhyRate!
UVM_ERROR 1884504ns: qedge.c.svh(406) QEdge [sas_topo_pkg::qedge_c] queue
underflow
UVM_ERROR 5607804ns: excp_c.svh(406) Excp [sas_topo_pkg::excp_c] FP NAN
exception
where, UVM_ERROR identifies the message as a failure. The simulation timestamp, that is
1887804ns, is largely irrelevant. However, the right end of the message contains unique
information that is used to bin the errors.
Also, the messages such as Unexpected PhyRate, queue underflow, and FP NAN
exception indicate different bugs. Therefore, it is recommended to bin these messages
differently. This is known as fine-grained binning and it helps to identify the different types
of bug from each regression at a high-level.
It is possible to write discrete patterns for each of these message types, that is one pattern
per bin. For example:
(UVM_ERROR)\s\d+ns:.*\s+\[\S+\]\s+ Unexpected
PhyRate!:::fail:::UVM_ERROR_unexpected_phyrate:::0
(UVM_ERROR)\s\d+ns:.*\s+\[\S+\]\s+ queue
underflow:::fail:::UVM_ERROR_queue_underflow:::0
(UVM_ERROR)\s\d+ns:.*\s+\[\S+\]\s+ FP NAN
exception:::fail:::UVM_ERROR_FP_NAN_exception:::0
VC Execution Manager™ User Guide
V-2023.12-SP2
131
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
It is not recommended to use this technique as it does not cater to new error messages
that might get added in future. For example, if you add the following two message types,
you need to write two new patterns of the testbench along with the above three patterns:
UVM_ERROR 7548993ns: excp_c.svh(406) Excp [sas_topo_pkg::excp_c] FP
overflow exception
UVM_ERROR 5607804ns: excp_c.svh(406) Excp [sas_topo_pkg::excp_c] FP
faulty interrupt
Alternatively, you can define a template-based pattern that generically matches all five
messages as well as future messages that match the pattern. With the use of pattern
groups, you can extract snippets of the actual error message and apply them to the userdefined test result type (that is, the "bin" for the failure). By using this technique, ExecMan
automatically creates new bins for the new message types that are created by your
testbench. The testbench, therefore, can continue to evolve with capabilities to generate
more failure bins without the need to make parallel changes to the error pattern files of
ExecMan.
The template technique of error patterns is based on labeling substrings of the error
patterns and then, referencing these substrings in the user-defined test status names.
As the diversity of error messages evolves, the corresponding diversity of user-defined
message bins evolves in parallel. There are two ways you can choose to reference
substrings from the pattern: by number or by name.
A group can also be labeled using the following format:
(?P<name>regr exp)
(?P<name>...) is similar to the regular parentheses, but the substring matched by the
group is accessible via the symbolic group name. Group names are valid identifiers, and
each group name is defined only once within a regular expression.
For example:
(?P<Type>UVM_ERROR|UVM_FATAL)\s\d+ns:.*\s+\[(?P<Code>\S
+)\]\s+(.*):::fail:::error_(Code):::0
When the groups are labeled, they are referenced in the custom_status field of the error
pattern using the label name enclosed in the parentheses. For example:
(<group_name>)
All the matched groups are saved as custom values for the test and the group label name
is the column name in the GUI.
Note:
Named substrings become custom results that are visible in the ExecMan GUI.
VC Execution Manager™ User Guide
V-2023.12-SP2
132
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Build Error Patterns
Table 5 lists the default build error patterns that are defined by VC Execution Manager:
Table 5
Default Build Error Patterns
Error Pattern
Base Status
Type
Custom Status
Precedence
^Error-\[.*
fail
vcs_error
0
^Dumping VCS Annotated Stack:
fail
vcs_stack_trace_fail 0
^.*: started at \d+\w?s failed at \d+\w?s
fail
vcs_assertion_error
0
^Time: \d+
pass
-
15
^merge failed
fail
-
5
^merge successful
pass
-
10
When ExecMan finds error patterns, the tests are marked accordingly as pass, fail,
warn, assert, unknown, and ignore. A test is categorized into any of these status types
using the error patterns specified. These are called as base status. A test is categorized
into any of these base status types using the patterns specified.
Note:
The ignore option of base status is used to ignore patterns. This option
can be specified in an .eme file and in the error_pattern block in an
.emc file. If the same expression is used by more than one pattern and
the last pattern has the ignore option, the pattern is not matched. For
example: "^YODELAEHOO .*6$:::warn:::queue_jam:::9" is not matched with
"^YODELAEHOO .*6$:::ignore:::queue_jam:::9".
The custom_status field is optional and is used to extend a base status type by defining
a custom value. For example, a custom value fail_critical is defined for a base status,
fail. This allows categorization of Base status type in binning with finer granularity.
The custom_status field is blank if a custom value is not required.
The Precedence value determines which pattern is given priority when determining the
test status. For a pattern, the lower the precedence value, the higher the priority. For
example, patterns with a precedence value of '0' is given preference over patterns with a
precedence value of '1'.
For example:
^my custom pattern1:::warn:::warn_custom:::1
^my custom pattern2:::warn::: :::2
VC Execution Manager™ User Guide
V-2023.12-SP2
133
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
^test failed badly:::fail:::fail_critical ::: 0
^Diag:.*FAIL.*:::fail:::fail_normal:::0
^Diag:.*PASS$:::pass::: :::1
Note:
You can use Precedence value to detect simulation crashes. For more details,
see SolvNetPlus article 1615043, "Detecting Simulation Crashes with Execution
Manager."
When error patterns are specified using the regression configuration, the default error
patterns are disabled. If you require any of the default patterns, you can copy the required
default patterns into the regression configuration. Similarly, when error patterns are
specified using the -error_pattern_file command-line option, the default error patterns
are disabled.
If both regression configuration and the -error_pattern_file command-line option are
used to specify the error patterns, the -error_pattern_file option overrides, that is,
error patterns in the regression configuration are not considered.
POSIX Regular Expressions
The Portable Operating System Interface for UNIX (POSIX) regular expression is a set of
strings that are concatenated to form a new regular expression. If two regular expressions
are concatenated then the resultant expression is also a regular expression. Moreover, if
a string, say A, matches a regular expression, say X, and another string, say B, matches
another regular expression, say Y, then the concatenation of the string (that is, AB)
matches the concatenation of the regular expressions (that is, XY).
Regular expressions can contain both ordinary and special characters. Ordinary
characters, such as 'A', 'a', and '0', are the simplest regular expressions. Special
characters are as follows:
Table 6
Special Characters
Special Character
Description
.
Matches any character except a newline. To match a literal dot, use
"\.".
^
Matches the start of the string.
$
Matches the end of the string.
*
Matches 0 or more repetitions of an expression. For example, xy*
matches x, xy, and x followed by any number of y.
?
Matches 0 or one repetition of an expression. For example, xy?
matches either x or xy.
VC Execution Manager™ User Guide
V-2023.12-SP2
134
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Table 6
Special Characters (Continued)
Special Character
Description
+
Matches 1 or more repetitions of an expression. For example, xy+
matches x followed by any non-zero number of y. It does not match
just x.
\
Used as an escape sequence in string literals.
\d
For Unicode patterns:Matches any decimal digit, that is [0 - 9], and
many other characters.For 8-bit patterns:Matches any decimal digit
[0 - 9] only.
\s
For Unicode patterns:Matches Unicode whitespace characters, that
is [ \t\n\r\f\v], and many other characters.For 8-bit patterns:Matches
white space characters, [ \t\n\r\f\v].
\S
For Unicode patterns:Matches any Unicode character not marked
as a space.For 8-bit patterns:Matches any non-whitespace
character, that is [^\t\n\r\f\v].
\w
For Unicode patterns:Matches Unicode word characters, that
is [a-zA-Z0-9_].For 8-bit patterns:Matches characters and
alphanumeric, [a-zA-Z0-9_].
Licensing and System Error Patterns
When ExecMan does not find a test log file it searches the spool log and applies the
licensing or system error patterns to find the error from the spool log. Table 5 lists the
default license and system error patterns that are defined by VC Execution Manager.
Error Patterns
Base
Status
Type
Custom Status
Precedence
^Cannot find license file
fail
license_error
0
^Cannot connect to the license server
fail
license_error
0
^Error: License checkout fail
fail
license_error
0
^Error: License error
fail
license_error
0
^.*Operation not permitted
fail
OS_EPERM
0
^.*No such process
fail
OS_ESRCH
0
^.*Interrupted system call
fail
OS_EINTR
0
VC Execution Manager™ User Guide
V-2023.12-SP2
135
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*I/O error
fail
OS_EIO
0
^.*No such device or address
fail
OS_ENXIO
0
^.*Argument list too long
fail
OS_E2BIG
0
^.*Exec format error
fail
OS_ENOEXEC
0
^.*Bad file number
fail
OS_EBADF
0
^.*No child processes
fail
OS_ECHILD
0
^.*Try again
fail
OS_EAGAIN
0
^.*Out of memory
fail
OS_ENOMEM
0
^.*Permission denied
fail
OS_EACCES
0
^.*Bad address
fail
OS_EFAULT
0
^.*Block device required
fail
OS_ENOTBLK
0
^.*Device or resource busy
fail
OS_EBUSY
0
^.*File exists
fail
OS_EEXIST
0
^.*Cross-device link
fail
OS_EXDEV
0
^.*No such device
fail
OS_ENODEV
0
^.*Not a directory
fail
OS_ENOTDIR
0
^.*Is a directory
fail
OS_EISDIR
0
^.*Invalid argument
fail
OS_EINVAL
0
^.*File table overflow
fail
OS_ENFILE
0
^.*Too many open files
fail
OS_EMFILE
0
^.*Not a typewriter
fail
OS_ENOTTY
0
^.*Text file busy
fail
OS_ETXTBSY
0
^.*File too large
fail
OS_EFBIG
0
^.*No space left on device
fail
OS_ENOSPC
0
VC Execution Manager™ User Guide
V-2023.12-SP2
136
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*Illegal seek
fail
OS_ESPIPE
0
^.*Read-only file system
fail
OS_EROFS
0
^.*Too many links
fail
OS_EMLINK
0
^.*Broken pipe
fail
OS_EPIPE
0
^.*Math argument out of domain of func
fail
OS_EDOM
0
^.*Math result not representable
fail
OS_ERANGE
0
^.*Resource deadlock would occur
fail
OS_EDEADLK
0
^.*File name too long
fail
OS_ENAMETOOL
ONG
0
^.*No record locks available
fail
OS_ENOLCK
0
^.*Function not implemented
fail
OS_ENOSYS
0
^.*Directory not empty
fail
OS_ENOTEMPTY
0
^.*Too many symbolic links encountered
fail
OS_ELOOP
0
^.*No message of desired type
fail
OS_ENOMSG
0
^.*Identifier removed
fail
OS_EIDRM
0
^.*Channel number out of range
fail
OS_ECHRNG
0
^.*Level 2 not synchronized
fail
OS_EL2NSYNC
0
^.*Level 3 halted
fail
OS_EL3HLT
0
^.*Level 3 reset
fail
OS_EL3RST
0
^.*Link number out of range
fail
OS_ELNRNG
0
^.*Protocol driver not attached
fail
OS_EUNATCH
0
^.*No CSI structure available
fail
OS_ENOCSI
0
^.*Level 2 halted
fail
OS_EL2HLT
0
^.*Invalid exchange
fail
OS_EBADE
0
VC Execution Manager™ User Guide
V-2023.12-SP2
137
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*Invalid request descriptor
fail
OS_EBADR
0
^.*Exchange full
fail
OS_EXFULL
0
^.*No anode
fail
OS_ENOANO
0
^.*Invalid request code
fail
OS_EBADRQC
0
^.*Invalid slot
fail
OS_EBADSLT
0
^.*Bad font file format
fail
OS_EBFONT
0
^.*Device not a stream
fail
OS_ENOSTR
0
^.*No data available
fail
OS_ENODATA
0
^.*Timer expired
fail
OS_ETIME
0
^.*Out of streams resources
fail
OS_ENOSR
0
^.*Machine is not on the network
fail
OS_ENONET
0
^.*Package not installed
fail
OS_ENOPKG
0
^.*Object is remote
fail
OS_EREMOTE
0
^.*Link has been severed
fail
OS_ENOLINK
0
^.*Advertise error
fail
OS_EADV
0
^.*Srmount error
fail
OS_ESRMNT
0
^.*Communication error on send
fail
OS_ECOMM
0
^.*Protocol error
fail
OS_EPROTO
0
^.*Multihop attempted
fail
OS_EMULTIHOP
0
^.*RFS specific error
fail
OS_EDOTDOT
0
^.*Not a data message
fail
OS_EBADMSG
0
^.*Value too large for defined data type
fail
OS_EOVERFLOW
0
^.*Name not unique on network
fail
OS_ENOTUNIQ
0
^.*File descriptor in bad state
fail
OS_EBADFD
0
VC Execution Manager™ User Guide
V-2023.12-SP2
138
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*Remote address changed
fail
OS_EREMCHG
0
^.*Can not access a needed shared library fail
OS_ELIBACC
0
^.*Accessing a corrupted shared library
fail
OS_ELIBBAD
0
^.*.lib section in a.out corrupted
fail
OS_ELIBSCN
0
^.*Attempting to link in too many shared
libraries
fail
OS_ELIBMAX
0
^.*Cannot exec a shared library directly
fail
OS_ELIBEXEC
0
^.*Illegal byte sequence
fail
OS_EILSEQ
0
^.*Interrupted system call should be
restarted
fail
OS_ERESTART
0
^.*Streams pipe error
fail
OS_ESTRPIPE
0
^.*Too many users
fail
OS_EUSERS
0
^.*Socket operation on non-socket
fail
OS_ENOTSOCK
0
^.*Destination address required
fail
OS_EDESTADDR
REQ
0
^.*Message too long
fail
OS_EMSGSIZE
0
^.*Protocol wrong type for socket
fail
OS_EPROTOTYPE
0
^.*Protocol not available
fail
OS_ENOPROTOOPT 0
^.*Protocol not supported
fail
OS_EPROTONOSUP 0
PORT
^.*Socket type not supported
fail
OS_ESOCKTNOSUP 0
PORT
^.*Operation not supported on transport
endpoint
fail
OS_EOPNOTSUPP
0
^.*Protocol family not supported
fail
OS_EPFNOSUPP
ORT
0
^.*Address family not supported by protocol fail
OS_EAFNOSUPP
ORT
0
VC Execution Manager™ User Guide
V-2023.12-SP2
139
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*Address already in use
fail
OS_EADDRINUSE
0
^.*Cannot assign requested address
fail
OS_EADDRNOTAV
AIL
0
^.*Network is down
fail
OS_ENETDOWN
0
^.*Network is unreachable
fail
OS_ENETUNREACH
0
^.*Network dropped connection because of fail
reset
OS_ENETRESET
0
^.*Software caused connection abort
fail
OS_ECONNABOR
TED
0
^.*Connection reset by peer
fail
OS_ECONNRESET
0
^.*No buffer space available
fail
OS_ENOBUFS
0
^.*Transport endpoint is already connected fail
OS_EISCONN
0
^.*Transport endpoint is not connected
fail
OS_ENOTCONN
0
^.*Cannot send after transport endpoint
shutdown
fail
OS_ESHUTDOWN
0
^.*Connection timed out
fail
OS_ETIMEDOUT
0
^.*Connection refused
fail
OS_ECONNREFU
SED
0
^.*Host is down
fail
OS_EHOSTDOWN
0
^.*No route to host
fail
OS_EHOSTUNRE
ACH
0
^.*Operation already in progress
fail
OS_EALREADY
0
^.*Operation now in progress
fail
OS_EINPROGRESS
0
^.*Stale NFS file handle
fail
OS_ESTALE
0
^.*Structure needs cleaning
fail
OS_EUCLEAN
0
^.*Not a XENIX named type file
fail
OS_ENOTNAM
0
^.*Too many references
VC Execution Manager™ User Guide
V-2023.12-SP2
140
Feedback
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Error Patterns
Base
Status
Type
Custom Status
Precedence
^.*No XENIX semaphores available
fail
OS_ENAVAIL
0
^.*Is a named type file
fail
OS_EISNAM
0
^.*Remote I/O error
fail
OS_EREMOTEIO
0
^.*Quota exceeded
fail
OS_EDQUOT
0
^.*No medium found
fail
OS_ENOMEDIUM
0
^.*Wrong medium type
fail
OS_EMEDIUMTYPE
0
^.*Operation Canceled
fail
OS_ECANCELED
0
^.*Required key not available
fail
OS_ENOKEY
0
^.*Key has expired
fail
OS_EKEYEXPIRED
0
^.*Key has been revoked
fail
OS_EKEYREVOKED
0
^.*Key was rejected by service
fail
OS_EKEYREJECTED 0
^.*Owner died
fail
OS_EOWNERDEAD
^.*State not recoverable
fail
OS_ENOTRECOVER 0
ABLE
0
Setting Command-Line Options — cli_options
The cli_options block is a global block to specify any command-line option directly
in the configuration file (.emc) or in the setup file (synopsys_eman.setup) instead of
specifying it on the command line. The block accepts a list of string or a key-value pair in
the YAML format. The syntax of the cli_options block is as follows:
cli_options:
- <command_line options>
The -build_args option provided at the eman command line overrides the options
defined in build_args under the cli_options block in the .emc file.
Consider a scenario in which you want to set few command-line options, such as
-local_host, -jrun, and -comment, directly in the configuration file. For this, use the
following cli_options block in the configuration file:
cli_options:
- local_host
VC Execution Manager™ User Guide
V-2023.12-SP2
141
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
- jrun: 1800
- comment:'from setup'
If the cli_options block exists in the master configuration file and the included
configuration file, the options of both the blocks are merged. If there is a conflict in the
options, ExecMan gives preference to the options specified in the master configuration file.
There are few options that you cannot specify in the cli_options block. These options
are either for printing information, such as -id, -get_web_url or are user-centric options,
such as -session_name and -work_dir. The following table shows the list of unsupported
options:
Option
Description
-regr_config <file>
Option to specify a regression configuration file that
contains test specification.
-work_dir <dir>
Option to specify a directory where a session directory
is created including a session run directory and merge
directory.
-top_run_dir <dir>
Option to specify a directory where runs should happen
instead of the current directory.
-merge_dir <dir>
Option to specify a directory where coverage merging is
performed using the URG merge commands.
-session_name
<session_name>
Option to specify an explicit session name for running a
session.
-session
Option to provide a session in which failed tests are
computed for debug_only runs.
-get_websvr_name
Option to print a Web server name.
-get_web_url
Option to print the URL of a Web server.
-get_cvs_depot
Option to get the path of the CVS depot.
-get_report_path
Option to get the static report path of a given session, if
exists.
-recreate
Use this option along with <session_name> to reuse the
session name only. It removes old tests in an existing
session.
-just_print full|cmd
Option to analyze the .emc file and to print the run
command.
-print_to_file
Option to save the run command to an executable shell
script.
VC Execution Manager™ User Guide
V-2023.12-SP2
142
Chapter 5: VC Execution Manager Configuration File
Basic Blocks of a Configuration File
Feedback
Option
Description
-show_tags
Option to list all tags defined in the configuration file.
-show_tests
Option to list all tests of each tag. If the -tags <tags>
option is specified, then this option prints the tags listed in
<tags>.Note that <tags_list> is deprecated.
-reuse_config
Option to use the saved configuration of an existing
session.
-parent_session <name>
Option to pass a parent session name to associate a rerun
session with an original session.
-error_pattern_file <file>
Option to override the default error_pattern_file by
specifying your error pattern file.
-serverless
Option to run ExecMan even when the database and Web
servers are not available. A complete installation is still
required.
-no_serverless
Option to run ExecMan in the server mode. The option
aborts ExecMan when the database server is not running.
-project
Option to specify EMAN_PROJECT.
-id
Option to print the current ExecMan version. This option is
same as -eman version.
-version
Option to print the current ExecMan version. This option is
same as -eman version.
-ignore_cli_options
Option to ignore the cli_options block specified in the
configuration file and the setup file.
Note:
If any of the unsupported options (listed in the above table) is specified in the
cli_options block of the configuration file, ExecMan gives a warning.
ExecMan gives priority to the CLI options in the following order (highest to lowest):
1. CLI options specified on the eman command line
2. CLI options specified in the cli_options block of the configuration file (.emc)
3. CLI options specified in the cli_options block of the global setup file
(synopsys_eman.setup)
VC Execution Manager™ User Guide
V-2023.12-SP2
143
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Sample Configuration File With Mandatory Blocks
Following is a sample configuration file with the blocks required to run a basic regression:
config_name: echo
env:
- EMAN_HOME
- EMAN_PROJECT
variables:
- current_dir: $PWD
- run_log: $$TESTCASE.log
builds:
- name: b1
run_cmd: echo dummy build
run_dir: $current_dir
tests:
- name: heidi
build: b1
run_cmd: $current_dir/testrun.csh $$EMAN_RANDOM > $run_log
count: 20
error_patterns:
- "^YODELAEHOO .*[0-3]$:::pass:::success:::10"
- "^YODELAEHOO .*4$:::warn:::queue_jam:::9"
- "^YODELAEHOO .*5$:::warn:::video_glitch:::9"
- "^YODELAEHOO .*6$:::warn:::queue_jam:::9"
- "^YODELAEHOO .*7$:::fail:::deadlock:::8"
- "^YODELAEHOO .*8$:::fail:::encrypt_leak:::8"
- "^YODELAEHOO .*9$:::fail:::fatal:::1"
Advanced Blocks and Options of a Configuration File
Various additional options can be included in the regression configuration file that helps
enhance regression planning. The following sections describe the advanced configuration
file options and its usage:
• Including Configuration Files in a Parent Configuration File
• Running Custom Commands Before Starting Builds
• Running Custom Commands at the End of a Session
• Defining Variables
• Defining Modes
VC Execution Manager™ User Guide
V-2023.12-SP2
144
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• Deleting Test’s Data
• Options in the Builds Block
• Options in the Tests Block
• Overriding Attributes From the Command Line
• Auto Group With User-Defined Groups
• Round Robin With Auto Groups
• Creating the Test Run Command
• Specifying the Timeout Value
• Importing Regression Configurations
• Inheritance in Builds and Tests Blocks
• Configuring Rules for a Regression Run
• Specifying Grid Options for Individual Tests and Builds
• Specifying Job Dependencies and Priorities on a Grid
Including Configuration Files in a Parent Configuration File
To include configuration definition from one configuration file to another, use the include
block. The included configuration file needs not to be a full configuration file. It can have
one or more blocks. If same blocks are present in both the parent configuration file and the
included configuration file, the definitions of the blocks are merged.
The parent configuration file is given higher priority over the included configuration. That
is, any variables/env/builds/tests block which is already defined in the parent
configuration is considered over the block defined in the included file.
For example:
config_name: parent
include:
- test/test_include_config/include_config_child1.emc
- test/test_include_config/include_config_child2.emc
You can reference the environment variables that are defined in the current terminal in the
included file path using $PWD. For example:
include:
- $PWD/include.emc
VC Execution Manager™ User Guide
V-2023.12-SP2
145
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Running Custom Commands Before Starting Builds
To run custom commands before starting the builds block, use the init block in the
configuration file. It enables you to perform tasks, such as copying design files and setting
up files, to the required locations.
For example:
init:
- run_cmd: <run_command or run_script>
timeout: 1000
Note:
It is recommended to not remove any directories created by ExecMan in the
init block, for example, the directory defined with the -merge_dir option.
Running Custom Commands at the End of a Session
Include the end block to run custom commands at the end of a session. It enables
generating custom reports or updating custom databases.
For example:
end:
- run_cmd: <run_command or run_script>
timeout: 120
You can include multiple commands separated by semicolon. The options that you can
use in end block are:
• run_cmd: To specify a compile script or a compile command line.
• timeout: To specify the run timeout value for end run_cmd. The default is 60 seconds.
• disable: To disable the end block.
Defining Variables
The variables block enables you to define user-defined variables when defining tests
and builds in the configuration file.
Example,
variables:
vcs: $VCS_HOME/bin/vcs
cm_opts: -cm line+cond +ntb_random_seed=$$EMAN_RANDOM
run_log: $$TESTCASE.log
VC Execution Manager™ User Guide
V-2023.12-SP2
146
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
The following sections discuss the various types of variables that you can use in the
configuration file:
• Immediate Resolution Variables
• Deferred Resolution Variables
Immediate Resolution Variables
The variables starting with $ are required to be present while parsing a test file. The
test file automatically accesses users' environment variables. You can use environment
variables directly via $var_name.
Note:
You can define immediate resolution variables in the regression configuration in
the variables block.
For example:
$VCS_HOME
or
$EMAN_HOME
Deferred Resolution Variables
The deferred variables are called only during runtime and start with $$ or \$\. The
deferred variables are expanded only during runtime (during execution of capsules). They
are not necessarily valid at this scope of the test list. However, when the test case is run
(runtime), they are valid and populated by Execution Manager.
Note:
You cannot define the deferred resolution variables in the regression
configuration as these are populated by ExecMan during a regression run.
For example, EMAN_RANDOM is not available while the regression configuration is being
parsed because this variable is populated only via VC Execution Manager during
execution of a test case. As a result, to access this variable at runtime, (not during
regression configuration parsing), use $$EMAN_RANDOM or \$\{EMAN_RANDOM}.
Note:
The $$EMAN_RANDOM variable is available only for random tests using the
counts tag in the test block.
VC Execution Manager™ User Guide
V-2023.12-SP2
147
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Similar variables that are available during runtime are described in the following sections:
• General Runtime Variables
• Runtime Variables Specific to the ‘builds’ Block
• Runtime Variables Specific to the 'tests' Block
• Runtime Variables Specific to Running custom_cmd
General Runtime Variables
Table 7 lists the general runtime variables supported with ExecMan:
Table 7
General Runtime Variables
$$EMAN_CONFIG_NAME
Resolves to the config_name tag specified
in the regression configuration file.
Example, builds: - name: dummy_build
run_cmd: echo $$EMAN_CONFIG_NAME >
$$EMAN_BUILD_NAME.logtests: - name:
test_config build: dummy_build run_cmd: make
-outdir=$$EMAN_CONFIG_NAME
$$EMAN_SESSION_NAME
Current session name
$$EMAN_TOP_RUN_DIR
The top run directory
Runtime Variables Specific to the ‘builds’ Block
Table 8 lists the runtime variables supported in the builds block:
Table 8
Variables Specific to the builds Block
$$EMAN_BUILD_NAME
Name of the build
$$EMAN_CM_DIR
Coverage vdb directory
$$EMAN_RUN_DIR
Run directory for the build
$$EMAN_COMPILE_DIR
Compilation directory for the build
$$EMAN_BUILD_PATH
Complete path of the build, that is,
$$EMAN_LOG_FILE
Location of the log file or debug log file
VC Execution Manager™ User Guide
V-2023.12-SP2
<build_group>/<build_name>
148
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Runtime Variables Specific to the 'tests' Block
Table 9 lists the runtime variables supported in the tests block:
Table 9
Variables Specific to the 'tests' Block
$$EMAN_BUILD_NAME
Name of the dependent build
$$EMAN_COMPILE_DIR
Directory where the dependent build is compiled
$$EMAN_TESTCASE
Name of the test case (contains random seed for random
tests) and contains the flag name for this test case.
$$EMAN_TEST_NAME
Name of the basic test as given in the regression
configuration without random seed appended
$$EMAN_TEST_PATH
The complete test path for a test in the regression
configuration, that is, <build>/<groups>/<test>
$$EMAN_TEST_GROUP_PATH
Resolves to the test path without the build name, that is,
$$EMAN_RANDOM
ExecMan generated random seed
$$EMAN_CM_NAME
Coverage test name
$$EMAN_CM_DIR
Coverage VDB directory
$$EMAN_ICO_OPTS
Resolves at test blocks at runtime when ICO is enabled
$$EMAN_LOG_FILE
Location of the log file or debug log file
$$EMAN_DEBUG_LOG_FILE
Location of debug log file
$$EMAN_SIMV
simv location of the build
$$EMAN_DEBUG_SIMV
simv location of the debug build
$$EMAN_RUN_DIR
run_dir for the test
<groups>/<test>
Runtime Variables Specific to Running custom_cmd
You can use the following runtime variables after the status extraction step, that is, for
running custom_cmd only. You can use these variables inside a script and not in the
regression config.
Table 10
Runtime Variables Specific to Running custom_cmd
$EMAN_CUSTOM_STATUS
VC Execution Manager™ User Guide
V-2023.12-SP2
The custom_status extracted by eman
149
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Table 10
Feedback
Runtime Variables Specific to Running custom_cmd (Continued)
$EMAN_BASE_STATUS
The base status extracted by eman
$EMAN_ERROR_PATTERN
The error pattern used for extracting status from the log
file
Defining Modes
The modes block enables you to dynamically set and control the content of a variable. A
mode is a key:value pair. Here, key is the name of a mode and value is a list of commaseparated variables.
The variables that are used to define modes are set to empty by default, if you do not
enable them explicitly with -enable |-enable_modes options.
The example of the modes block along with the variables block is as follows:
variables:
-fsdb_opt: -fsdb
-interactive_opt: DEBUG=gui
-smartlog_opt: DEBUG=gui
-custom_opt: -debug
-debug_args: $fsdb_opt $interactive_opt $smartlog_opt $custom_opt
modes:
-fsdb_dump: fsdb_opt
-interactive: interactive_opt
-smartlog: smartlog_opt
-custom: custom_opt
If the above variables and modes are defined in an emc file and if you run the regression
without -enable or -enable_modes options, then $fsdb_opt, $interactive_opt,
$smartlog_opt, and $custom_opt are set to empty. Therefore, $debug_args is also set
to empty.
If you run the regression with the -enable interactive,custom option, then
$interactive_opt is set to DEBUG=gui, $custom_opt is set to -debug, and others
variables/modes are set to empty. Therefore, $debug_args is set to "DEBUG=gui -debug".
You can reference $debug_args in your run_cmd and enable the required mode to get
different $debug_args.
It is recommended that the value under some variable must be mentioned in the build or
test run_cmd. For example, to run a regression (.emc file) with compile time and runtime
VC Execution Manager™ User Guide
V-2023.12-SP2
150
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
options related to the VCS Xprop feature, add VCS Xprop options at compile and runtime
as follows:
ifeq (${SIM_CFG_ENABLE_XPROP}, yes)
COMP_ARGS += -xprop
RUN_ARGS += -report=xprop
endif
This logic can be defined in the .emc file as follows:
variables:
-xprop_opts : SIM_CFG_ENABLE_XPROP=yes
modes:
-vcs_xprop : xprop_opts
Also, specify $xprop_opts at relevant builds and tests, as follows:
builds:
name: second_build
run_cmd: make all -f $current_dir/Makefile $xprop_opts
tests:
name: test_build_two
build: second_build
run_cmd: make run -f $current_dir/Makefile $xprop_opts
To run ExecMan regression with a defined mode (for example, vcs_xprop), use the
following command:
%eman -regr_config my.emc -enable vcs_xprop
Note:
The makefile has "all" and "run" targets:
all:
vcs -ntb_opts uvm -sverilog jukebox.v ${COMP_ARGS}
run:
simv ${RUN_ARGS}
Deleting Test’s Data
To delete files or directories after a regression run, (after the completion of a regression
run), use the cleanup: keyword. You can specify a comma separated list of files or
directories that needs to be deleted, as shown in the following example:
- name: default_build
variables:
- design: jukebox.v
VC Execution Manager™ User Guide
V-2023.12-SP2
151
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
run_cmd: vcs -sverilog $cm_opts $design -o foo -l
$$EMAN_BUILD_NAME.log
simv: $design_dir/compdir/foo
run_dir: $design_dir/compdir
cleanup: file1, file2, dir1, dir2
save: $$EMAN_BUILD_NAME.log
custom_cmd: ./clean_only_if_pass.csh $EMAN_BASE_STATUS
The custom_cmd keyword has access to test status and can be used to selectively take
actions, such as deleting data or saving data to Execution Manager’s cvsdepot directory.
Options in the Builds Block
You can specify various options in the builds block under the -options block to
customize the execution behavior even further. With the help of these options, you can
decide on various parameters, such as the number of parallel runs, different timeouts for
builds and some specific tasks. These options are global for all the builds mentioned in the
configuration.
Note:
If you import a configuration, the options from the parent configuration would be
applied to the child configurations build block.
Example,
builds:
- options:
nodes: 1
timeout: 50
build: all / test_dependency
custom_cmd: $PWD/custom.csh
debug_custom_cmd: $PWD/debug_custom.csh
Various options that can be used with the builds -> -options: block are:
• nodes:To specify the number of parallel runs for builds. The other method
to specify nodes is by setting the EMAN_PERF_NODES environment variable or
by using the -nodescommand line option. The –nodes option overrides the
EMAN_PERF_NODESenvironment variable setting, which in turn overrides the nodes
option in the build options block.
Note that if EMAN_PERF_NODES or –nodes is used, it is applied to both build and test
runs. However, the nodes keyword under the builds options is applied only to the
build runs.
• timeout:To specify the timeout value in seconds for running builds. If a build run
exceeds the timeout value, it is terminated and marked as Run_TimedOut.
VC Execution Manager™ User Guide
V-2023.12-SP2
152
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• build: To mention whether to execute all builds or only to build specific blocks that
have tests associated with them.
• custom_cmd: To run any post-processing command or script after executing run_cmd.
When custom_cmd is specified in the -options block, it applies to all the builds defined
in the builds block.
custom_cmd can also be specified at an individual build level that overrides
custom_cmd specified in the build -options: block.
Example,
builds:
- options:
custom_cmd: custom_build.csh
- name: build1
run_cmd: test1.csh
simv: simv1
custom_cmd: custom_cmd.csh
- name: build2
run_cmd: test2.csh
simv: simv2
In this example, custom_cmd: custom_build.csh gets executed after the build
run_cmd for build2 while custom_cmd: custom_cmd.csh gets executed after run_cmd
of build1.
• debug_custom_cmd: To run any post-processing command or script after executing
debug_run_cmd in the debug rerun phase. When debug_custom_cmd is specified in the
-options: block, it is applied to all the builds running during the debug rerun mode.
Thedebug_custom_cmd option can also be specified at an individual build level that
overrides the debug_custom_cmd option specified in the build -options block.
Example:
builds:
- name: my_first_build
run_cmd: $current_dir/build.csh
debug_run_cmd: $run_cmd debug
custom_cmd: $current_dir/build_custom_cmd.csh $$EMAN_BUILD_NAME
debug_custom_cmd: $current_dir/build_custom_cmd.csh
$$EMAN_BUILD_NAME debug
$current_dir/compdir/simv
run_dir: $current_dir/compdir
In this example, assuming that my_first_build fails during the regular eman run,
debug_custom_cmd: $current_dir/build_custom_cmd.csh $$EMAN_BUILD_NAME
debug is executed after debug_run_cmd during the debug rerun mode.
VC Execution Manager™ User Guide
V-2023.12-SP2
153
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• status_priority: When you set status_priority: exit_status, it gives priority
to the exit status. In this scenario, the status of the build is taken from the exit status
of run_cmd if exit_status is specified. When you set status_priority: log_file,
it gives priority to the log file. In this scenario, the status of the build is determined by
error patterns from the log if log_file is specified. The status_priority option is
specified in the -options block of builds, as follows:
builds:
- options:
status_priority:exit_status
- name:bld1
run_cmd:./comp_fail.csh
simv_location:./simv
run_dir:$current_dir
• run_dependency: To set or change the run dependency for a build. The dependent job
is submitted to the grid based on the status of the parent build. For more information,
see Specifying Job Dependencies and Priorities on a Grid.
• run_dependency_script Instead of using the job submission status to set the
dependency for a build, you can also specify a script using run_dependency_script.
For more information, see Specifying Job Dependencies and Priorities on a Grid.
Keywords in the Builds Block
This section discusses the keywords that you can use in the builds block to customize
compilation:
• name: The name of a build. VC Execution Manager uses this name in the report.
The name of a build can include alphanumeric characters (A-Z, a-z, 0-9), underscore
(_), plus (+), and hyphen (-).
• run_cmd: To specify a compile script or a compile command line
• simv_location: To specify a path to the simulation executable. If simv_location is
specified, build is marked as failed if compilation results are not generated. In this
scenario, the build run_cmd return status is either 0 or no error found in the build log
file.
If a path to the simulation executable is specified using simv_location and using vcs -o,
the path specified using vcs -o is given priority.
VC Execution Manager™ User Guide
V-2023.12-SP2
154
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• run_dir: To specify the directory from where the build’s run_cmd should be executed.
• log_file:To specify the log file for the build. If not specified, the <run_dir>/$
$EMAN_BUILD_NAME.log file is used.
• grid_opt: To mark the individual build with grid_opts defined in the
grid_setup_file. This overrides the grid_opt defined in the build options.
An individual grid_opts could also be defined in the configuration file.
• custom_cmd: To run any post-processing command or script after executing run_cmd.
This overrides custom_cmd specified in the build-options block.
• debug_run_cmd: To specify debug command or script for recompiling the design
during the debug rerun phase. This is an optional keyword and when used, the
debug_run_cmd is used to recompile the design.
Example:
- name: my_first_build
run_cmd: vcs –sverilog …
debug_run_cmd: vcs -sverilog -debug $cm_opts jukebox.v -o simv
• debug_run_dir
To specify the directory from where debug_run_cmd must be executed. The default
debug_run_dir is eman_rundir/<buildname>_debug/<group>/<testname>_debug.
If -enable or -enable_modes is in the command line and if it is saved into
enabled_modes, debug_run_dir is created with the following rule:
<run_dir>_debug_<stripped_enabled_modes>
<run_dir> is either provided by users or is created from <top_run_dir>/
<buildname>_debug_<modename>/<group>/<testname>_debug_<modename>.
Otherwise, <debug_run_dir> is used as <top_run_dir>/<build_name>/<group>/
<testname>_debug.
The rule to process enabled_modes and then, append to its name is as follows:
If enabled_modes is fsdb,smartlog then stripped_enabled_modes is
fsdb_smartlog.
Other special characters are removed, only following characters are allowed:[^A-Zaz0-9=_+-]
• debug_simv_location: To specify the path to the simulation executable generated
during the debug rerun. If debug_simv_location is specified, debug build is
marked as failed if compilation results are not generated. In this scenario, the build
debug_run_cmd return status is either 0 or no error found in the build log file.
VC Execution Manager™ User Guide
V-2023.12-SP2
155
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• debug_log_file: To specify the log file that should be used to determine the build
status.
• debug_custom_cmd: To run any post-processing command or script after executing
debug_run_cmd. This option overrides the debug_custom_cmd specified in the build
options.
• error_patterns: To specify error patterns for specific builds. When ExecMan finds
error_patterns inside a build block, it honors the local error definition rather than the
global definition.
• custom_cmd: To run any post-processing command or script after executing
debug_run_cmd. This overrides debug_custom_cmd specified in the builds -options
block.
• save: To specify files or directories that should be saved in cvsdepot. The specify
multiple files and directories, specify a comma separated list.
• cleanup:To specify files or directories that should be deleted after the test is run. The
specify multiple files and directories, specify a comma separated list.
• timeout: To specify the run timeout value for individual tests. The default is 1800
seconds.
• extends: Inherit all the tags of a build block using the extends option.
• env: List of environment variables that are specific to the scope of an individual
build. The environment variables specified at the individual build level overrides the
environment variables specified at a global level.
• variables: To specify the list of variables that are specific to the scope of an
individual build. The local variables defined at an individual build level overrides the
variables defined at a global level.
• merged_vdb: To specify the name of a merged vdb that the build should be associated
with.
- name: my_first_build
run_cmd: vcs –sverilog $cm_optsjukebox.v -o simv1
simv: $current_dir/compdir/simv1
run_dir: $current_dir/compdir
merged_vdb: merge1.vdb
- name: my_second_build
run_cmd: vcs –sverilog $cm_optsjukebox.v -o simv2
simv: $current_dir/compdir/simv2
run_dir: $current_dir/compdir
merged_vdb: merge2.vdb
VC Execution Manager™ User Guide
V-2023.12-SP2
156
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• group: To define the groups and subgroups for a build in a regression, specify the
group option in the builds block, as shown in the following example:
builds:
- name: my_first_build
group: bld_grp1/bld_grp2
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
tests:
- name: random_test1, random_test2, random_test3
group: G1/G2
build: bld_grp1/bld_grp2/my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
- name: seed87
group: G1
build: bld_grp1/bld_grp2/my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
The default build run_dir is created according to the build path. In this example, for
the my_first_build build, the default run_dir is:
<top_run_dir>/bld_grp1/bld_grp2/my_first_build
You can inherit a build block using the extends option. When a builds block is
inherited, all the options in that block are inherited. For more information about
inheritance, see section Inheritance in Builds and Tests Blocks.
For example:
builds:
- name: my_first_build
group: bld_grp1/bld_grp2
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
- name: my_sec_build
extends: bld_grp1/bld_grp2/my_first_build
tests:
- name: random_test1
group: G1/G2
build: bld_grp1/bld_grp2/my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
VC Execution Manager™ User Guide
V-2023.12-SP2
157
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
- name: random_test2
extends: bld_grp1/bld_grp2/my_first_build/G1/G2/random_test1
All the options specified to the my_first_build build are also applicable to the
my_sec_build build. The my_sec_build build belongs to the bld_grp1/bld_grp2
group.
For information about groups and its subgroups in a tests block, see section
Keywords in the Tests Block.
• priority:To define or set the priority for builds. For more information, see Specifying
Job Dependencies and Priorities on a Grid.
• urg_options: Additional options to pass to URG when merging coverage. The –
urg_opts command line option is used in block-level merging if the urg_options
keyword is not specified for a build. If multiple urg_options are specified for the same
merged_vdb, only the first defined urg_options is considered.
For example,
- name: my_first_build
run_cmd: vcs –sverilog $cm_optsjukebox.v -o simv1
simv: $current_dir/compdir/simv1
run_dir: $current_dir/compdir
merged_vdb: merge1.vdb
urg_options: -userdata data1.txt
- name: my_second_build
run_cmd: vcs –sverilog $cm_optsjukebox.v -o simv2
simv: $current_dir/compdir/simv2
run_dir: $current_dir/compdir
merged_vdb: merge2.vdb
urg_options: -userdata data2.txt
Options in the Tests Block
The tests block describes how to run each test. You can include multiple test
configurations in the tests: block.
Similar to the builds: block, you can specify options in the tests: block to customize the
execution behavior even further. With the help of these options you can decide on various
parameters, such as the number of parallel runs, different timeouts, and so on. These
options are global for all the tests mentioned under the configuration.
Note:
Each test must specify either run_cmd, script name or simv_location (via
build). Tags are optional keywords and you can use them while selecting tests
to run. count and initial_seed are also optional. By default, merge is yes.
VC Execution Manager™ User Guide
V-2023.12-SP2
158
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Example:
tests:
- options:
nodes: 10
timeout: 30
debug_rerun_count: 1
custom_cmd: $current_dir/custom_script.csh
debug_custom_cmd: $current_dir/debug_custom_script.csh
save: on_failure
The various options that you can include in the tests -> -options: block are as follows:
• nodes: To specify the number of parallel runs for the tests. You can also
specify nodes either by setting the EMAN_PERF_NODES environment variable
or by using the -nodescommand line option. The –nodes option overrides the
EMAN_PERF_NODESenvironment variable, which in turn overrides the nodes option in the
test options block.
Note that if EMAN_PERF_NODES or –nodes is used, it is applied to both build and test
runs. However, the nodes keyword under test options is applied only to the test runs.
• timeout: To specify the timeout value in seconds for running tests. If a test run
exceeds the timeout value, it is terminated and marked as Run_TimedOut.
• debug_rerun_count:To specify the number of failing tests to be selected from each
failure category for debug rerun. For selecting 'n' tests, a positive integer must be
specified and if all tests are required to be selected, then the string all should be
specified as an input to debug_rerun_count.
Example: For selecting 2 tests from each failure bin of debug rerun:
tests:
- options:
debug_rerun_count: 2
- name: random_test
run_cmd: $current_dir/my_test_script $test_name $cm_opts
+ntb_random_seed=$random_seed -l $run_log
count: 5
For selecting all failing tests from each failure category:
tests:
- options:
debug_rerun_count: all
- name: random_test
run_cmd: $current_dir/my_test_script $test_name
$cm_opts +ntb_random_seed=$random_seed -l $run_log
count: 5
VC Execution Manager™ User Guide
V-2023.12-SP2
159
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
If the debug_rerun_count option is not specified, by default, one failing test from each
failure category is selected for debug rerun.
To select <n> number of failing tests from each build for every failure category, the value
<n>/build can be specified for the debug_rerun_count keyword in the regression
configuration file, where n is a positive integer, as shown in the following example:
builds:
- name: build1
run_cmd: vcs -f design/design.vc
debug_run_cmd: vcs -f design/design.vc -debug_access+r
./simv
run_dir: $current_dir
- name: build2
run_cmd: vcs -f design/design.vc
debug_run_cmd: vcs -f design/design.vc -debug_access+drivers
./simv
run_dir: $current_dir
tests:
- options
debug_rerun_count: 1/build
- name: test_a
build: build1
run_cmd: $$SIMV > test_a.log
log_file: test_a.log
- name: test_b
build: build2
run_cmd: $$SIMV > test_b.log
log_file: test_b.log
- name: test_c
build: build2
run_cmd: $$SIMV > test_c.log
log_file: test_c.log
error_patterns:
- "TEST_PASSED :::pass:::success:::0"
- "TEST_FAILED:::fail:::failed:::1"
In this example, if all tests fail, then the two shortest running tests (one from each build)
with the status failed are selected for debug_rerun.
• custom_cmd: To run any post-processing command or script after the test execution.
Note that custom_cmd is executed only after the test is run and the status is extracted
from the test log_file. When custom_cmd is specified in the -options block, it is
applied to all the tests defined in the testsblock. You can also specify custom_cmd at
an individual test level, which overrides custom_cmd specified in the test -options:
block.
VC Execution Manager™ User Guide
V-2023.12-SP2
160
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Example,
tests:
- options:
custom_cmd: ./extract_errror_signature.csh
- name: test1
Build: build1
run_cmd: test1.csh
custom_cmd: ./custom_cmd.csh
- name: test2
Build: build2
run_cmd: test2.csh
In this example, custom_cmd: ./extract_errror_signature.csh is executed
after the test runs for test2 and custom_cmd: ./custom_cmd.csh is executed after
run_cmd for test1.
• debug_custom_cmd: To run any post-processing command or script after the test
execution in the debug rerun phase. Note that debug_custom_cmd is executed
only after the test is run and the status is extracted from the test log_file in the
debug rerun mode. When debug_custom_cmd is specified in the -options: block,
it is applied to all the failing tests selected for a debug rerun. You can also specify
debug_custom_cmd at an individual test level, which overrides debug_custom_cmd
specified in the test -options: block.
1. Example:
tests:
- options:
debug_custom_cmd: ./extract_errror_signature.csh
- name: test1
build: build1
run_cmd: test1.csh
debug_run_cmd: test1_debug.csh
debug_custom_cmd: ./debug_custom_cmd.csh
- name: test2
build: build2
run_cmd: test2.csh
debug_run_cmd: test2_debug.csh
2. In this example, assuming that both test1 and test2 fail during the regular eman
run, debug_custom_cmd: ./ extract_errror_signature.csh is run after the test
debug_run_cmd for test2 and custom_cmd: ./ debug_custom_cmd.csh is executed
after run_cmd for test1 during the debug rerun mode.
VC Execution Manager™ User Guide
V-2023.12-SP2
161
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
◦ save: on_failure To save the files specified using the save keyword in the
individual test definition only when the test fails.
◦ run_dependency: To set or change the run dependency for a test. The dependent
job is submitted to the grid based on the status of the parent test. For more
information, see Specifying Job Dependencies and Priorities on a Grid.
◦ run_dependency_script Instead of using the job submission status
to set the dependency for a test, you can also specify a script using
run_dependency_script. For more information, see Specifying Job Dependencies
and Priorities on a Grid.
◦ flat_priority: To run tests based on the priority set, irrespective of the builds that
these tests belong to. For more information, see Specifying Job Dependencies and
Priorities on a Grid.
Keywords in the Tests Block
This section discusses the keywords that you can use in the tests block to customize the
test runs.
• name: To specify a name for a test case. You can specify a comma separated list of
values for specifying multiple test names that should run with the same command line.
Note that, if a test name is repeated for the same build, the last occurrence of the test
data for that test is considered.
The name of a test can include alphanumeric characters (A-Z, a-z, 0-9), underscore
(_), plus (+), and hyphen (-).
Example:
tests:
- name: random_test
build: mybuild
run_cmd: random_script1.csh
count: 5
- name: direct_test
build: mybuild
run_cmd: direct_script.csh
- name: random_test1
build: mybuild
run_cmd: random_script2.csh
count: 3
In this example, the random test is repeated twice for the same build, my_build. The
last occurrence of random_test is considered and the test is run using the run_cmd
“random_script2.csh” for a count of 3.
VC Execution Manager™ User Guide
V-2023.12-SP2
162
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• build: To specify the name of one of the builds defined in the configuration file, such
as my_first_build for which this test should run.
• variables: To specify the local variables for the test block.
• env: To specify the local environment variables for the local test block.
• run_cmd: To specify the command line to run the test case.
To access the simv/simv_location location specified in the build from the test case,
you can use the $$SIMV EMAN variable. Note that this variable is not available if simv is
not specified in the build.
The arguments keyword should not be specified when the run_cmd keyword is used in the
test configuration.
• flags: To specify any additional test flags that the test should run with.
An example of flags is as follows:
tests:
-name: test1
build: bld1
run_cmd: ./run.csh
flags: -temp=100
ExecMan appends the expression of flags to the original test name with _@_ as
the separator. For example, the derived string of flags as per the specified rules is
temp=100. This string is appended to the original test and the unique test name, that is
test1_@_temp=100, is generated. If the derived string is temp 100, then also ExecMan
generates its unique test name as test1_@_temp=100.
If the test contains a random seed (either by specifying seeds or count), then the seed
is appended at the end of the generated test name with flags. For example:
tests:
- name: test1
build: bld1
run_cmd: ./run.csh
seeds: 33, 66
flags: -temp=100
In the example, ExecMan generates the following test names:
- test1_@_temp=100_@_33
- test1_@_temp=100_@_66
The flags keyword allows any character and format. However, when EMAN appends
flags to the test name, all special characters are dropped. Allowed characters in the
test name are [^A-Za-z0-9=_+-]. Spaces between tokens are replaced with a double
underscore. Space within a token is replaced with a single underscore. ExecMan does
VC Execution Manager™ User Guide
V-2023.12-SP2
163
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
not resolve runtime variables that are referenced with double dollars in flags. Only
compile-time variables, which are referenced with a single dollar, are resolved.
This section consists of the following subsections:
◦ Runtime Variable
◦ Multiple Flags
◦ Test Filters
◦ Test API and Hybrid Flows
Runtime Variable
ExecMan provides a runtime variable, EMAN_TEST_FLAGS. The variable resolves to the
value of flags. You can use this variable in the run scripts of the run_cmd test as follows:
tests:
- name: test1
build: bld1
run_cmd: ./run.csh $$EMAN_TEST_FLAGS
seeds: 33, 66
flags: -temp=100
In the example, $$EMAN_TEST_FLAGS resolves to -temp=100.
Multiple Flags
ExecMan enables you to provide multiple flags for a test by comma separating the flags.
For example:
tests:
- name: test1
build: bld1
run_cmd: ./run.csh
flags: -temp=100, -temp=200
count: 2
The example shows two flags, namely -temp=100 and -temp=200 and count:2 for a test.
As count:2, ExecMan executes test1 twice with two different seeds. In addition, there
are two flags, -temp=100 and -temp=200. By default, ExecMan generates a separate
seed for each flag. Therefore, ExecMan generates four tests with four different seeds, as
follows:
test1_@_temp=100_@_33
$$EMAN_TEST_FLAGS resolves -temp=100
$$EMAN_RANDOM:33
test1_@_temp=100_@_66
$$EMAN_TEST_FLAGS resolves -temp=100
$$EMAN_RANDOM:66
test1_@_temp=200_@_44
$$EMAN_TEST_FLAGS resolves -temp=200
VC Execution Manager™ User Guide
V-2023.12-SP2
164
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
$$EMAN_RANDOM:44
test1_@_temp=200_@_55
$$EMAN_TEST_FLAGS resolves -temp=200
$$EMAN_RANDOM:55
To generate same seeds for each flag, use the -keep_seeds_for_flags switch as
follows:
eman -regr_config config.emc -keep_spool -keep_seeds_for_flags
When the -keep_seeds_for_flags switch is used with the example above, ExecMan
generates two different seeds for test1 as count:2 and these two seeds are used for
both the flags, -temp=100 and -temp=200. Therefore, ExecMan generates the following
four tests with two different seeds using the -keep_seeds_for_flags switch:
test1_@_temp=100_@_33
test1_@_temp=100_@_66
test1_@_temp=200_@_33
test1_@_temp=200_@_66
Test Filters
ExecMan supports test filters, namely -test and -test_filter, when test flags are used
in the regression configuration. For example:
tests:
- name: test1
build: bld1
run_cmd: ./run.csh
seeds: 33, 66
flags: -temp=100, -temp=200
Scenario 1: When the complete test path is given, ExecMan selects only the test case
given by the -test option:
eman -regr_config config.emc -local_host -test bld1/test1_@_temp=100_@_33
Scenario 2: When only the test name is given, ExecMan selects all four test cases
corresponding to the bld1/test1 test for the run.
eman -regr_config config.emc -local_host -test bld1/test1
Note:
Scenario 1 and Scenario 2 apply to -test_filter to put the test path/test
name in the filter file.
Scenario 3: When short test name is given, ExecMan selects all four test cases
corresponding to the bld1/test1 test for the run.
eman -regr_config config.emc -local_host -test test1
VC Execution Manager™ User Guide
V-2023.12-SP2
165
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Scenario 4: When an invalid test name for bld1/test1 is given, ExecMan does
not select the given test case for the run and exits by displaying that the test is
invalid.
eman -regr_config config.emc -local_host -test bld1/test1_33
Test API and Hybrid Flows
Test API and hybrid flows also support the new test names with flags while posting data to
the database. For example:
eman testapi post -t "bld1/test1_@_temp=100_@_33" -s fail -c "test_flags:
-temp=100"
This command sets test_flags as -temp=100 in the database for the bld1/
test1_@_temp test.
An example of the hybrid flow is as follows:
tests:
- name: test1
build: bld1
run_cmd: ./run.csh;
custom_cmd: $current_dir/cusom_cmd.csh
seeds: 33, 66
flags: -temp=100, -temp=20
% cat custom_cmd.csh
#!/bin/csh
eman testapi post -t $EMAN_TEST_PATH -c "test_flags: $EMAN_TEST_FLAGS"
This command keeps test_flags as the custom value field and the original "flags" as
the value in the database. Also, $EMAN_TEST_PATH automatically uses the correct test
name to post the data.
• comp_simv: Simv location if not specified in the build block.
• run_dir: To specify the directory from where the test’s run_cmd should be executed.
The default run_dir would be total_run_time/<build>/<test>
• log_file: By default, the tests produce log file with the name <test_name>.log. You
can override this behavior by specifying the name of your custom log file. If log_file:
is not specified as a part of test run in the configuration file, you can redirect the simv
output to $$TESTCASE.log, to view pass/fail in the VC Execution Manager GUI.
• custom_cmd: To run any post-processing command or script after the test execution.
Note that custom_cmd is executed only after the test is run and the status is extracted
from the test log_file. This overrides the custom_cmd specified in the test -options:
block.
VC Execution Manager™ User Guide
V-2023.12-SP2
166
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
For example:
tests:
- name: test1
build: build1
run_cmd: test1.csh
custom_cmd: ./extract_errror_signature.csh
• debug_run_cmd: To run the test case in the debug-rerun mode. The test is executed
during the debug rerun mode only if the test fails and has debug_run_cmd specified. If
the test fails due to no_pattern_match_found, debug rerun does not happen.
The debug_args keyword should not be specified when the debug_run_cmdkeyword is
used in the test configuration.
• debug_log_file: To specify the log file for extracting the test status during the debugrerun mode. The default log file is $$TEST_NAME.log
• debug_run_dir: To specify the directory from where debug_run_cmd must be
executed. The default debug_run_dir is eman_rundir/<build>/<test>_debug
• debug_custom_cmd: To run any post-processing command or script after the test
execution in debug rerun phase. Note that, debug_custom_cmd is executed only after
the test is run and the status is extracted from the test log_file in the debug rerun
mode. This overrides debug_custom_cmd specified in the test options block.
For example:
tests:
- name: test1
build: build1
run_cmd: test1.csh
custom_cmd: custom.csh
debug_run_cmd: test1_debug.csh
debug_custom_cmd: ./debug_custom.csh
• extends: Inherit all the tags of a test block using the extends option.
• error_patterns: To define the error patterns that enables you to determine the status
of a required test. The error pattern defined for a test, takes precedence over the
error pattern that is defined globally. When ExecMan finds error_patterns inside
a test block, it honors the local error definition rather than the global definition. With
error_patterns defined in the tests block, error processing is faster as the reg run
do not have to go through the complete list of error patterns and is targeted at error
patterns in a specific tests block.
For example:
tests:
VC Execution Manager™ User Guide
V-2023.12-SP2
167
Feedback
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
- name: default_test
build: my_group/my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
debug_run_cmd: $$SIMV -cm line+cond+fsm $ntb_random
$run_log
count: 2
error_patterns:
- '.*Now playing TRACK:::fail:::my_fail:::3'
- '^Warning:::warn:::my_warn:::3'
- '^\s+1\d+89\d+ COIN:
Overpay:::warn:::overpay:::3'
-l
• save: To specify the files or directories that should be saved in cvsdepot. To specify
multiple files or directories, use a comma separated list.
• cleanup: To specify the files or directories that should be deleted after a test is run. To
specify multiple files or directories, use a comma separated list.
• merge: yes/no To merge coverage results after the test is run. The default is yes. For
tests withmerge: yes, VC Execution Manager overrides cm_dir in the command, if
provided.
• grid_opt: To mark the individual test with grid_opts defined in the
grid_setup_file. This option overrides the grid_opt defined in the test options.
• custom_cmd: To run any post-processing command or script after executing run_cmd.
This option overrides the custom_cmd specified in the test options.
• count: If the test is a random test, then the test is executed for “n” times specified for
count:. The random seeds are automatically generated and appended to the test
name with an underscore, as in test_12345.
The number specified for count: must be a positive integer. If count is 0, the test is
disabled.
Consider the following example:
variables:
random_seed: $$EMAN_RANDOM
test_name: $$TESTCASE
cm_opts: -cm line+cond+fsm
tests:
- name: random_test
run_cmd: $current_dir/my_test_script $test_name
+ntb_random_seed=$random_seed -l $run_log
count: 5
$cm_opts
This example generates five random tests in the following format:
random_test_<random_seed>
VC Execution Manager™ User Guide
V-2023.12-SP2
168
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Example,
random_test_12345
random_test_23123
random_test_46321
random_test_44122
random_test_78761
• initial_seed: To specify the seed number from which random seeding should start.
This is useful for getting repeatable results. The number specified for initial_seed:
must be a positive integer.
• seeds: A comma-separated list of specific seed values to run. You can specify multiple
seeds using the comma-separated list.
The $$EMAN_RANDOM variable is populated with individual values of the specified seeds.
Consider the following example with initial_seed:
tests:
# first group of tests
- name: random_test1
build: my_first_build
arguments: $cm_opts $ntb_random -l $run_log
count: 5
# Second group of tests
- name: random_test2
build: my_second_build
run_cmd: $current_dir/myscript $cm_opts $ntb_random -l $run_log
count: 5
initial_seed: 1000
If both count and initial_seeds are specified, then randomization increments
initial_seed until count times. If only count is specified, VC Execution Manager
creates the actual random numbers (up to 2^32).
If no count or initial_seed is specified, then the test is considered to be a nonrandom (directed) test, and is executed.
• tags: To specify a comma separated list of tags for the test. For more information, see
section Tags in the Tests Block.
• smoke: To designate that this test should be run first before the remaining tests run.
Any failure causes the regression session to terminate prematurely. The allowed values
are ‘on’ and ‘off’. By default, smoke setting is ‘off’ for a test. The normal tests are
executed only when all the smoke tests have a ‘pass’ status.
• timeout: To specify the timeout for test. The default is 1800 sec.
VC Execution Manager™ User Guide
V-2023.12-SP2
169
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• test_file: To specify a file that contains a list of test names. The name keyword is not
required when test_file is used. The file should contain one test name per line.
For example:
- test_file: test_list.txt
build: my_first_build
arguments: $cm_opts $ntb_random -l $run_log
count: 5
► %cat test_list.txt
Test1
Test2
Test3
Test4
All scripts can read the EMAN_TEST_PATH environment variable to get their generated
test results name. This is useful for tests with a repeat count. The EMAN_TEST_PATH
variable contains the following:
build_name/testname_N
where, N is the repeat number of the test. For example, for a test with count: 3:
tests:
- name: foo
count: 3
initial_seed 100
build: mybuild
…
The EMAN_TEST_PATH values for the tests are as follows:
mybuild/foo_100
mybuild/foo_101
mybuild/foo_102
The EMAN_TEST_PATH is used to name the test results in the VC Execution Manager
database, GUI, and coverage reports.
◦ group:To define test group and subgroups in a regression, specify the group option
in the tests block, as shown in the following example:
builds:
- name: my_first_build
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
tests:
- name: random_test1, random_test2, random_test3
group: G1/G2
VC Execution Manager™ User Guide
V-2023.12-SP2
170
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
build: my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
- name: seed87
group: G1
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
- name: seed90
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
tags: direct
The default test run_dir is created according to the test path. In this example, for
the random_test1 test, the default run_dir is:
<top_run_dir>/my_first_build/G1/G2/random_test1
You can inherit a test block using the extends option. When a test block is
inherited, all the options in that block are inherited. For more information about
inheritance, see section Inheritance in Builds and Tests Blocks.
For example:
tests:
- name: random_test1
group: G1/G2
build: my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
grid_opt: low
- name: random_test3
extends: my_first_build/G1/G2/random_test1
count: 3
All the options specified for the random_test1 test are applicable to the
random_test3 test as well. The random_test3 test belongs to the G1/G2group.
However, the count is overwritten with 3.
◦ priority:To define or set the priority for tests. For more information, see
Specifying Job Dependencies and Priorities on a Grid.
VC Execution Manager™ User Guide
V-2023.12-SP2
171
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Tags in the Tests Block
You can use tags in the tests block to specify different categories of tests. Use the -tags
switch in the eman command line to specify one or more comma separated tag names you
want to pick from the complete test file.
For example:
tests:
- name: seed87
build: my_second_build
run_cmd: $EMAN_HOME/examples//scripts/seed87
$current_dir/compdir/simv $run_log
tags: direct,critical
- name: seed90
build: my_first_build
arguments: $cm_opts +ntb_random_seed=90 -l $run_log
tags: direct
To run all the tests that have -tags direct in it, execute the following command:
% eman -regr_config my_config.emc -tags direct
To run only the critical tests, execute the following command:
% eman -regr_config my_config.emc -tags critical
Overriding Attributes From the Command Line
ExecMan provides the -override option to override the values of attributes specified
in the configuration file. Every test, which either extends the attribute specified in the
configuration file or defines it, is overridden by the value specified using the -override
option on the command line.
The syntax of the -override option is as follows:
eman -regr_config <config_file> -override <attribute>=<value>
For example, the -override option can be used with the count attribute as follows:
eman -regr_config basic.emc -override count=10
Here, the value of count is set to 10. This indicates that each test that extends or defines
this attribute is executed 10 times.
Auto Group With User-Defined Groups
ExecMan auto groups all tests which specifies 'count', 'seeds', or 'flags' in the tests block,
by default, when there is no user-defined group specified for the test.
VC Execution Manager™ User Guide
V-2023.12-SP2
172
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
For example, consider the following code snippet:
- name: random_test
build: build1
run_cmd: $$EMAN_SIMV -cm line+cond+fsm $ntb_random -l $run_log
count: 1
This configuration generates a random test such as the following:
/build1/random_test/random_test_<rand_seed>
You can override this default behavior by forcing the auto-test group generation of userdefined groups using the -append_auto_grp option. For example:
- name: random_test
build: build1
group: g1
run_cmd: $$EMAN_SIMV -cm line+cond+fsm $ntb_random -l $run_log
count: 1
By default, the test is created with the following name:
/build1/g1/random_test_<random_seed>
Here, g1 is the user-defined group. Using the -append_auto_grp option, ExecMan
creates the following hierarchy:
/build1/g1/random_test/random_test_<random_seed>
ExecMan also provides the following environment variable to append the auto-generated
group to user-defined groups:
setenv EMAN_APPEND_AUTO_GRP 1
Round Robin With Auto Groups
Auto groups are the groups of tests generated by seeds, count, flags statements.
Previously, all tests of a group were executed and only then the tests of another group
were executed. Now, this feature is enhanced to implement the round-robin strategy in
which the first test of each group is executed and then the second test of each group, and
so on.
Consider the following example that shows three auto groups, namely random_test1,
random_test2, and random_test3. A test in each group is executed based on the value
that is specified with the count option:
VC Execution Manager™ User Guide
V-2023.12-SP2
173
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
The first test in random_test1 is executed first, then the first test in random_test2 is
executed, and similarly for random_test3. After this, the next test in random_test1
is executed, then the next test in random_test2 is executed, and similarly for
random_test3.
Note:
The round-robin strategy is applied only within the tests of the same priority.
The strategy is applied only between auto groups independent of the group that
they belong.
Creating the Test Run Command
The test run_cmd created must follow the rule that each invocation of the run_cmd runs
the design simv once. If coverage merging is enabled, the script is responsible to provide
the correct-cm_name and -cm_dir arguments to the simv executable.
The test run cmd accesses the correct values for -cm_name and -cm_dirusing one of the
following methods:
• Execution Manager appends -cm_name <name> and -cm_dir <dir> at the end of the
run_cmdif Execution manager detects that a build generated simv is used directly to
run the test.
• Using the $EMAN_CM_NAME and $EMAN_CM_DIR environment variables available to the
script.
User-defined test scripts and builds that have a script specified in the run_cmd must be
able to accept -cm_dirand -cm_name passed by Execution Manager.
Some test scripts can be used to create multiple different test runs (for example, with
different random seeds). When ExecMan scripts are used to specify a test script that
should be run multiple times, each run is assigned a unique name, as shown in the
following example:
my_first_build/random_test1_10862
my_first_build/random_test1_84747
my_first_build/random_test1_12854
my_first_build/random_test1_69012
my_first_build/random_test1_8340
VC Execution Manager™ User Guide
V-2023.12-SP2
174
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
my_second_build/seed87
my_first_build/seed90
The test run name is generated from the build name (my_first_build or
my_second_build) and the 'test name' ('random_test1' or 'seed87'): and random seeds
if a count is provided.
Execution Manager generates random seeds (if requested) and makes them available
during runtime via the EMAN_RANDOM environment variable. VC Execution Manager uses
EMAN_TEST_PATH to uniquely identify each test run in the database and GUI, and in the
coverage reports.
Following is a sample VC Execution Manager GUI report with random tests.
Figure 24
Report With Random Tests
The test script can use this string available in the EMAN_TEST_PATH environment variable
to manage the arguments/setup that is different for each invocation of the test script.
After all the coverage data is merged, the script uses URG to automatically grade the tests
into the most useful tests to the least useful tests. Any tests that contribute to coverage are
VC Execution Manager™ User Guide
V-2023.12-SP2
175
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
written to the usefultests file. The tests that do not contribute to the coverage metrics
are not available in the usefultests file. This file is located in merge_dir for which you
can specify the location.
Specifying the Timeout Value
You can specify the timeout value for tests and builds when they are running or when they
are waiting to run. This section consists of the following subsections:
• Specifying the Running Timeout Value
• Specifying the Pending Timeout Value
Specifying the Running Timeout Value
You can specify the run timeout value for individual tests or builds in the regression
configuration file using the timeout: option. If the timeout value is set to 0, ExecMan does
not stop the running task.
Consider the following example for the scope of the timeout value of the running builds
and tests:
builds:
- name: build1
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir1/simv
run_dir: $current_dir/compdir1
timeout: 3600
- name: build2
run_cmd: $current_dir/run.csh
simv_location: $current_dir/compdir2/simv
run_dir: $current_dir/compdir2
tests:
- options:
timeout: 7200
- name: random_test1, random_test2, random_test3
build: build1
run_cmd: $$SIMV -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
- name: seed87
build: build1
run_cmd: $$SIMV -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
timeout: 3600
- name: seed90
VC Execution Manager™ User Guide
V-2023.12-SP2
176
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
build: build1
run_cmd: $$SIMV -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
In this example, note the following:
• The timeout value for build1 is considered as 3600 seconds.
• As the timeout value is not specified for build2, a default value of 1800 seconds is
considered as the timeout value.
• As timeout is specified in the options block of the test, the timeout for all the tests is
considered as 7200 seconds except for the seed87 test.
• Timeout for the seed87 test is considered as 3600 seconds as the timeout value
specified at the test level overrides the timeout value specified in the options block.
You can also specify the timeout value using the EMAN_JRUN_TIMEOUT and –jrun
options. However, specifying the timeout value using these methods are applied to
all the tests and builds defined in the regression configuration. For more details, see
EMAN_JRUN_TIMEOUT and -jrun.
Following are the different methods to specify the timeout value in the increasing order of
priority:
• Using the timeout option in test/build options
• Using the timeout option in the individual test specification
• Using the EMAN_JRUN_TIMEOUT environment variable
• Using the -jrun eman command line option
If no timeout value is specified using any of these methods, a default value of 1800 is
used.
Specifying the Pending Timeout Value
You can specify the pending timeout value for individual tests or builds in the regression
configuration file using the jpend_timeout: option. If the timeout value of a pending task
is set to 0, ExecMan does not terminate the pending task. Consider the following example
for the scope of the pending timeout value:
builds:
- name: build1
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir1/simv
run_dir: $current_dir/compdir1
jpend_timeout: 3600
- name: build2
run_cmd: $current_dir/run.csh
simv_location: $current_dir/compdir2/simv
VC Execution Manager™ User Guide
V-2023.12-SP2
177
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
run_dir: $current_dir/compdir2
tests:
- options:
jpend_timeout: 7200
- name: random_test1, random_test2, random_test3
build: build1
run_cmd: $$SIMV -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
- name: seed87
build: build1
run_cmd: $$SIMV -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
jpend_timeout: 3600
- name: seed90
build: build1
run_cmd: $$SIMV -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
In this example, note the following:
• The pending timeout value for build1 is considered as 3600 seconds.
• As the jpend_timeout value is not specified for build2, a default value of 1,209,600
seconds is considered as the pending timeout value.
• As the pending timeout value is specified in the options block of the test, the pending
timeout for all the tests is considered as 7200 seconds except for the seed87 test.
• The pending timeout value for the seed87 test is considered as 3600 seconds as the
pending timeout value specified at the test level overrides the pending timeout value
specified in the options block.
You can also specify the pending timeout value using the EMAN_JPEND_TIMEOUT and –
jpend options. However, specifying the timeout value using these options are applied
to all the tests and builds defined in the regression configuration. For more details, see
EMAN_JPEND_TIMEOUT and -jpend.
Following are the different methods to specify the pending timeout value in the increasing
order of priority:
• Using the jpend_timeout option in test/build options
• Using the jpend_timeout option in the individual test specification
• Using the EMAN_JPEND_TIMEOUT environment variable
• Using the -jpend eman command line option
VC Execution Manager™ User Guide
V-2023.12-SP2
178
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
If no pending timeout value is specified using any of these methods, a default value of
1,209,600 seconds is used.
Importing Regression Configurations
Importing regression configurations from within configurations provides the flexibility
to easily run the complete suite of tests without manually stitching the regression
configurations together. You can import regression configurations that can be run as a
standalone, that is, if a regression configuration can be run by eman it can also be imported
into another configuration.
The following is the format for importing configuration (parent_config.emc):
config_name: juke
import:
- child_config1.emc
- child_config2.emc
builds:
…
tests:
…
Note:
In case of any conflicts while you are trying to import the regression config, the
first occurrence of the instance is given priority.
For example, if a parent configuration defines build1 and child configuration defines
build1, the parent configurations build1 is run. A warning message is issued with the
information that child configuration build1 is ignored. If you need to run both of these
builds, ensure that you provide unique build names across configurations.
When VC Execution Manager encounters the import option, it parses the child
configurations. After parsing, it resolves variables for that configuration and then populates
the current namespace with the entries from the child configuration. If there is any collision
in build/test names, then parent configurations always take priority.
Inheritance in Builds and Tests Blocks
Execution Manager regression configuration supports inheritance in the build and test
blocks. This feature enables you to define a build block or test block in regression
configuration and reuse it any number of times. To enable this feature, use the extends
option in build or test block. To override any option, write that keyword in the inherited
block.
VC Execution Manager™ User Guide
V-2023.12-SP2
179
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Example for builds Inheritance:
builds:
- name: default_build
variables:
- design: jukebox.v
env:
- DENALI_HOME: something
run_cmd: vcs -sverilog $design -o simv -l $$EMAN_BUILD_NAME.log
simv: compdir/simv
run_dir: $design_dir/compdir
log_file: default_build.log
debug_run_cmd: $run_cmd –debug
debug_simv: $current_dir/debug_compdir/simv
debug_run_dir: $current_dir/compdir
cleanup: file1, file2, dir1, dir2
- name: inherited_build
extends: default_build
run_cmd: vcs -sverilog $design -o simv -l $$EMAN_BUILD_NAME.log
run_dir: $design_dir/compdir2
log_file: $$EMAN_BUILD_NAME.log
Example for tests Inheritance:
tests:
- name: default_test
build: default_build
variables:
- custom_var: custom_value
env:
- custom_env1: value1
- custom_env2: value2
run_cmd: $current_dir/test.csh
cleanup: test_file1, sub_dir1
save: $$TESTCASE.log
debug_run_cmd: $run_cmd âdebug
count: 2
- name: seed87
extends: default_build/default_test
Example for group Inheritance:
tests:
-
name: random_test1
group: G1/G2
build: my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
grid_opt: low
VC Execution Manager™ User Guide
V-2023.12-SP2
180
Feedback
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
- name: random_test3
extends: my_first_build/G1/G2/random_test1
count: 3
All the options specified for the random_test1 test are applicable to the random_test3
test as well. The random_test3 test belongs to G1/G2 group. However, count is
overwritten with 3.
Abstract Inheritance
ExecMan provides a new keyword, abstract, to let you define an abstract build/test that
you can later inherit in other builds/tests blocks with the extends keyword. If you define a
build/test block as abstract, it does not run and is used only for extending builds/tests.
You can add the abstract keyword in the emc file as follows:
abstract: yes
An example for the abstract keyword is as follows:
builds:
- name: base_build
error_patterns:
- simv not found:::fail:::no_simv:::0
abstract: yes
- name: my_first_build
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
extends: base_build
tests:
- name: base_test
tags: direct,critical
build: my_first_build
error_patterns:
- .*seed87.*:::fail:::seed87_fail:::0
- .*seed=90.*:::pass:::test_file_pass:::0
abstract: yes
- name: seed87
extends: my_first_build/base_test
run_cmd: $$EMAN_SIMV -cm line+cond+fsm
$run_log
+ntb_random_seed=87 -l
Note:
When performing abstract inheritance, you must not include the abstract
keyword in the build name.
VC Execution Manager™ User Guide
V-2023.12-SP2
181
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Normally, each test must define the build keyword. However for the abstract test, the
build keyword is optional. While inheriting the abstract test in the normal test definition,
you can reference abstract/<test_name> using the extends keyword. For example,
consider the following code snippet that shows the abstract test name as test_base. The
test_add test extends the abstract test name, that is test_base and contains the build
name as bld1.
tests:
- name: test_base
run_cmd: $$EMAN_SIMV $cm_opts $UVM_OPTs -l
$run_log +ntb_random_seed=4325 -sml
abstract: yes
- name: test_add
extends: abstract/test_base
build: bld1
Note:
You cannot inherit the abstract keyword from the extended test/build. You
need to explicitly use the abstract keyword to make a test/build as an abstract
test/build.
Configuring Rules for a Regression Run
Normally, you would run a regression in ExecMan and use the results after the regression
is complete without monitoring the whole process. However, unexpected events can result
in the failure of regression, leading to rerun the regression after the problem is fixed.
For example,
• The total number of failures in a regression are more than expected failures.
• A single regression can consume all of the resources needed by other regressions
causing those other regressions to fail.
With this feature, ExecMan enables you to avoid such unexpected events. It enables you
to configure certain rules for regression run based on various conditions, such as test
results, system status, log file size, system memory and so on.
You can specify the generalized configurable rules in a rules file (*.emr), which allows
user-defined actions to be taken based on various conditions. Thus, allowing you to
manage the regression run in a better way and helps you to use the resources optimally.
This section discusses the following topics:
• Rules for a Session
• Invoking the Rules File in the Configuration File
• Defining Rules in the Rules File
VC Execution Manager™ User Guide
V-2023.12-SP2
182
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• Sample Rules File (*.emr file)
• Precedence in the Rules File
Rules for a Session
Execution Manager enables you to define rules at session-level hierarchy. You can apply
the rules to a current session, which are mostly related to the session metrics or test
failures. You can define the following rules for a session:
• Failures of any given type (Not more than 10 failures in any category)
• A test’s log file size
• A test’s memory consumption while running (test memory not exceeding 'x' MB)
• Total runtime of a session
For example,
If the failures of a specified category is greater than 10, then you can configure eman to
send email to the specified users.
Invoking the Rules File in the Configuration File
You can reference the rules file in the regression config file for the rules to be considered
in an eman run. Use the rules_file keyword in the regression configuration file to call
(invoke) the rules file, as shown in the following example:
config_name: juke
rules_file: ./rules.emr
env:
- VCS_HOME
- EMAN_PROJECT
builds:
...
Defining Rules in the Rules File
The rules file is a YAML (Yet Another Markup Language) format file, which can be easily
read with a program or a script, but also can be read as plain text. The rules file must be
created with the .emr extension.
Syntax to create a rule in a rules file:
- name: log_file_rule
condition: (log_file_size) > (1000)
action: stop_task
VC Execution Manager™ User Guide
V-2023.12-SP2
183
Feedback
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Where,
• name is the name of a rule. See section Naming a Rule.
• condition is used to specify the condition. See section Specifying the Conditions for a
Rule.
• action is used to specify the outcome (result) when a condition is satisfied. See
section Specifying the Outcome of an Action.
Naming a Rule
You can specify any name to a rule using the -name keyword in the rules file. The
rule name can include alphanumeric characters (A-Z, a-z), period (.), hyphen (-) and
underscore(_).
Example,
- name: log_file_rule
Specifying the Conditions for a Rule
You can use the predefined variables to define a condition. The format for specifying the
condition is:
condition: (<pre-defined variable>) > (<value>)
Table 11 lists the various conditions and its corresponding predefined variable that you can
use to create rules.
The conditions are checked periodically after a certain interval, which is set to 60 seconds,
by default. You can change the default value using the EMAN_RULE_INTERVAL environment
variable.
Table 11
Conditions in a Rule
Conditions in a Rule
Predefined Variable
Value to be
Specified
Allowed Actions
log_file size greater than 'n' (log_file_size)
MB
Log file size in MB
stop_teststop_sessions
end_mailsend_digestrun
_script
debug_log_file size greater (debug_log_file_si
than 'n' MB
ze)
Debug log file size in stop_teststop_sessions
MB
end_mailsend_digestrun
test memory consumption
greater than 'n' MB
Memory consumption stop_teststop_sessions
in MB
end_mailsend_digestrun
(test_mem)
VC Execution Manager™ User Guide
V-2023.12-SP2
_user_script
_user_script
184
Feedback
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Table 11
Conditions in a Rule (Continued)
Conditions in a Rule
Value to be
Specified
Allowed Actions
total_run_time greater than (total_run_time)
‘n’ min
Runtime in min
stop_sessionsend_mailr
un_user_script
The number of tests with
(num_status=<statu
"status" (predefined or
s>)
user-defined) is more than
'n'
Number of tests
(integer)
stop_sessionsend_mailr
un_user_script
(build_num_status=<stat Number of builds
us>)
(integer)
stop_sessionsend_mailrun
_user_script
The number of builds with
"status" (predefined or
user-defined) are more
than 'n'
Predefined Variable
Specifying the Outcome of an Action
You can specify an action and its outcome using the following syntax:
action: <predefined_variable> <optional/additional parameters>
Note:
Only one action is honored for a condition.
Example,
- name: r2
condition: (total_run_time) > (1)
action: run_script ./script1.txt
action: run_script ./script2.txt
action: send_mail
In this example, only the last action, action: send_mail, is honored, although multiple
actions are specified.
Table 12 lists the different actions (outcome) and its corresponding predefined variable that
you can use to create actions.
Table 12
Actions in a Rule
Outcome of the Action
Predefined Variable
Send mail
send_mail <comma separated recipients>To
VC Execution Manager™ User Guide
V-2023.12-SP2
specify multiple recipients, add a comma separated
list of recipients. If a recipient is not specified, the
mail is sent to the current users running ExecMan.
185
Feedback
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Table 12
Actions in a Rule (Continued)
Send periodic mail (only supported for task-based
rules)
send_digest <comma separated recipients>To
Stop tests (only supported for task-based rules)
stop_test
Stop session
stop_session
Run user script
run_script <script_path> <script args>
specify multiple recipients, add a comma separated
list of recipients.
• send_mail: Sends an email when the condition of a rule is satisfied. By default, an
email is sent to the current user. To send email to multiple users, specify a comma
separated list of recipients with send_mail.
A sample email is as follows:
From: <current user>
Subject: EMAN session_am_20160218_084757 rule 'num_failures' condition
is met
Body:
Eman Version: ExecMan Version N-2017.12, Copyright (c) 1991-2015 by
Synopsys Inc.
Project
: myproject
Config
: rjuke
Session
: session_am_20160218_084757
Rules File
: /remote/vgrnd73/am/eman_regr_2014.12/nrtests/rules/smaller_units_test/rules.emr
Rule Definition:
action: send_mail am
condition: (num_status=fail) > (3)
name: num_failures
From,
Execution Manager
The total number of mails sent to the recipients are restricted to a value of 10, by
default. This includes the mails sent for both send_mail and send_digest actions. You
can change the default limit using the EMAN_MAIL_ACTION_LIMIT environment variable.
When the mail limit is reached, ExecMan stops sending the mails and displays the
following message in the last mail that is sent:
Please Note: Mail limit (2) exceeded. No more emails will be sent for
this session.
VC Execution Manager™ User Guide
V-2023.12-SP2
186
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• send_digest: Sends email containing the summary of rules at periodic intervals. This
action is applicable only to the test related rules such as, log file size, debug log file
size, and test memory.
The default interval at which the mails are sent is 60 sec. You can change the default
value using the EMAN_RULES_DIGEST_INTERVAL environment variable.
For example,
% setenv EMAN_RULES_DIGEST_INTERVAL 600
After every interval, eman checks if any condition of a rule is satisfied for any of
the tests. If any rule is met, eman sends a mail to the current user or the specified
recipients. The mail contains the summary of rules and the tests for which the
conditions are met during that interval.
If no conditions are satisfied during that interval, then the mail is not sent.
For example, debug_log_file_size rule and test_mem rule are specified in the
rules.emr file.
At the end of the first interval, if the test_mem rule is satisfied for 8 tests, a mail is sent
containing information, as shown in the following sample mail.
A sample mail is as follows:
Subject: EMAN session_am_20160218_084757 Rules digest
Body:
Eman Version: ExecMan Version N-2017.12, Copyright (c) 1991-2015 by
Synopsys Inc.
Project
: myproject
Config
: rjuke
Session
: session_am_20160218_084757
Rules File
: /remote/vgrnd73/am/eman_regr_2014.12/nrtests/rules/smaller_units_test/rules.emr
Rule Definition:
action: send_digest
condition: (test_mem) > (1000)
name: test_mem
Rule 'test_mem' condition is met for the following tests:
my_first_build/random_test1_2067966844
my_first_build/random_test1_3784490649
my_first_build/random_test1_3440668946
my_first_build/random_test1_3878960694
my_first_build/seed90
my_first_build/seed87
my_first_build/random_test1_246716596
my_first_build/short_log
VC Execution Manager™ User Guide
V-2023.12-SP2
187
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
From,
Execution Manager
If no rules are satisfied in the next few intervals, then no mail is sent to the recipients.
Later, if the debug_log_file_size rule is satisfied for 1 test and test_mem rule is also
satisfied for 1 more test, the mail is sent containing the information about both the rules
and tests for which the rules are satisfied in this interval only.
A sample mail is as follows:
Subject: EMAN session_am_20160218_084757 Rules digest
Body:
Eman Version: ExecMan Version N-2017.12, Copyright (c) 1991-2015 by
Synopsys Inc.
Project
: myproject
Config
: rjuke
Session
: session_am_20160218_084757
Rules File
: /remote/vgrnd73/am/eman_regr_2014.12/nrtests/rules/smaller_units_test/rules.emr
Rule Definition:
action: send_digest am
condition: (debug_log_file_size) > (4)
name: dbg_log_file_rule
Rule 'dbg_log_file_rule' condition is met for the following tests:
my_first_build/random_test1_2067966844
Rule Definition:
action: send_digest
condition: (test_mem) > (1000)
name: test_mem
Rule 'test_mem' condition is met for the following tests:
my_first_build/random_test1_2067966844
From,
Execution Manager
The total number of mails sent is restricted to a value of 10, by default. This includes
the mails sent for both send_mail and send_digest actions. You can change the
default value using the EMAN_MAIL_ACTION_LIMIT environment variable.
When the mail limit is reached, ExecMan stops sending the mails and displays a
message in the last mail.
VC Execution Manager™ User Guide
V-2023.12-SP2
188
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
For example, the following message is displayed in the email when the mail limit (in this
case 2) is reached:
Eman Version: ExecMan Version N-2017.12, Copyright (c) 1991-2015 by
Synopsys Inc.
Project
: myproject
Config
: rjuke
Session
: session_am_20160218_084757
Rules File
: /remote/vgrnd73/am/eman_regr_2014.12/nrtests/rules/smaller_units_test/rules.emr
Rule Definition:
action: send_mail am
condition: (num_status=fail) > (3)
name: num_failures
From,
Execution Manager
Please Note: Mail limit (2) exceeded. No more emails will be sent for
this session.
• stop_test: This action is applicable only for the test-related rules. When a condition
of a rule is satisfied for any test, ExecMan stops the test immediately and displays the
status as “Stopped”.
• stop_session: This action is applicable for any rule. ExecMan stops the session when
the condition of a rule is satisfied.
• run_script User-defined scripts are executed when this action is specified. It is
mandatory to specify the script after the run_script keyword when specifying the
action. If it is not specified, then eman issues an error message.
For the test-based rules, such as log_file_size, debug_log_file_size and
test_mem, the script is executed in the test’s run_dir. If the tests are run on grid, then
this script is also run on the grid when the condition is satisfied for the test.
For the other session-level rules, such as num_status and total_run_time, the script
is executed in the current working directory and is run on a local host.
Sample Rules File (*.emr file)
The following is a sample rules file:
%cat rules.emr
session_rules:
- name: log_file_rule
condition: (log_file_size) > (1000)
action: stop_test
VC Execution Manager™ User Guide
V-2023.12-SP2
189
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
- name: debug_log_file_rule
condition: (debug_log_file_size) > (1000)
action: stop_test
- name: run_time_rule
condition: (total_run_time) > (360)
action: send_mail
- name: num_failures_rule
condition: (num_status=fail) > (50)
action: stop_session
- name: build_status_rule
condition: (build_num_status=fail) > (0)
action: stop_session
Precedence in the Rules File
• If multiple rules are defined with the same name, ExecMan considers the first rule.
For example,
% cat rules.emr
session_rules:
- name: my_rule
condition: (log_file_size) > (1000)
action: stop_test
- name: my_rule
condition: (debug_log_file_size) > (1000)
action: stop_test
In this example, ExecMan considers the first rule related to log_file_size.
• If the same condition is specified in two different rules, ExecMan considers the first
rule.
For example,
% cat rules.emr
session_rules:
- name: my_rule1
condition: (log_file_size) > (1000)
action: stop_test
- name: my_rule2
condition: (log_file_size) > (1000)
action: stop_session
In this example, my_rule1 is considered.
VC Execution Manager™ User Guide
V-2023.12-SP2
190
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Multiple rules with the similar type of conditions are allowed if the value is not the same
(that is, it is not the exact same condition).
For example,
% cat rules.emr
session_rules:
- name: my_rule1
condition: (log_file_size) > (1000)
action: send_mail
- name: my_rule2
condition: (log_file_size) > (2000)
action: stop_test
In this example, both the rules are applied during the run.
Specifying Grid Options for Individual Tests and Builds
You can specify the grid setup options for tests and builds in the synopsys_eman.setup
file under the supported grid settings. Specify the grid submit options for a grid using the
submit_opts tag.
grid:
# SGE settings
- SGE: False
setup_file: /remote/sge/default/snps/common/settings.sh
submit_opts: -P bnormal -l arch=glinux -l os_distribution=redhat -l
os_version=WS5.0
The grid submit_opts options is useful for submitting the test/build to the grid during the
run. However, if a different set of grid options are required to launch certain tests/builds
on the grid due to different resource requirements, then this can be configured in the
regression configuration file.
Note:
To find which grid job ran a test, see the Job ID column in the Resultspage. You
may also find the Job ID from the SPOOL area. For example, %grep job_id /
SPOOL/builds/logs/2228067.log + echo ' job_id: 063116995'
Following is an outline of how you can set up the grid for regression runs:
1. Defining grid options in the setup file
Define the required grid options in the setup file using the grid_opts_setup tag.
VC Execution Manager™ User Guide
V-2023.12-SP2
191
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Note:
The grid_opts_setup option must be aligned properly.
For example:
grid:
# SGE settings
- SGE: True
setup_file: /remote/sge/default/snps/common/settings.sh
submit_opts: -P bnormal -l arch=glinux -l os_distribution=redhat -l os_ver
sion=WS5.0
grid_opts_setup:
high_priority: -P bhigh –l arch=glinux –l os_distribution=redhat –l os_vers
ion=WS5.0
low_priority: -P blow –l arch=glinux –l os_distribution=redhat –l os_versio
n=WS5.0
In this example, the submit_opts tag denotes the default submit options for the grid.
Additional submit options should be defined under grid_opts_setup. Each set of
additional submit options defined under grid_opts_setup has a label associated with it.
You can label the grid_opts names using alphanumeric characters and underscore. Also,
“default” is a reserved grid_opt label and cannot be used.
It is mandatory to specify the submit_opts tag for the selected grid. These are considered
as the default submit options. If a test/build is not tagged with the defined grid opts, the
test/build is submitted to the grid using the default submit_opts.
2. Marking tests/builds with the additional grid submit options
In the regression configuration, you can mark individual tests or builds with grid_opts
defined in the grid_setup_file using the grid_opt keyword in the test/build
specification.
The label specified for grid_opt is deduced from the setup file and the test/build is
submitted to the selected grid using these submit opts. If a test/build does not have the
grid_opt keyword, it is submitted using the default submit_opts.
Example:
grid_setup_file: ./eman_grid.setup
builds:
- name: my_first_build
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
tests:
- name: random_test1, random_test2, random_test3
build: my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
VC Execution Manager™ User Guide
V-2023.12-SP2
192
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
grid_opt: high_priority
- name: seed87
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
grid_opt: low_priority
- name: seed90
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
grid_opt: low_priority
- test_file: test_file
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
In this example, note the following:
• The tests, random_test1, random_test2 and random_test3 are submitted using the
submit options specified for grid_opt with “high_priority”
• The tests, seed87 and seed90 are submitted using the submit options specified for
grid_opt with low_priority.
• The build, my_first_build and all the tests specified in the “test_file” do not have
grid_opt in the specification. So, they are submitted using the default submit options,
that is, the submit options specified using the submit_opts option in the setup file.
The grid_opt keyword can also be used at a global level for build/test under the options
block. When specified at a global level, that is, under the build/test -options, all the tests/
builds are submitted using the global-level grid_opt submit options.
Note that the individual test/ build level options override the global test/build grid_opt.
Consider the following example:
builds:
- name: my_first_build
run_cmd: vcs -sverilog $cm_opts jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
tests:
- options:
grid_opt: high_priority
- name: random_test1, random_test2, random_test3
build: my_first_build
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
- name: seed87
build: my_first_build
VC Execution Manager™ User Guide
V-2023.12-SP2
193
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
arguments: -cm line+cond+fsm +ntb_random_seed=87 -l $run_log
tags: direct,critical
grid _opt: low_priority
- name: seed90
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
grid_opt: low_priority
- test_file: test_file
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=90 -l $run_log
In this example, note the following:
• All the tests defined in the tests block are submitted to the selected grid using
high_priority submit options except for seed87 and seed90.
• The tests, seed87 and seed90 are submitted to the selected grid using the
“low_priority” submit options.
The build does not have either global or individual grid_opt specified and therefore, the
tests are submitted using the default submit_options.
Grid Setup File
In addition to specifying grid_opts_setup in the default synopsys_eman.setup
file, you can also specify the grid set up option in the grid_setup_file file. The
grid_setup_file has the same format as that of the default synopsys_eman.setup file.
However, only “grid” settings can be given in the grid_setup_file.
For example:
grid:
# LSF settings
- LSF: True
setup_file: /remote/lsf/cells/snps/conf/profile.lsf
submit_opts: -q bnormal -R "rusage[mem=1000] && arch==glinux &&
os_version==WS5_0 && os_distribution==redhat"
grid_opts_setup:
high_memory: -q bnormal -R "rusage[mem=3000] && arch==glinux &&
os_version==WS5_0 && os_distribution==redhat"
low_memory: -q bnormal -R "rusage[mem=100] && arch==glinux &&
os_version==WS5_0 && os_distribution==redhat"
This grid_setup_file can be specified in the regression configuration file using the
grid_setup_file tag. If grid_setup_file is specified in the regression configuration, it
takes precedence over the default setup file.
VC Execution Manager™ User Guide
V-2023.12-SP2
194
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Grid Options in the ExecMan Configuration File
ExecMan enables you to specify grid options directly in its configuration file. To specify grid
options in the ExecMan configuration file, group all grid options in the grid_opts_setup
block. The grid options in the grid_opts_setup block must be properly aligned
with leading spaces. The options must be a list of key/value pair in the YAML format.
Each grid option must start with a single hyphen '-'. For example, use the following
grid_opts_setup block in the ExecMan configuration file to specify grid options:
grid_opts_setup:
- os_5: -R "rusage[me==3000]&& os_version==wS5_0 &&
os_distribution=redhat && arch=glinux"
- os_6: -q bnormal -R "rusage[mem=1000] && os_minor==6_6"
Note:
If the grid_opts_setup block is not specified in the ExecMan configuration
file, ExecMan considers grid options from the default synopsys_eman.setup
file from depot. If you overwrite the synopsys_eman.setup file, then ExecMan
considers the overwritten setup file. For details on the priority in the setup files,
see the Priority in the Setup Files section.
Limiting Nodes per grid_opts
ExecMan enables you to limit nodes per grid_opts when the session is already running
using the adjust_nodes command. ExecMan also enables you to limit nodes per
grid_opts from the configuration (.emc) file. For this, modify the grid_opts_setup
section in the configuration file as follows:
grid_opts_setup:
<GRID_OPTS>:
submit_opts: <submit options>
nodes: <number>
For example:
grid_opts_setup:
high:
submit_opts: -queue vnc run -p high
nodes: 2
low:
submit_opts: -queue vnc run -p low
nodes: 3
Note:
The grid_opts_setup section in the configuration file still supports the
following previous-style definition:
grid_opts_setup:
high: -queue vnc run -p high
VC Execution Manager™ User Guide
V-2023.12-SP2
195
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
You might define <submit options>independently in a setup file. Therefore, it is not
required to define submit_opts in the .emc file.
Limiting Total Number of Grid Nodes
As explained in the previous section, ExecMan allows you to specify grid nodes for builds
and tests using the nodes keyword in the .emc file. Also, ExecMan allows you to specify
maximum grid nodes for worker nodes using the -nodes option. A maximum limit is
applied to each worker node and if you use grid_opts, actual nodes are multiplied by
the number of distinct grid_opts, which might increase the number of grid nodes. To
limit the total number of nodes on a grid that a session is using at any given time, use the
-tot_nodes <number> switch.
When the -tot_nodes <number> switch is used, ExecMan automatically activates the
-noperf option to enable a worker to exit after processing a single task and thereby,
to free the grid slot. A new worker is launched on the grid if there are more tasks in the
queue to be executed. This new worker waits in the grid queue until it gets a free slot. This
way, other higher priority jobs can run on the grid as the worker frees up the slots.
Priority in the Setup Files
You can specify the grid_opts_setup option using one of the following methods (in
increasing order of priority):
1. Using the default setup file:$EMAN_HOME/admin/synopsys_eman.setup
2. Using the grid_setup_file keyword in the regression configuration
3. Using the EMAN_SETUP_FILE environment variable
Note:
If you do not have access to the synopsys_eman.setup file, you can use
the grid_setup_file keyword for adding the grid settings. This overrides
the grid settings in the synopsys_eman.setup file.
Priority of the grid submit options
It is mandatory to specify the default submit_opt for the grid in the grid_setup_file.
These default submit_opts can be overridden using one of the following methods in the
increasing order of priority:
• Specifying grid_opt under build/test options
• Specifying grid_opt for individual test/build
• Setting submit_opts using the EMAN_SUBMIT_OPTS environment variable
• Using the –sub_optcommand-line option
VC Execution Manager™ User Guide
V-2023.12-SP2
196
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
This means that the default submit_opts are overridden by the grid_opt specified in
test/build options, which in turn is overridden by the individual build/test grid_opt. The
EMAN_SUBMIT_OPTS environment variable takes priority over any grid_opt specified in
the regression configuration. The -submit_opts command line option precedes all other
methods of specifying grid submit_opts.
If you want to ignore all instances of grid_opt in the regression config, use theignore_grid_opt command line option. When this command line option is used, all the
tests are submitted using the default submit_opts for the selected grid.
Specifying Job Dependencies and Priorities on a Grid
You can generalize the job submission process on a grid and handle dependent
submission of builds and tests using the priority keyword. When the priority is set for
builds and tests, the priorities are resolved separately and the builds are always executed
before the tests, unless the -test_only option is specified in the command line.
Based on the priorities set for builds/tests in the regression configuration file, ExecMan
submits the jobs accordingly. The submission process ensures that the dependent jobs
are submitted immediately without waiting for other jobs to be completed.
VC Execution Manager™ User Guide
V-2023.12-SP2
197
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
The sample job submission flow with dependencies is as shown in the following figure:
Figure 25
Job Submission Flow When the Dependency is Set
In the job submission flow that is derived from a regression config, the dependencies are
set as follows:
• The builds with the same priority are always submitted together.
• Tests that belong to the same build and that have the same priority are submitted to the
grid immediately after the build submission that it is dependent on, is completed.
• The tests with same priority can be dependent on either a build or a test. However, a
build can only be dependent on another build.
• Coverage merge, if enabled using the -merge_dir option, is submitted after all the
tests are executed and completed.
VC Execution Manager™ User Guide
V-2023.12-SP2
198
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
• If the debug-rerun mode is enabled, the debug builds and debug tests are submitted
after the merge job is completed. The priorities that are set for builds and tests are not
considered while running debug builds and debug tests. That is, all debug builds are
submitted together and all debug tests are submitted together.
Setting the Priority for Builds
To define or set the priority for builds, use the priority keyword while defining the builds
in a regression configuration file.
Consider the following example:
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build2
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build3
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 2
tests:
name: test1
build: build1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
name: test2
extends: build1/test1
name: test3
extends: build1/test1
name: test4
build: build2
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
name: test5
build: build3
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
The builds with the same priority are submitted to the grid in parallel.
Note:
The builds are executed before the tests, unless -test_only is specified.
The job submission flow for this example happens as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
199
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
In this example:
• The builds, build1 and build2 are executed first in parallel.
• The tests test1, test2, and test3 are run immediately after build1.
• test4 is run immediately after build2
• build3 is run when both build1 and build2 are completed, followed by test5.
Setting Run Dependency for Builds
You can set or change the run dependency for a build in a regression configuration file.
The dependent job is submitted to the grid based on the status of the parent build. To set
the dependency, use the run_dependency option in the builds block. By default, the run
dependency is set to always.
Syntax:
builds:
options:
run_dependency: <always/any_pass/all_pass>
You can specify one of the following inputs for run_dependency:
• always: Executes the dependent build irrespective of the status of the parent builds.
This is the default behavior.
• any_pass: Executes the dependent build if at least one of the parent build passes.
• all_pass: Executes the dependent build only when all the parent builds pass.
VC Execution Manager™ User Guide
V-2023.12-SP2
200
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Setting Run Dependency for Builds Using Scripts
Instead of using the job submission status to set the dependency, you can also specify a
script to determine if a dependent build should be scheduled or not.
To specify the script, use the run_dependency_script option in the builds block.
Syntax:
builds:
options:
run_dependency_script $current_dir/<script.csh>
The exit status of the run_dependency script is used to decide if the dependent builds
should be run. If the exit status is zero, only then the dependent builds are scheduled.
The run_dependency_script takes higher priority over run_dependency, if both are
specified in the builds block.
Setting the Priority for Tests
You can set the priority for tests similar to how you set the priority for builds. Use the
priority keyword while defining the tests in a regression configuration file.
Consider the following example:
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build2
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build3
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 2
tests:
name: test1
build: build1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test2
extends: build1/test1
priority: 1
name: test3
extends: build1/test1
priority: 2
name: test4
build: build2
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test5
VC Execution Manager™ User Guide
V-2023.12-SP2
201
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
build: build3
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
By default, the tests priority is resolved for tests corresponding to each build separately.
Therefore, the tests with the same priority and corresponding to the same build are
submitted to the grid in parallel.
The job submission flow for this example happens as shown in the following figure:
In this example:
• build1 and build2 are run first in parallel.
• The tests test1 and test2 are run immediately after build1 is completed, followed by
test3.
• test4 is run immediately after build2
• build3 is run when both build1 and build2 are completed, followed by test5.
Setting the Flattened Test Priority
In some scenarios, you might want to run tests based on the priority set, irrespective of the
builds that these tests belong to.
To set the flattened test priority, use the flat_priority keyword in the tests block.
Syntax:
tests:
options:
flat_priority: True
VC Execution Manager™ User Guide
V-2023.12-SP2
202
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
When you specify flat_priority, all the tests with the same priority (irrespective of
the build they belong to) are submitted to the grid. The tests with the same priority are
executed after the execution of all the builds with the same priority.
Consider the following example:
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build2
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build3
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 2
tests:
options:
flat_priority: True
name: test1
build: build1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test2
extends: build1/test1
priority: 1
name: test3
extends: build1/test1
priority: 2
name: test4
build: build2
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test5
build: build3
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
The job submission flow for this example happens as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
203
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Setting Run Dependency for Tests
You can set or change the run dependency for a test in a regression configuration file.
The dependent job is submitted to the grid based on the status of the parent test. To set
the dependency, use the run_dependency option in the tests block. By default, the run
dependency is set to always.
Syntax:
tests:
options:
run_dependency: <always/any_pass/all_pass>
You can specify one of the following inputs for run_dependency:
• always: Executes the dependent test irrespective of the status of the parent tests. This
is the default behavior.
• any_pass: Executes the dependent test if at least one of the parent build passes.
• all_pass: Executes the dependent build only when all the parent tests pass.
VC Execution Manager™ User Guide
V-2023.12-SP2
204
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Note that the following exceptions with respect to the default behavior are not configurable
using the run_dependency keyword:
• If the tests with the same priority are dependent on a build, these are executed only if
the build passes.
• If the tests with the same priority are dependent on a smoke test node, these are
executed only if all the smoke tests pass.
Setting Run Dependency for Tests Using Scripts
Instead of using the job submission status to set the dependency, you can also specify a
script to determine if the dependent tests of the same priority should be scheduled.
To specify the script, use the run_dependency_script option in the test options.
For example:
tests:
options:
run_dependency_script $current_dir/script.csh
The exit status of the run_dependency script is used to decide if the dependent tests of
the same priority must be run. If the exit status is zero, only then the dependent tests of
the same priority is scheduled.
Note:
The run_dependency_script option is given priority over run_dependency, if
both options are specified in the test options.
Priority in the Configuration File
This sections describes how the priority is set by Execution Manager:
• The value specified for setting the priority must be a positive integer. If any value other
than a positive integer is specified, then ExecMan issues an error message.
• The lower the value, then higher is the priority. For example, a test with priority 1 is run
first while, a test with a priority value 5 is run later.
• If the priority is not specified, then these builds/tests are executed with the lowest
priority.
For example:
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
name: build2
VC Execution Manager™ User Guide
V-2023.12-SP2
205
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
tests:
name: test1
build: build1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test2
extends: build1/test1
name: test3
build: build2
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
In this example, build2 is given the least priority and is executed after build1.
Similarly, test2 is given the least priority and is executed after test1 and test2.
Priority Set on Smoke Tests
If the smoke keyword is enabled when the priority is set for other tests, then the smoke
tests are given the highest priority. All the smoke tests corresponding to a build are run
before any other tests in a build are executed.
Consider the following example,
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
tests:
name: test1
build: build1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test2
extends: build1/test1
smoke: on
name: test3
extends: build1/test1
priority: 2
In this example, test2 is considered as a smoke test and executed before test1:, as
shown in the following job submission:
VC Execution Manager™ User Guide
V-2023.12-SP2
206
Chapter 5: VC Execution Manager Configuration File
Advanced Blocks and Options of a Configuration File
Feedback
Setting the Priority for Groups
To submit tests/builds based in groups, use the priority keyword as shown in the
following example:
builds:
name: build1
run_cmd: $current_dir/run_build.csh $$EMAN_BUILD_NAME
priority: 1
tests:
name: test1
build: build1
group: G1
run_cmd: $current_dir/run_test.csh $$EMAN_TEST_NAME
priority: 1
name: test2
extends: build1/G1/test1
group: G2
priority: 2
name: test3
extends: build1/G1/test1
VC Execution Manager™ User Guide
V-2023.12-SP2
207
Chapter 5: VC Execution Manager Configuration File
Setting Grid Options Dynamically
Feedback
group: G2
priority: 2
Setting Grid Options Dynamically
ExecMan allows you to dynamically set grid options for tests or builds using the
preschedule_cmd field. The preschedule_cmd field can be added in tests and builds
blocks of a configuration file. The field accepts a script to run for each test or build
instance before test or build scheduling starts.
The script sets options for a grid command dynamically for a specific test or build or debug
command using the following eman command:
eman data set_grid_opts -grid_opts "<grid_options>"
[-tag grid_opt_tag]
The script might use any of ExecMan environment variables.
Note:
To generate the log files of the preschedule command, set the
EMAN_PRESCHEDULE_LOG environment variable to 1 as follows:
setenv EMAN_PRESCHEDULE_LOG 1
Once the above environment variable is enabled, the log files are generated at
the following locations: spool/tests/preschedule/<Result_id>.log spool/builds/
preschedule/<Result_id>.log
Following is an example of the preschedule_cmd field in builds and tests blocks of a
configuration file:
builds:
name: build1
run_cmd: ./comp.csh
name: build2
run_cmd: ./comp2.csh
preschedule_cmd: $current_dir/presched_script.csh
tests:
name: test1
run_cmd: run_cmd.csh
build: build1
count: 5
preschedule_cmd: $current_dir/presched_script.csh
name:test2
run_cmd: run_cmd.csh
build: build2
count: 2
VC Execution Manager™ User Guide
V-2023.12-SP2
208
Chapter 5: VC Execution Manager Configuration File
A Sample Configuration File With Advanced Options and Keywords
Feedback
preschedule_cmd: $current_dir/presched_script2.csh
presched_script.csh:
if ($IS_BUILD)
eman data set_grid_opts -tag build_grid_tag -grid_opts “$GRID_OPT
+CompileLicense”
else
eman data set_grid_opts grid_opts “$GRID_OPT +RuntimeLicense”
If -tag is not used, ExecMan automatically generates and assigns a grid option tag for the
current build/test.
A Sample Configuration File With Advanced Options and
Keywords
The following is an example test configuration of jukebox.v. The design and its HVP plan
are located in the compdir directory and the design is compiled in that location.
config_name: simple
env:
- VCS_HOME
- EMAN_PROJECT
- vcs: $VCS_HOME/bin/vcs
- cm_opts: -cm line+cond+fsm
- ntb_random: +ntb_random_seed=$$EMAN_RANDOM
- current_dir: $PWD
- run_log: $$TESTCASE.log
builds:
- name: my_first_build
run_cmd: cd $current_dir/compdir; vcs -sverilog
$cm_opts jukebox.v -o simv
$current_dir/compdir/simv
tests:
# Example configuration for running a random test with various seeds
- name: random_test1
build: my_first_build
run_cmd: $$SIMV $cm_opts $ntb_random -l $run_log
count: 5
# Example configuration for running a test with external script
- name: seed87
run_cmd: $EMAN_HOME/examples/quickstart/test.csh
merge: no
# Example configuration for running a directed test
- name: seed90
VC Execution Manager™ User Guide
V-2023.12-SP2
209
Chapter 5: VC Execution Manager Configuration File
Setting Up Advanced Configuration Options Using Verdi
Feedback
build: my_first_build
run_cmd: $$SIMV $cm_opts +ntb_random_seed=90 -l $run_log
Using this sample configuration file enables you perform the following typical tasks:
• Specify tests by script name/simv location and the arguments
• Filter which tests to run
• Easily use automatically generated graded test lists
• Automate the merging of coverage data for passed tests.
• Automate the removal of tests that does not contribute to coverage.
• Automate the tracking of test results (pass/fail) in the VC Execution Manager GUI
interface.
• Dump plain text test pass/fail information
• Run tests with random or pseudo random seeds
• Provide a link from the ExecMan GUI to a generated HTML coverage report.
• Back-annotate pass/fail results in the HVP plan.
Build information can be either the build name[build:] or the compile time simv
location[comp_simv:] or both. You can also specify any additional arguments that need
to be passed to the simv as argument.
One test script might be used to run multiple tests. For example, the same test script
taking different test names as input (and running them). By default, all the tests under the
configuration are run. However, you can run selective tests through various filters. You can
also create custom filter files, if required.
Setting Up Advanced Configuration Options Using Verdi
As discussed in the section Running Regressions Using Verdi Coverage, you can also
setup and run regressions in Verdi Coverage.
VC Execution Manager™ User Guide
V-2023.12-SP2
210
Chapter 5: VC Execution Manager Configuration File
Setting Up Advanced Configuration Options Using Verdi
Feedback
To setup and run regressions in Verdi Coverage, perform the following steps:
1. Invoke Verdi Coverage using the following command:
% verdi –cov
2. To invoke VC Execution Manager from Verdi Coverage, click Run Tests from the Tools
menu, as shown in the following figure:
Figure 26
Run Tests Options
3. The Run Tests dialog box opens, which enables you to specify VC Execution Manager
options.
VC Execution Manager™ User Guide
V-2023.12-SP2
211
Chapter 5: VC Execution Manager Configuration File
Setting Up Advanced Configuration Options Using Verdi
Feedback
Select the Advanced tab in the Run Tests dialog box to specify advanced configuration
options, as shown in Figure 27:
Figure 27
Advanced Setup Options in Verdi Coverage
Table 13 provides the description of the fields available in the Advanced tab.
Table 13
Advanced Tab Field Descriptions
Field
Description
Tests Filter
Enables you to specify a comma-separated list of tests to be
run.
Tags Filter
Enables you to specify a comma-separated list of tags. Only
tests containing specified tags are run.
Arguments Filter
Enables you to specify an argument name (only one name can
be specified). Only tests containing that argument are run.
Test Filter File
Enables you to specify a file containing
build_name/test_name definitions (one per line). Only
specified tests are run.
Test Arguments
Enables you to specify any additional runtime arguments.
Arguments are appended after every test's argument.
VC Execution Manager™ User Guide
V-2023.12-SP2
212
Chapter 5: VC Execution Manager Configuration File
Common Errors in the Configuration File
Table 13
Feedback
Advanced Tab Field Descriptions (Continued)
Field
Description
Additional eman Command Flags Enables you to specify any additional eman command flags
not supported by the Run Tests dialog box. Use eman -h to
get a full list of eman commands.
Output File for eman Run
The name of the eman run log file. This defaults to
emanRunOutput.log in the current directory.
Common Errors in the Configuration File
Understanding common errors in the configuration file can help you to overcome
unexpected results. When you know which errors to look for, it becomes easier to reach
the coverage closure faster. The following two errors might occur when you write your
configuration file:
1. Indentation Missing
Proper indentation is required to group commands in blocks in the YAML file. For
example, consider the following builds block:
In the figure above, the red underlined command, simv_location, shows that proper
indentation is missing and it gives the following error message:
2. Space Missing After Colon
The YAML syntax requires that a space must follow the colon (:) to define a key/value
pair. For example, consider the following builds block:
VC Execution Manager™ User Guide
V-2023.12-SP2
213
Chapter 5: VC Execution Manager Configuration File
Common Errors in the Configuration File
Feedback
In the figure above, the red underlined text, :, shows that a space is missing after the
colon and it gives the following error message:
Note:
The line number mentioned in the error message might not be the line
with the real issue. Therefore, check around the error line if you do not see
anything incorrect in the reported line.
3. Unknown Errors
Unknown errors are mostly YAML-parser-related errors, which are caused by a
malformed YAML. If an unknown error appears before starting the execution of builds/
tests, then review the regression configuration file for a line that does not comply with
the YAML format.
Examples of the regression configuration file with the proper YAML format are available
at the following location:
$EMAN_HOME/examples
If an error appears in the middle of the run, that is, when builds/tests are being
executed then it is not due to a parser error. Such error is mostly caused by some
unknown environment or by the absence of any resource. In this case, send a snippet
VC Execution Manager™ User Guide
V-2023.12-SP2
214
Chapter 5: VC Execution Manager Configuration File
Compressing or Decompressing ExecMan Log Files
Feedback
of the regression configuration along with the error that is dumped into an .err file to
the Synopsys support center as shown below:
ERROR: Got unknown Error.
-------------------------------------------------------Trace:
<path_to_error_file>/eman_T6A9U1.err
-------------------------------------------------------
Combination of the configuration file and the .err file helps to debug/determine the
error faster.
Compressing or Decompressing ExecMan Log Files
ExecMan enables you to compress or decompress the log file, $EMAN_LOG_FILE. To
enable this feature, use the custom_cmd option in the configuration file. The option
supports various compressing algorithms. If no algorithm is provided, ExecMan considers
gzip as the default algorithm. The following is the list of common compressing algorithms
and their suffix:
• Zip: .zip
• Gzip: .gz
• Bzip2: .bz2
• Compress: .Z
• Xz: .xz
Here is the syntax of the custom_cmd option:
- name: default_build
variables:
- design: jukebox.v
run_cmd: vcs -sverilog $cm_opts $design -o foo -l
$$EMAN_BUILD_NAME.log
simv: $design_dir/compdir/foo
run_dir: $design_dir/compdir
custom_cmd: ${EMAN_HOME}/scripts/compress_log.sh gzip
save: $$EMAN_BUILD_NAME.log
If a log file is compressed and you click the log hyperlink, ExecMan displays a dialog box
to confirm whether you want to decompress the log file as shown in the figure below:
VC Execution Manager™ User Guide
V-2023.12-SP2
215
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
Note that this decompress behavior is supported by the Verdi interface and not by the Web
UI.
If you click Yes on the dialog box, ExecMan recognizes the suffix of a log file and uses
a decompressing algorithm based on its suffix. ExecMan then freezes the GUI till the
algorithm is completed and opens the log file for further processing.
ExecMan temporarily stores a decompressed log file in the same directory where the
compressed file is stored. ExecMan derives the name of the decompressed log file as
follows: xxx.{username}.log
Reference Finder
The Reference Finder feature allows connecting ExecMan to any source control. For any
failed test, the feature allows finding the latest changelist in which this test passed and
uses it as a reference test.
This section consists of the following subsections:
• Defining the Reference Finder in the EMC File
• Alternative Fields for Reference Builds and their Tests
• Usage Example
• Integrating the Reference Finder Flow Into the ExecMan Flow
• GUI Updates
VC Execution Manager™ User Guide
V-2023.12-SP2
216
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
Defining the Reference Finder in the EMC File
A reference finder is defined under the reference_finder block. You can define one or
more reference finder. An example of the reference_finder block is as follows:
reference_finder:
- name: git_rf
init: $current_dir/init.sh
list_cls: $current_dir/list_cls.sh
load_cl: $current_dir/load_cl .sh
no_ref_work_dir: $current_dir/git_repo
where,
• name is the name of the reference finder.
• init is an optional field in which you can specify a script or command to initialize the
reference finder. If this command is defined, it is executed only once when you start
using the reference finder.
The value of init can be either a string or a dictionary. If it is a string, the string is
treated as a run command for the initialization. In this case, a default timeout of 900
seconds is used, and the output of this script is saved into a log file with the default
name as init.log under the work_dir directory.
An example of the init field is as follows:
init:
run_cmd: $current_dir/init.sh
timeout: 900
log_file: init
where, timeout and log_file fields are optional.
• list_cls is used to specify a script or command to get the list of changelist IDs. If
this command is defined, it is executed once at the beginning to allow loading these
changelists later. After the script is executed, its log file is parsed for getting the
changelist IDs.
The value of list_cls can be either a string or a dictionary. If it is a string, the string
is treated as a run command for the initialization. In this case, a default timeout of 900
seconds is used, and the output of this script is saved into a log file with the default
name as list_cls.log under the work_dir directory.
An example of the list_cls field is as follows:
list_cls:
run_cmd: $current_dir/list_cls.sh
timeout: 900
log_file: list_cls
VC Execution Manager™ User Guide
V-2023.12-SP2
217
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
where, timeout and log_file fields are optional.
• load_cl is used to specify a script or command that defines how to load a specific
changelist. It is called every time a changelist is required. The required changelist is
passed by the EMAN_REF_FIND_CL variable. Every time it is called, EMAN_REF_FIND_CL
gets another ID from the list of IDs returned by the list_cls field. The command
creates a sub folder under the folder specified by work_dir (which is available
through the variable, EMAN_REF_FIND_WORK_DIR) and with a name which is
the same as the changelist ID. For example, the command creates the folder
$EMAN_REF_FIND_WORK_DIR/$EMAN_REF_FIND_CL and populate it using the source
control which is in use.
The value of load_cl can be either a string or a dictionary. If it is a string, the string is
treated as a run command for the initialization. In this case, a default timeout of 900
seconds is used, and the output of this script is saved into a log file with the default
name as load_cl_CL.log under the work_dir directory. Here, CL is the changelist ID.
An example of the list_cls field is as follows:
load_cl:
run_cmd: $current_dir/load_cl.sh
timeout: 900
log_file: load_cl
where, timeout and log_file fields are optional.
• work_dir is an optional field that the folder under which all the sandbox folders of all
the required change lists are stored. If this field is omitted, the following default is used:
$EMAN_TOP_RUN_DIR/reference_finder/$EMAN_REF_FIND_ID
• disable is an optional field to disable the reference finder feature. To disable the
reference finder feature, set the value of this field to true.
• no_ref_work_dir is an optional field and it replaces $ref_work_dir in the build block
when used for building the current version. The default value which is used when this
field is ommitted is ".".
Alternative Fields for Reference Builds and their Tests
Some of the fields in the builds/tests section have alternatives for the reference builds and
their tests respectively.These alternative fields, if defined, are used for building reference
builds and their tests instead of the original fields. If these fields are not defined, the
original fields are used.
VC Execution Manager™ User Guide
V-2023.12-SP2
218
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
The following table lists the alternative fields for reference builds and their tests:
Table 14
Alternative Fields for Reference Builds and Their Tests
Original Field
Reference Alternative Field
The Builds Section
run_cmd
ref_run_cmd
debug_run_cmd
ref_debug_run_cmd
custom_cmd
ref_custom_cmd
debug_custom_cmd
ref_debug_custom_cmd
run_dir
ref_run_dir
debug_run_dir
ref_debug_run_dir
simv_location
ref_simv_location
debug_simv_location
ref_debug_simv_location
compile_dir
ref_compile_dir
debug_compile_dir
ref_debug_compile_dir
log_file
ref_log_file
debug_log_file
ref_debug_log_file
The tests Section
run_cmd
ref_run_cmd
debug_run_cmd
ref_debug_run_command
custom_cmd
ref_custom_cmd
debug_custom_cmd
ref_debug_custom_cmd
script
ref_script
debug_script
ref_debug_script
log_file
ref_log_file
debug_log_file
ref_debug_log_file
run_dir
ref_run_dir
VC Execution Manager™ User Guide
V-2023.12-SP2
219
Feedback
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Table 14
Alternative Fields for Reference Builds and Their Tests (Continued)
Original Field
Reference Alternative Field
debug_run_dir
ref_debug_run_dir
Usage Example
This sections shows an example of an EMC file with 4 builds (2 with seed and 2 without a
seed), 4 corresponding tests, 1 Git-based reference finder and 1 debug engine:
Example 1
EMC File: Reference Finder
config_name: rf_example
env:
-EMAN_HOME
-EMAN_PROJECT
variables:
-current_dir:$PWD
-run_log: $$TESTCASE.log
-ref_work_dir: $$EMAN_REF_FIND_CL_WORK_DIR
builds:
-name: no_seed_build1
run_cmd: $ref_work_dir/no_seed_build1.sh build
debug_run_cmd: $ref_work_dir/no_seed_build1.sh
reference_finder: git_rf
...
...
-name: seed_build1
run_cmd: $ref_work_dir/seed_build1.sh build
debug_run_cmd: $ref_work_dir/seed_build1.sh
reference_finder: git_rf
debug_build
debug_build
tests:
-name: no_seed_simul1
build: no_seed_build1
run_cmd: $$COMPILE_DIR/no_seed_simul1.sh
debug_run_cmd: $COMPILE_DIR/no_seed_simul1_debug.sh
...
...
-name: seed_simul1
build: seed_build1
run_cmd: $$COMPILE_DIR/seed_build1.sh $$EMAN_RANDOM
debug_run_cmd: $$COMPILE_DIR/seed_simul1_debug.sh
$$EMAN_RANDOM
seeds:
100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 200,
201, 202,
203, 204, 205, 206, 207, 208, 209, 300, 301,
VC Execution Manager™ User Guide
V-2023.12-SP2
220
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
302, 303, 304, 305, 306, 307, 308, 309
reference_finder:
-name: git_rf
list_cls: $current_dir/list_cls.sh
load_cl: $current_dir/load_cl.sh
no_ref_work_dir: $current_dir/git_repo
#disable: true
debug_engines:
-name: dbgeng
cmd: $current_dir/debug_engine_cmd.csh
log_file: $${EMAN_TEST_NAME}_debug_engine.log
run_dir: $PWD/dbgeng/$$EMAN_TEST_PATH
#disable: true
...
...
Integrating the Reference Finder Flow Into the ExecMan Flow
This section describes the following flows:
• ExecMan Flow
• Reference Finder Flow
ExecMan Flow
The ExecMan flow consists of normal run, classification, selection, debug run, and debug
engine. The reference finder flow is integrated into the ExecMan flow as shown here:
Figure 28
ExecMan Flow With Reference Finder
VC Execution Manager™ User Guide
V-2023.12-SP2
221
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
1. Normal Run: All the tests of the current build are executed in normal mode.
2. Classification: The tests are classified according to their logs.
3. Selection: The tests that are classified as failed are transferred to this stage. A
representative test or tests are selected from each group of failing tests with the same
type of error.
4. Debug Run: The tests that are selected as representative tests are executed in debug
mode.
5. Reference Finder: Representative tests send the reference finder module. A reference
test is found for each representative test and is re-executed in debug mode in this
stage. By default, the reference finder stage is executed right after the selection stage.
6. Debug Engine: It is executed for each representative test according to the results of
debug execution of the original test and of the reference test.
Reference Finder Flow
Each reference build is created under a build group under the same session with the
name of the changelist with a CL_ prefix. Each target test has a ref_scope property that
indicates its reference test.
Figure 29 shows the reference finder flow. Consider that there are N changelists (which
means that list_cls returns N changelist IDs). Each changelist is built using load_cl
only once at the first time it is required.
VC Execution Manager™ User Guide
V-2023.12-SP2
222
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Figure 29
Feedback
Reference Finder Flow
Here is the workflow of reference finder:
• The representative failed tests from the selection stage are initially executed in normal
mode in the N changelist.
• The passed tests are transferred to debug execution and then to the debug engine.
• The failed tests are transferred to the changelist N-1.
• The passed tests are transferred to debug execution and then to the debug engine.
• The failed tests are transferred to the changelist N-2.
• The process continues in a similar way until reaching changelist 1 or until there are no
additional failed tests.
VC Execution Manager™ User Guide
V-2023.12-SP2
223
Chapter 5: VC Execution Manager Configuration File
Reference Finder
Feedback
GUI Updates
The ExecMan GUI includes the following two options for reference finder:
• Reference Show: The Show drop-down list on the Build page contains std reference
and dbg reference options for reference finder as shown here:
Figure 30
Build Page: Reference Finder: Show Option
• Reference Column: The Reference Cl column is added in the Tests page. The column
shows the changelist ID saved as a custom value of the reference tests. This table
appears by default in the Debug Matrix layout under the Select layout drop-down
menu. Figure 31 shows an example of the Reference Cl column:
Figure 31
Tests Page: Reference Finder: Reference Cl
VC Execution Manager™ User Guide
V-2023.12-SP2
224
Feedback
6
Setting Up the Environment and Running
Regressions
This chapter explains how to set the VC Execution Manager environment variables and
run regressions; in the following sections:
• Setting Up the Environment Variables
• Running a Regression
• Running Multiple Regressions
• Viewing Running and Queued Tests
• Generating Emails
• Rerunning Regressions
• Collecting Session Data
• Automatic Debug Rerun
• Retry Mode
• Minimization of Total Regression Runtime
• Cleaning Up the Database
Setting Up the Environment Variables
It is required to set certain VC Execution Manager environment variables before you run a
regression. The section discusses the mandatory and optional environment variables and
its usage.
Mandatory Environment Variable
EMAN_PROJECT
Every run needs an associated project in the database. Use the EMAN_PROJECT
environment variable to specify the project name.
VC Execution Manager™ User Guide
V-2023.12-SP2
225
Chapter 6: Setting Up the Environment and Running Regressions
Setting Up the Environment Variables
Feedback
Usage:
% setenv EMAN_PROJECT feb_27_runs
Optional Environment Variables
EMAN_PERF_DEBUG
When the EMAN_PERF_DEBUG environment variable is set in the environment, detailed log
files are generated in the spool directory, which can be used for debugging purposes.
Otherwise, only the basic information of the node on which the jobs are running is
displayed in the log files.
The log files generated by setting the EMAN_PERF_DEBUG environment variable are
considerably larger. Unsetting the EMAN_PERF_DEBUG variable reduces the disk space used
by the log files of the VC Execution Manager run.
Usage:
%setenv EMAN_PERF_DEBUG
EMAN_WEB_SERVER
The ExecMan Web server is started on port 8000 on the machine where ExecMan is
installed, by default. You can configure the port to a different number by changing the port
setting using in the web_server option in the synopsys_eman.setup file.
The EMAN_WEB_SERVER environment variable can be used in following scenarios:
• If you want to change the base_url to another URL other than what is the default. For
example, for an installation using the default port. A typical Web URL is:
http://<eman_web_server>:<webserver_port>//eman/<project-specific
location>
The BASE_URL is http://<eman_web_server>:<webserver_port>. If
EMAN_WEB_SERVER is set to <eman_web_server>:80, then the resulting URLS for
emails generated by ExecMan and Web locations is updated to:
http://<my_eman_web_server>:80//eman/<project-specific location>
• If a foreign Web server, not installed as part of the ExecMan installation, is used. For
example, an Apache Web server already running in your site.
An additional environment variable (EMAN_USERID_IN_URL) described in the following
section details further usage.
Note:
Generally, a foreign Web server serves files from the file system, and needs
updates in the Web server configuration (httpd.conf).
VC Execution Manager™ User Guide
V-2023.12-SP2
226
Chapter 6: Setting Up the Environment and Running Regressions
Setting Up the Environment Variables
Feedback
Usage:
%setenv EMAN_WEB_SERVER <my_eman_web_server>:80
EMAN_USERID_IN_URL
This environment variable must be used in conjunction with the EMAN_WEB_SERVER
environment variable described previously. Without the EMAN_WEB_SERVER environment
variable, it has no effect.
When used, the base URL generated includes the user id. For example, considering the
example mentioned previously, the URL with this environment variable enabled is as
follows:
http://<eman_web_server>:8000//eman/<userid>/<project-specific location>
Usage:
%setenv EMAN_USERID_IN_URL 1
EMAN_ENABLE_ERROR_COUNT
When the EMAN_ENABLE_ERROR_COUNT environment variable is set in the environment, the
error counts are enabled. By default, the error counts are disabled.
All the occurrences of error pattern matches that are found in the log file are counted and
added to the corresponding category.
The error count data that is calculated is persistently stored in the database as custom
values for tests.
Figure 32
Regression Report With Error Count Enabled
VC Execution Manager™ User Guide
V-2023.12-SP2
227
Feedback
Chapter 6: Setting Up the Environment and Running Regressions
Setting Up the Environment Variables
In Figure 32, various columns, such as Uvm_Warn, Uvm_Info, Vcs_Assertion_Error are
dynamically added when these errors are found in the log file. These columns have error
counts found in the log file for the corresponding test case.
Usage:
%setenv EMAN_ENABLE_ERROR_COUNT 1
List of ExecMan Environment Variables
The following table lists all the VC Execution Manager environment variables and their
details:
Table 15
ExecMan Supported Environment Variables
Environment Variable
Default
Values
Description
EMAN_AGGREGATION_INTERVAL
60
Int in secs
To control the build/session
aggregation time interval.
EMAN_ARCH_OVERRIDE
amd64
amd64
To look up 64-bit binaries
EMAN_CONFIG
Empty
Custom
To set a configuration name
config name for eman run.
EMAN_DEBUG_RERUN
Empty
1
To indicate that the data is a
debug instance.
EMAN_ENABLE_ERROR_COUNT
Empty
1
When set, eman extracts the
error count.
EMAN_IGNORE _ERROR_COUNT
Empty
1
When set, eman does not
extract error count from log
files. Similarly, the GUI does
not show the error counts
with every test case as well.
EMAN_FUNNEL_TIMEOUT
3600
Int in secs
Helps to control the timeout
for funnel to write data into
the DB. In case of huge
number of tests, increase this
time. Note: This timeout is
disabled if it is set to 0.
EMAN_IGNORE_LOGFILE_TIME
Empty
1
If set to 1 eman would look
into old log files generated
before the eman run started
to determine pass/fail status
of a test.
VC Execution Manager™ User Guide
V-2023.12-SP2
228
Feedback
Chapter 6: Setting Up the Environment and Running Regressions
Setting Up the Environment Variables
Table 15
ExecMan Supported Environment Variables (Continued)
Environment Variable
Default
Values
Description
EMAN_INFO_FILE
Empty
Path to info For test API to look up into
file
the right info file.
EMAN_JKEEP_DAYS
7
Int in days
Used to keep a spool
directory for a specified
number of days. Note that
only 0 and positive integer
values are allowed with
EMAN_JKEEP_DAYS.
EMAN_JPEND_TIMEOUT
1,209,600
Int in secs
Timeout for jobs in queued
state
EMAN_JPOLL_SECS
10
Int in secs
Frequency for job polling time
EMAN_JRUN_TIMEOUT
1800
Int in secs
Timeout for builds and tests
EMAN_SUBMIT_OPTS
Empty
Grid options Set specific grid options for
(str)
submitting jobs.
EMAN_MAIL_ACTION_LIMIT
10
Set/limit the total number of
mails sent to the recipients
using the rules option. This
includes the mails sent
for both send_mail and
send_digest actions.
EMAN_MERGESERVER_NFS_TIMEOUT 120 sec300
sec for
Coverage
Aggregator
Int in sec
Amount of seconds to wait
when merge_server expects
an NFS issue. For example,
when comparing checksums
for vdbs
EMAN_MERGESERVER_POST_URG_DE 0
LAY
Int in sec
Sleep after a urg command
EMAN_MERGESERVER_TIMEOUT
3600 sec
Int in secs
Timeout in seconds for merge
jobs in queue. The merge
jobs are terminated beyond
this timeout if the job status
has not been updated. If a
merge job times out in the
Run state and if it reaches the
EMAN_MERGESERVER_TI
MEOUT value, the status is
shown as Run_TimedOut.
EMAN_NFS_WAIT_TIME
60
Int in secs
Time to wait before starting
merge step.
VC Execution Manager™ User Guide
V-2023.12-SP2
229
Feedback
Chapter 6: Setting Up the Environment and Running Regressions
Setting Up the Environment Variables
Table 15
ExecMan Supported Environment Variables (Continued)
Environment Variable
Default
Values
Description
EMAN_NOPERF
Empty
1
To disable the default job
submission mode. For more
details, see the -noperf
option.
EMAN_PERF_DEBUG
Empty
Int in secs
To dump grid debug
information.
EMAN_PROJECT
Empty
Project
name
To set the project name to run
eman.
EMAN_RULES_DIGEST_INTERVAL
60
sec
Set the interval at which the
digest mails are sent using
the rules option.
EMAN_SESSION_NAME
Empty
Session
Name
Set session name before
running eman.
EMAN_TASK_MAX_ATTEMPTS
Empty
1
To set the number of eman
attempts to relaunch a task if
it gets dropped from the grid
while processing a task. The
minimum value that it can be
set to is 1. It is recommended
not to set the value to more
than 3, unless required.
EMAN_TEST_API_SHUTDOWN_TIME
OUT
3600
Int in secs
Wait time before closing the
testapi process. Note: This
timeout is disabled if it is set
to 0.
EMAN_UNIQUE_SESSION
Empty
1
When set adds the process id
in the session name
EMAN_USERID_IN_URL
Empty
1
When set, forms the URLs
with an user id in it.
EMAN_USER
Empty
User name
Set this env variable to
override the default user
name (whoami)
EMAN_VERDI_DEBUG
Empty
1
Set the Verdi debug
capabilities
VC Execution Manager™ User Guide
V-2023.12-SP2
230
Feedback
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Table 15
ExecMan Supported Environment Variables (Continued)
Environment Variable
Default
Values
Description
EMAN_WAIT_FOR_VDB_TO_EXIST
0
Int in sec
When taking the
_vdb_location from the DB,
wait this amount of time for
the vdb to appear on disc. If
it does not appear ignore the
path from _vdb_location.
EMAN_WEB_SERVER
Empty
Server
name
without
http://
Used to set an external Web
server name.
Running a Regression
You can run regressions using various configurations for various needs using Execution
Manager. Execute the following commands to monitor different parameters:
• Run builds and tests from a given test specification file:
% eman [options] -regr_config <config_file>.emc
• Run tests with coverage merging:
% eman [options] -merge_dir <dir> -regr_config <file>.emc
• Run tests from a graded or filtered testlist:
% eman [options] -merge_dir <dir> -regr_config <file> -test_filter
<graded_test_file>
• Run tests with coverage merging and back-annotate the results to an HVP plan.
% eman [options] -merge_dir <dir> -regr_config <file> -plan <hvp_plan>
For more information about the eman command-line options, see section Command-Line
Options.
To run a regression using the Verdi GUI, see a demo video from here.
Command-Line Options
You can execute the eman command line and its options using the following syntax:
% eman –regr_config <file> [options]
Where [options] are eman options, which can contain spaces or start with a hyphen.
VC Execution Manager™ User Guide
V-2023.12-SP2
231
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Note:
While specifying a comma separated arguments to any of the eman options,
there should be no space after the comma.
For example, you can specify the urg option using the -urg_opts option as follows:
% eman –regr_config <file> –merge_dir <dir> -urg_opts="-userdata <file>"
The various [options] that are supported with the eman command are as follows:
• -regr_config
Usage: -regr_config <file> or
-regr_config "<file> <file> ..." or
-regr_config "<file>, <file>, ..."
This is a mandatory option and must be used to specify the regression configuration
file. Regression configuration files should be saved in the *.emc format.
Example:
eman -regr_config my_config.emc
eman -regr_config "my_config.emc my_config1.emc"
eman -regr_config "my_config.emc, my_config1.emc"
• -disable_all_timeouts
Usage: -disable_all_timeouts
Example: eman -regr_config my_config.emc -disable_all_timeouts
This option is used to disable all the timeouts that might stop the regression. Here are
the timeouts that can be disabled by using the -disable_all_timeouts option:
◦ All the "timeout:" definitions in .emc files.
◦ All the "jpend_timeout:" definitions in .emc files.
◦ All the running timeout values specified with the -jrun option or the
EMAN_JRUN_TIMEOUT variable
◦ All the pending timeout values specified with the -jpend option or the
EMAN_JPEND_TIMEOUT variable
◦ Timeout specified using -regr_timeout/-regression_timeout
◦ Timeout specified using EMAN_FUNNEL_TIMEOUT, EMAN_RERUN_TIMEOUT, and
EMAN_TEST_API_SHUTDOWN_TIMEOUT
VC Execution Manager™ User Guide
V-2023.12-SP2
232
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Note:
Using the -disable_all_timeouts option might hang a
regression as all the timeouts are disabled.
• -auto_cleanup
Usage: -auto_cleanup
Option to clean up simv, simv.vdb, simv.daidir, build_name.vdb, eman_rundir,
and csrc automatically.
Cleaning works only if relative path or full path to the simv is provided in the regression
configuration. VC Execution Manager does not run if the path contains variables that are
to be expanded during runtime.
• -arg_filter
Usage: -arg_filter=”<arg_name>”
Example: -arg_filter="debug"
Option to specify an argument filter. The test cases are filtered based on the matching
argument from the test list. It does a string match on the arguments tag or run_cmd tag
of every test in the regression configuration.
You can only specify one argument for the -arg_filter option.
The -arg_filter option works only on the arguments passed in the configuration file and
does not affect the external arguments that are provided via scripts or -test_args eman
option.
The -arg_filter does not work if $cm_opts is specified in the arguments in the configuration
file (where cm_opts = -cm line+fsm) and if -arg_filter "-cm line+fsm" is passed as an eman
option.
• -begin_email
Usage: -begin_email
Option to send an email containing the run’s basic information at the beginning of
execution.
• -config
Usage: -config <config_name>
Option to change the config_name. This overrides the config_name given in the
regression configuration file.
• -cm_post
VC Execution Manager™ User Guide
V-2023.12-SP2
233
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Usage: -cm_post [full32] or -cm_post [full64]
Example: eman -regr_config my_config.emc -local_host -merge_dir
merged_dir -cm_post full64
Option to update the base status of a test to the runtime coverage database once the
test is completed. After the completion of the test, the option displays the test status in
the runtime database and then, finally in the merged database, if merging is performed.
If no value is specified after -cm_post, then ExecMan considers its value as full32,
by default. You need to specify full32 or full64 based on the version of VCS you are
using.
• -customize_status
Option t o customize the status of a failed test case when a session is stopped by a
rule.
For example, to change the status of Stopped(fail) to Stopped(unknown), use the
-customize_status switch with the eman command as follows:
% eman -customize_status
The figure below shows that the status of Stopped(fail) is changed to
Stopped(unknown):
• -debug_only
Option to run only the failing test cases from a particular session in the debug mode.
Use the -session option to specify the session from which the failing tests should be
considered.
For example,
% eman -regr_config config.emc -local_host -auto_cleanup -debug_only
-session <session_name>
VC Execution Manager™ User Guide
V-2023.12-SP2
234
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
The list of failing tests from -session is extracted from the ExecMan database and is
used for filtering the tests from the given configuration. VC Execution Manager issues
an error message if the given session is not found in the ExecMan’s database. By
default, the fastest running test from each failure category is considered for execution.
You can configure the number of tests that gets selected in the debug mode using the
debug_rerun_count tag.
For a build, if debug_run_cmd is not specified, then by default, run_cmd is used to
run it. If you do not want the run the builds and to run only the debug tests, use the
-test_only option.
By default, the init and end blocks are executed. If you want to disable the init and
end blocks, use the disable tag in the block definition.
To run specific tests from the regression config in the debug_rerun mode, use the
-debug_only option with -test or -test_filter options.
Note that -session is not supported when the filter options are used with the
-debug_only option.
For example,
% eman -regr_config config.emc -local_host -auto_cleanup -debug_only
-test my_first_build/test1
OR
% eman -regr_config config.emc -local_host -auto_cleanup -debug_only
-test_filter ./test_filter
If the tests are specified using -test or -test_filter options, and they do not have
debug_run_cmd or if they do not exist in the current configuration, such tests are not
selected in debug_rerun.
• -disable_full_merge
Usage: -disable_full_merge
ExecMan automatically generates a merged VDB from multiple VDBs across builds,
which is called full merge. If the -disable_full_merge option is used with the eman
command, there is no automatic merge across builds. If a single build is present in the
configuration file, the option is ignored.
Example: To stop generating a merged VDB automatically across builds, use the
following command:
eman -disable_full_merge
VC Execution Manager™ User Guide
V-2023.12-SP2
235
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Note:
The -disable_cross_build_merge option is replaced by the
-disable_full_merge option in R-2020.12 and onwards.
• -dgrade_patterns_file
Usage: -dgrade_patterns_file <file>
Option to downgrade a pattern available in a configuration file and to display a new
base status for the pattern.
<file> is a YAML format file that includes patterns to be downgraded and their new
base status to be displayed when matched. The default base status is info.
Example: To downgrade UVM_ERROR* from a configuration file, use the following
command:
eman -dgrade_patterns_file file.yaml
where, the contents of file.yaml are as follows:
UVM_ERROR*
info
Note that the -dgrade_patterns_file option is used to downgrade error patterns to
all tests in a file. However, to downgrade certain error patterns for each specific test,
use the ignore keyword in error patterns. Consider the following error pattern that is
defined to match all UVM_ERROR error patterns:
^UVM_ERROR :\s*[1-9]+:::fail:::uvm_error:::1
To downgrade specific error patterns, use the ignore keyword as follows:
^UVM_ERROR :\s*[1-9]+:::ignore:::uvm_error:::1
Consider the error pattern, say UVM_ERROR : AXI, in the following file:
UVM_ERROR : AXI
UVM_ERROR : ABC
test pass
To ignore this error pattern, use the following:
^UVM_ERROR :\s*[1-9]+:::ignore:::uvm_error_AXI:::1
The ignore keyword ignores only the matched line from the file.
• -disable_count
Usage: -disable_count
Option to disable all the random tests in the regression configuration.
VC Execution Manager™ User Guide
V-2023.12-SP2
236
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
• -email
Usage: -email <comma separated users>
Example: -email user1,user2,user3
Option to specify the list of users to send a summary email at the end of a regression
run from the client machine. Use a comma separated list to specify multiple recipients.
• -email_from_server
Usage: -email_from_server <comma separated users>
Example: -email_from_server user1,user2,user3
Option to specify the list of users to send a summary email at the end of a regression
run from the server machine. Use a comma separated list to specify multiple recipients.
• -email_template
Usage: -email_template<location_of_the_email_template>
Option to customize the regression email that is sent after the regression runs.
As an argument to the -email_template, specify the location of the email
configuring template. The base template is located in: $EMAN_HOME/scripts/
email_template.etp. You can copy this template to your local directory and edit it as
required. The template provides different variables and its usage, which you can use to
customize the email.
The following are the variables available in the email template:
variable format: %(var)s
variables that users have access to:
eman_version - installed version of eman
project - name of the project
config - name of the config
session - name of the session
workdir - cwd
run_dir - eman_rundir
cmd_line - cmd_line used
urg_report - location of the urg report
static_report - location of the static report
summary - Regression summary
web_text - web server url for that session
user - name of the user running the session
total_tests - total number of tests run in that session
total_builds - total number of builds in the session
total_pass - total number of tests passed
total_warn - total number of tests in warn state
total_failed - total tests failed
VC Execution Manager™ User Guide
V-2023.12-SP2
237
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
total_unknown - total number of tests in unknown state
total_assert - total number of tests in assert state
perc_pass - Percentage of passing tests
perc_fail - Percentage of failing tests
perc_warn - Percentage of tests in warn state
perc_unknown - Percentage of tests in unknown state
perc_assert - Percentage of tests in assert state
date - todays date in format Y-m-d
time - current time in format H:M:S
%% - to print a %
• -enable | -enable_modes
Usage: -enable <mode_list>|
-enable_modes <mode_list>
Example: -enable mode1,mode2
The -enable | -enable_modes options enable you to specify user-defined modes, a
single mode, or a list of comma separated modes. If -enable | -enable_modes is given
in the command line, debug_run_dir is determined in different way. For details, see
debug_run_dir.
• -error_pattern_file
Usage: -error_pattern_file <error_pattern_file>
Example: -error_pattern_file filename1.eme
Error pattern files should have the suffix .eme.
For information on error patterns, see Defining the Status of a Test Run error_patterns.
Using the -error_pattern_file option overrides all other error patterns. That is, the
default error patterns and the error patterns specified in the regression configuration
are disabled. If default patterns are required in addition to the user-specified patterns,
then the default error patterns can be copied into the error pattern file and modified as
necessary.
For more information about defining error patterns, see “Defining the status of a test
run”in section Basic Blocks of a Configuration File.
• -exclude_tags
Usage: -exclude_tags <list of exclude tags>
VC Execution Manager™ User Guide
V-2023.12-SP2
238
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
The -exclude_tags option excludes tests with a specific tag from running. For
example, consider the basic.emc file with the following tests:
Example 2
-exclude_tags example
- name: test_feature_a
tag: Feature_A
- name: test_feature_b
tag: Feature_B
- name: test_integrated_ab
tag: Feature_A, Feature_B
- name: test_Feature_C
tag: Feature_C
- name: test_integrated_abc
tag: Feature_A, Feature_B, Feature_C
- name: test_untagged
When you run the following command:
eman -regr_config basic.emc -tags Feature_A,Feature_C -exclude_tags
Feature_B
The -exclude_tags option allows test_feature_a and test_feature_c to run, while
excludes test_feature_b from running.
• -features
Usage: -features <comma separated features>
Example: -features alu.alu_sub,alu.alu_add
Option to specify an argument filter. The test cases are filtered based on the matching
argument from the test list. It does a string match on the arguments tag or run_cmd tag
of every test in the regression configuration.
• -get_cvs_depot
Usage: -get_cvs_depot
Option to get the path to the cvsdepot for the current eman installation.
• -get_web_url
Usage: -get_web_url
Option to display the URL of the Web server that is configured in the eman setup file.
• -grid_queuing_timeout
Usage: -grid_queuing_timeout <timeout>
VC Execution Manager™ User Guide
V-2023.12-SP2
239
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Alternatively, use the following environment variable:
setenv EMAN_GRID_QUEUING_TIMEOUT <timeout>
where, the timeout value is either 0 (no timeout) or >30 seconds.
Option to specify a timeout value after which ExecMan cancels a worker and submits it
again. The time interval is measured from the time when ExecMan submits a worker to
the farm until the worker starts running.
• -host_file
Usage: -host_file <filename>
Option to specify a list of hosts for SSH or RSH based runs. This also requires that the
SSH or RSH protocol is specified in the synopsys_eman.setup file.
Example: -host_file myhostfile
Where, myhostfile includes the following machines in the following manner:
% cat myhostfile
machine1
machine2
machine3
• -ignore_grid_opt
Usage: -ignore_grid_opt
Option to ignore the grid_opt tag specified in the regression configuration for all the
tests and builds. Use this option only when any of the grids, that is, LSF, SGE or RTDA
is selected for running the tests/builds.
The default grid submit options are used to launch the test and builds when this option
is selected. For more information on specification and precedence of grid submit
options, see section Specifying Grid Options for Individual Tests and Builds.
• -jkeep
Usage: -jkeep <secs>
Example: -jkeep 10
Option to specify the number of days for which the spool should be retained. The
default value is 7 days. The spool directories older than -jkeep value are cleaned-up
during the run. This option overrides the EMAN_JKEEP_DAYS environment variable.
• -jpend
Usage: -jpend <secs>
VC Execution Manager™ User Guide
V-2023.12-SP2
240
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Example: -jpend 600
Option to specify the timeout in seconds for queued jobs. The default value is
1,209,600 seconds. This option overrides the timeout value specified using the
EMAN_JPEND_TIMEOUT environment variable.
• -jpoll
Usage: -jpoll <secs>
Example: -jpoll 100
Option to specify the job polling interval in seconds. The default value is 10 seconds.
This option overrides the EMAN_JPOLL_SECS environment variable.
• -jrun
Usage: -jrun <secs>
Example: -jrun 7200
Option to specify the timeout in seconds for running jobs. The default value is 1800
seconds. -jrun overrides the timeout values specified for builds/tests in the regression
configuration and the EMAN_JRUN_TIMEOUT environment variable.
• -sub_opt
Usage: -sub_opt="<submit_options >"
Example: -sub_opt="-l arch=glinux -l os_distribution=redhat -l
os_version=WS5.0"
Option to override the submit options specified for the selected grid in the setup file or
in the environment using the EMAN_SUBMIT_OPTS environment variable.
• -just_print
Usage: -just_print full|cmd
Example: eman -regr_config my_config.emc -local_host -just_print cmd
Option to print the run command without running the regression. Here, full prints the
complete run command with environment variables properly set. Whereas, cmd prints
only the run command without environment variables.
• -keep_spool
Usage: -keep_spool
Option to save generated run logs of the builds/test cases. By default, the spool logs
older than 7 days are deleted when eman is run. You can configure this using the
EMAN_JKEEP_DAYS environment variable. If EMAN_JKEEP_DAYS is set to 'n' number of
VC Execution Manager™ User Guide
V-2023.12-SP2
241
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
days, then spool logs older than 'n' days are deleted when eman is run. Only 0 and
positive integer values are allowed with EMAN_JKEEP_DAYS.
• -local_host
Usage: -local_host
To run builds/test cases on the local host. Without this switch builds/tests run on the
configured grid setup. The tests/builds are started in new shells.
• -merge_dir
Usage: -merge_dir <dir>
Option to specify the directory where coverage merging should be performed. This
directory is created automatically if it is not present. The designs should be merge-able;
if the -merge_dir option is passed.
• -merge_cov_dir
Usage: -merge_cov_dir <dir>
Option to run tests with coverage enabled. This option populates two new runtime
variables, EMAN_COMPILE_OPTS and EMAN_RUNTIME_OPTS, with the content of userdefined variables, -compile_cm_opts and -runtime_cm_opts respectively. ExecMan
appends the content of EMAN_COMPILE_OPTS to the builds run_cmd by default, if
run_cmd is not specified as the vcs command. Also, ExecMan appends the content of
EMAN_RUNTIME_OPTS to the tests run_cmd by default, if run_cmd is not specified as the
simv command.
Consider the following example:
variables:
- compile_cm_opts: SIM_CFG_COVER_ENABLE=yes DDP_COVER=0
- runtime_cm_opts: SIM_CFG_COVER_ENABLE=yes DDP_COVER=0
builds:
- name: cmn_base_build
run_cmd: make all_vcs -f $current_dir/Makefile
tests:
- name: cmn_base_test
build: cmn_base_build
run_cmd: make run_vcs -f $current_dir/Makefile
If -merge_cov_dir <dir> is given at the eman command line, EMAN_COMPILE_OPTS
and EMAN_RUNTIME_OPTS are appended with the value of -compile_cm_opts and
-runtime_cm_opts respectively.
If -merge_cov_dir <dir> is not given at the eman command line, both
EMAN_COMPILE_OPTS and EMAN_RUNTIME_OPTS remain empty.
VC Execution Manager™ User Guide
V-2023.12-SP2
242
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
EMAN_COMPILE_OPTS and EMAN_RUNTIME_OPTS do not append VCS coverage options,
such as -cm dir, -cm_test, and -cm_name. These VCS coverage options can be
appended by referencing other ExecMan variables in one of the following two ways:
• ELAB_ARGS += ${EMAN_CM_COMPILE}
• RUN_ARGS += ${EMAN_CM_RUNTIME}
EMAN_CM_COMPILE and EMAN_CM_RUNTIME are automatically set by ExecMan to the
following values:
• EMAN_CM_COMPILE=-cm_dir ${EMAN_CM_DIR} -cm_name ${EMAN_CM_NAME}
• EMAN_CM_RUNTIME=-cm_dir ${EMAN_CM_DIR} -cm_name ${EMAN_CM_NAME}
-cm_test ${EMAN_CM_DIR}/${EMAN_CM_NAME}
• -no_debug_rerun
Usage: -no_debug_rerun
Option to stop rerunning tests automatically in case of failures.
• -nodes
Usage: -nodes <number>
Example: -nodes 15
Option to specify the number of parallel runs. The default value is 20. This option is
also useful for adjusting the number of parallel test executions based on the available
licenses.
• -noperf
Usage: -noperf
Option to disable the default job submission mode. Alternatively, you can set the
EMAN_NOPERF environment variable to 1. In the default mode of job submission, the grid
slot is held until there are no more tasks to be processed.
When -noperf option is used or environment variable EMAN_NOPERF is set to 1:
◦ The worker exits after processing a single task and frees up the grid slot.
◦ A new worker is launched on the grid if there are more tasks in the queue to be
executed. This new worker waits in the grid queue until it gets a free slot. This way,
other higher priority jobs can run on the grid as the worker frees up the slots.
• -no_plan_grade
Usage: -no_plan_grade
VC Execution Manager™ User Guide
V-2023.12-SP2
243
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
When this option is used, the plan grade tool is not run at the end of the merge step.
This option can be used only when both -merge_dir and –plan options are used in
the command line. Note that it is not possible to run plan driven execution on sessions
that were generated using the –no_plan_grade option.
• -parallel_debug
You can run the debug tests immediately after a test fails in each custom
failure category in the debug-rerun mode. To enable this behavior, specify the
-parallel_debug option, as shown in the following command:
◦ % eman -regr_config <config.emc> -auto_cleanup -local_host
-parallel_debug
• -plan
Usage: -plan <plan file>
Example: -plan jukebox.hvp
Option to pass a verification plan to URG. When -plan is used, the report generated
by URG shows the back-annotated results in the urgReport link. The -plan switch
accepts both HVP and Excel plans.
• -print_to_file
Usage: -print_to_file
Example: eman -regr_config my_config.emc -local_host -print_to_file
Option to save the full run command to an executable shell script without running the
regression. You can then run this shell script to manually invoke certain test/build.
• -project
Usage: -p <EMAN_PROJECT> or -project <EMAN_PROJECT>
Option for passing EMAN_PROJECT. If this option is not used, set the EMAN_PROJECT
environment variable.
• -report_interval
Usage: -report_interval <min>
Option to generate intermediate static reports periodically after the specified report
interval in minutes. The value provided must be a positive integer in minutes. The
recommended value for -report_interval is 5 minutes.
• -root_session
VC Execution Manager™ User Guide
V-2023.12-SP2
244
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
Usage: -root_session <session_name>
Example: -root_session session_pde
Option to specify the root session for a plan driven execution run. Only a completed
session that was run with the -merge_dir option can be passed as an argument to
-root_session.
• -save_merged_vdb
Usage: -save_merged_vdb
Example: eman -regr_config <config.emc> -merge_dir <dir_name>
-save_merged_vdb
Option to save a merged coverage database in the $EMAN_HOME/data/depot/
cvsdepot/ directory to retain it for future sessions.
• -session_name
Usage: -session_name <session_name>
Option to override the default session name, which is generated by the eman
-regr_config command.
Note:
Using the same value for -session_name results in the accumulation of
data from all the sessions with the same name in the report and in the email
notification.
• -tags
Usage: -tags <comma separated names>
Example: -tags random,bar
Option to specify tags for filtering test cases from regression configuration. Only the
test cases that have the specified tag are run.
There should not be any space after the comma.
• -test
Usage: -test <comma separated name>
Example: -test test1,test2
Option to specify test names that should be selected from the regression configuration
for a run.
There should not be any space after the comma.
VC Execution Manager™ User Guide
V-2023.12-SP2
245
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
• -test_args
Usage: -test_args="<extra args to append>"
Example: -test_args="-debug"
The -test_args are appended to the arguments provided to each test in the
regression configuration during runtime.
Note:
-test_args are passed to all tests. When using a standalone
script for tests, the script should be capable of reading the
arguments.
• -test_filter
Usage: -test_filter <graded_test_file>
Option to specify a graded test file containing tests that are selected from the
regression configuration for a regression run. The test filter file must have the suffix
.emt.
For example: -test_filter cpu_tests.emt
If the test result name has eman-generated parameters appended, then the fully
parameterized test result name must be specified in the .emt file. Examples of test
results that have eman-generated parameters are tests that contain the following fields:
◦ count: This field creates a random seeded test. ExecMan appends the random seed
to the test name.
◦ flags: This field defines combinations of arguments passed to the test to generate
multiple test runs and multiple test results. The arguments and their values are
appended to the test result name.
The content of the graded tests file is specified in the following format:
BuildName/TestName_<parameters>
BuildName/<test_group>/TestName_<parameters>
For example:
bld2/test_add_sub_1771205857
bld2/test_add_sub/test_add_sub_1771205857
You can also apply a test filter to obtain a subset of the total test list to run. The
intent is to specify a list of specific execution of test scripts. In the example below,
VC Execution Manager™ User Guide
V-2023.12-SP2
246
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
the list is specified as a list of test result names. The filter file selects only the
specified test runs from the usefultests output file:
cat merged/usefultests
my_first_build/random_test1_84747
my_first_build/random_test1_10862
my_first_build/random_test1_8340
my_first_build/random_test1_40861
• -top_run_dir
Usage: -top_run_dir <directory>
Example: -top_run_dir mydir
Option to change the default run directory of the tool. All the generated files are
dumped under the directory mentioned by -top_run_dir. The default run directory is
eman_rundir.
You can either provide a relative path or an absolute path to the -top_run_dir option.
If the directory does not exist, ExecMan creates a directory.
Any intermediate files generated are saved to this location during a run. Also, the
default run_dir for a build is created at "<top_run_dir>/<build_name>" if the
run_dir tag is not specified for a build in regression configuration.
Similarly, the default run_dir for a test is created at "<top_run_dir>/<build>/
<test>" if the run_dir tag is not specified for a test in the regression configuration.
The other useful files that get saved in the top_run_dir location are pass_list.txt,
fail_list.txt, and eman_logs.
• The -top_run_dir option affects only tests. The build logs still appear in the
./pre_group.rlog file.
• You can use either a relative path or an absolute path.
• There is no effect on eman_logs. When you use -top_run_dir, the overall log is still
placed in ./eman_logs/.
• -merge_dir is kept with respect to the current directory.
• -urg_grading
Usage: -urg_grading <grading_method>
Example: -urg_grading index
where, <grading method> can be index, scope, quick, cost, or plangrade.
Option to enable grading. You need to choose the grading method from index, scope,
quick, plan, or cost-based grading. Note that ExecMan does not run grading by default
when the user merges coverage with the -merge_dir option.
VC Execution Manager™ User Guide
V-2023.12-SP2
247
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
• -urg_opts
Usage: -urg_opts="-userdata mytests.txt"
Option to specify additional options for URG merge.
• -work_dir
Usage: -work_dir <work_dir>
Example: -work_dir mydir
Option to allocate all work directories of an ExecMan session. All the work directories
are dumped under the directory mentioned by -work_dir.
Firstly, the option creates a session work directory named <session_name>. The
option then creates eman_rundir in the session work directory. If both -work_dir
<work_dir> and -merge_dir <merge_dir> are specified and <merge_dir>
is a relative path, then <merge_dir> is created in the session work directory. If
<merge_dir> is an absolute path, <merge_dir> is created directly and not relative to
the session work directory.
Note:
If -work_dir is specified on the command line, ExecMan ignores
-top_run_dir.
If -work_dir is specified with -drop_session when running a session,
ExecMan deletes the session along with the entire session work directory.
• -test_only
Usage: -test_only
Option to run only the tests specified in the regression configuration without compiling
the builds.
If the test has dependency on the simv location of a build, then simv has to be present.
• -total_peak_mem/-peak_mem_interval <time>
Usage: eman -total_peak_mem
eman -peak_mem_interval <time> where, time is a positive integer specified in
seconds.
Option to monitor memory consumed by a test and collect this information.
Alternatively, you can set the following environment variables to enable this feature:
setenv EMAN_TOTAL_PEAK_MEM 1
setenv EMAN_PEAK_MEM_INTERVAL <time>
When this feature is enabled, ExecMan generates the following
VC Execution Manager™ User Guide
V-2023.12-SP2
248
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
two additional log files at the
spool/<session>/<build/tests>/logs directory:
◦ <worker_id>.pmem: Contains information about peak memory of a test or a build
instance. This log file is available in the Total Peak Memory (MB) column of the Web
UI. If the total peak memory is not enabled, the column contains the default value
as "--".
◦ <worker_id>.memlog: Contains information about worker child processes that is
collected after every 1 second, by default. The file is truncated when it reaches
more than 1000 lines.
• -regr_timeout/-regression_timeout
Usage: -regr_timeout xxx
-regression_timeout xxx
where, xxx is a positive integer specified in seconds.
Option to terminate a regression after xxx seconds. Its example is as follows:
eman -regr_config <emc_file>.emc -local_host -regr_timeout 14
or
eman -regr_config <emc_file>.emc -local_host -regression_timeout 14
Both the commands terminate a regression after 14 seconds.
The -regr_timeout/-regression_timeout option terminates a regression as soon
as ExecMan is invoked. On the other hand, the test_timeout option only limits the
runtime of a test.
• -rules_file
Usage: -rules_file <file> where, file is a rules file.
Option to override a rules file by specifying your rules file.
The syntax of -rules_file is as follows:
eman -rules_file <filename.emr>
If a rules file is provided at the command line and in a regression configuration file,
ExecMan gives priority to the rules file at the command line.
If a rules file is provided at the command line and the specified rules file does not exist,
ExecMan gives the following error:
Error: The rules file 'xx.emr' is not readable. Please provide a valid
rules file
VC Execution Manager™ User Guide
V-2023.12-SP2
249
Chapter 6: Setting Up the Environment and Running Regressions
Running a Regression
Feedback
If a rules file is not provided at the command line but is specified in a regression
configuration file, ExecMan uses the rules file referenced in the regression
configuration file.
• -stop_seeds_threshold
Usage: -stop_seeds_threshold <num> where, <num> is a positive integer.
Option to stop generating seeds from a test when its number of failures reaches the
specified threshold. You might then exclude the test that fails multiple times with
different seeds in a given regression run.
When the specified threshold is reached during a session, ExecMan displays the
following warning:
Warning-[EMAN-JOB-CANNOT-BE-FINALIZED] cdplFinalizeTask: Peer not
connected,
reported from:cdpl_worker, machine:<machine_name>, error_code:ECHILD,
error_msg:No child processes.
The syntax of -stop_seeds_threshold is as follows:
eman -stop_seeds_threshold <num>
For example, consider the following command in which num=5:
eman -stop_seeds_threshold 5
Also, consider the following .emc:
tests:
name: my_test
run_cmd:run_md.csh
count: 20
As count=20 in the .emc file, ExecMan creates 20 instances of the my_test tests. As
-stop_seeds_threshold is set to 5, ExecMan stops generating remaining 15 seeds
from my_test only if there are already 5 failures of the my_test tests.
VC Execution Manager™ User Guide
V-2023.12-SP2
250
Chapter 6: Setting Up the Environment and Running Regressions
Running Multiple Regressions
Feedback
Running Multiple Regressions
There are two modes of running multiple regression configuration files:
• Space-separated list
◦ Space-separated list runs one process/session per .emc file. It also consumes one
license per .emc. It usually runs faster than comma-separated list at the expense of
higher resource usage.
• Comma-separated list:
◦ Comma-separated list combines .emc files into a single session. Only a single VCEXECMAN-CLIENT license is checked out.
ExecMan enables you to run multiple regression configuration files simultaneously using
a single command. ExecMan automatically enters in the multi-regression mode when you
specify multiple configuration files with the -regr_config option using a space-separated
list or a comma-separated list. Its syntax is as follows:
eman -regr_config "<config1.emc> <config2.emc> ...."
or
eman -regr_config "<config1.emc>, <config2.emc>, ..."
You can use wildcards to specify multiple configuration files with -regr_config.
For example, use the following command to specify multiple configuration files,
my_config.emc and my_config2.emc:
eman -regr_config ./my_config*.emc
Following figures show the regression run for this command:
Each configuration file generates a log file. The log file contains details about the location
of log files, URL generated for each configuration file, and relevant errors and warnings.
VC Execution Manager™ User Guide
V-2023.12-SP2
251
Chapter 6: Setting Up the Environment and Running Regressions
Viewing Running and Queued Tests
Feedback
Viewing Running and Queued Tests
ExecMan enables you to track the status of a test in the database and view running and
queued tests in the GUI. To view running and queued tests in the GUI, ExecMan provides
columns, R and Q, respectively in Session and Builds table. In the Session table, these
columns show all tests in a session. In the Builds table, these columns show all tests in a
build.
Consider the following figure that show columns, R and Q:
Figure 33
The Tests Table
In this figure, the Status column shows its values as Pass, Running, and Queued.
Note:
In the Summary column, queued tests are shown in the gray color (same color
as Unknown tests) as shown in the following figure:
Figure 34
The Summary Column
Generating Emails
ExecMan enables you to send a summary email for a regression using the following
options:
• -email
An option to specify a list of users to send an email for a regression. This option
enables the post regression summary email. For details, see -email in the CommandLine Options section.
• -begin_email
VC Execution Manager™ User Guide
V-2023.12-SP2
252
Chapter 6: Setting Up the Environment and Running Regressions
Generating Emails
Feedback
An option to send an email at the beginning of a regression. For details, see
-begin_email in the Command-Line Options section.
• -email_template
An option to customize the regression email that is sent after the regression runs. For
details, see -email_template in the Command-Line Options section.
If a test fails in a regression, ExecMan supports the tools to send the test owner an autogenerated email to inform about the test status and logs.
When a test fails, you might write a post-script to send a summary email for the following
reasons:
• It runs after every test using the custom_cmd option of .emc
• It checks the test status by querying the database
• It gets the test owner in case of failure and send an email to the owner using eman
mail
To write a post-script when a test fails, use the following:
• eman mail: The command is used to send a custom email via eman. The syntax of this
command is as follows:
eman mail -r <comma separated recipients> -s <subject> [-b <body
file>]
Here, -b <body file> is optional and if it is not provided, an empty body is sent in the
email. The body text can be pipelined using the following command:
eman data sql -u <db_user> -p <db_password> emandb
<sample.sql | eman mail -s <subject> -r <email recipients>
Note:
If -b <body file> is provided, it takes priority over pipelining.
An example of sample.sql is as follows:
select distinct scope_id,
owner,
scope_id.name,
status
from result left outer join scope_id
on result.scope_id = scope_id.id left outer join
status_map
on result,status_id = status_map.id
VC Execution Manager™ User Guide
V-2023.12-SP2
253
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
To specify the test log location in an email body, you need to build the
database query. For this, pass the .emc variables ($$EMAN_LOG_FILE, $
$EMAN_CONFIG_NAME, $$EMAN_SESSION_NAME, $$EMAN_BUILD_NAME, $
$TESTCASE, and $current_dir) to the post-script.
An example of the .emc properties executing the post-script is as follows:
- name: seed87
build: my_first_build
arguments: -cm line+cond+fsm +ntb_random_seed=87 -l
$run_log
tags: direct,critical
custom_cmd: post_script.csh $$EMAN_CONFIG_NAME
$$EMAN_SESSION_NAME
$$EMAN_BUILD_NAME $$TESTCASE
owner: usr1
• owner: This field is added to the scope_id table in the ExecMan database. It is also
added to the .emc file as its test option as follows:
tests:
-name: sample
build: my_build
run_cmd: run.sh
owner: usr1
Note that you can retrieve the owner field from the database using eman data.
Rerunning Regressions
When you click the Rerun Session or Rerun Selected button on the build/test page, it
shows the following Rerun/Debug Rerun dialog box that allows you to specify rerun type,
debug rerun mode, and rerun options:
VC Execution Manager™ User Guide
V-2023.12-SP2
254
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Note:
Selection for rerun modes in the Rerun/Debug Rerun dialog box is available
only if the modes are specified in the modes block of the configuration file
(.emc).
This section consists of the following subsections:
• Rerun Types
• Debug Rerun Modes
• Rerun Options
• Validation Rules for Dependent Compilation Results
• Show Configuration Editor
VC Execution Manager™ User Guide
V-2023.12-SP2
255
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Rerun Types
ExecMan provides the following three rerun types:
• Rerun: The Rerun option reruns builds/tests without invoking automatic debug rerun. If
this option is selected, ExecMan uses the following command:
eman -regr_config test.emc -no_debug_rerun
• Rerun With Debug: The Rerun With Debug option reruns builds/tests with automatic
debug rerun. If this option is selected, ExecMan uses the following command:
eman -regr_config test.emc
• Debug Rerun: The Debug Rerun option reruns a debug build/test for the failing test of
the current session. If this option is selected, ExecMan uses the following command:
eman -regr_config test.emc -debug_only
You must use -debug_only with -session, -test, or -test_filter. For rerun
selected, ExecMan uses the following command:
eman -regr_config test.emc -debug_only -test_filter <filter_file>
For rerun sessions, ExecMan uses the following command:
eman -regr_config test.emc -debug_only -session
<existing_session_name>
This section consists of the following subsections:
• Generating the Rerun, Rerun With Debug, or Debug Rerun Command
• Linking a Parent Session With a Rerun Session
• Linking a Parent Test With a Rerun Test
Generating the Rerun, Rerun With Debug, or Debug Rerun
Command
Each session has a cmd_line attribute. Following is the syntax of the cmd_line attribute:
cmd_line
eman -project test -regr_config <config_name.emc> -local_host
-auto_cleanup -session <session_name> -test_only -work_dir eman_workdir
-debug_only
ExecMan creates rerun commands from the cmd_line attribute. It initializes the Rerun
Configuration dialog box as per the cmd_line attribute of a session and records its last
selection. ExecMan updates the rerun command with the current context, such as session
VC Execution Manager™ User Guide
V-2023.12-SP2
256
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
name and filter file. The following table shows the detailed information that is updated to
the rerun command:
The cmd_line Options
Rerun
Configuration
Updated to the Current Session
-no_debug_rerun
Rerun is selected
None
-debug_only
Debug Rerun is
selected
Example 1:-debug_only -session
<session_name>Here, ExecMan
updates <session_name> to the current
session.Example 2:-debug_only -test_filter
<filter_file>Here, ExecMan updates
-test/-test_filter with the current selection.
-enable mode1, mode2
mode1 and mode2
are selected
ExecMan updates the enabled mode list with
the current mode selection.
-test_only
Reuse Compilation
is selected
None
-session_name session1
Reuse Session is
selected
ExecMan updates session1 with the current
session name.
-reuse_config
-parent_session session1
Reuse Configuration ExecMan updates session1 with the current
is selected
session name.
-test/-test_filter filter_file
Ignored
ExecMan updates -test/-test_filter with the
current selection.
-parent_session session1
Ignored
ExecMan updates session1 with the current
session name.
Note:
1) It is recommended to use -work_dir for each session. Rerun selected
tests under a running session conflict with the current running session.
If -work_dir is not specified for a running session, ExecMan appends
-work_dir eman_workdir with rerun selected tests. As the current session
uses its run_dir, each new session needs a separate run_dir.
2) To link a parent session/test with a rerun session/test, ExecMan appends
-parent_session session_name with the rerun command. For details on
linking a parent session, see Linking a Parent Session With a Rerun Session.
3) For a running session, Reuse Session is disabled. For details on Reuse
Session, see Reuse Session.
VC Execution Manager™ User Guide
V-2023.12-SP2
257
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Linking a Parent Session With a Rerun Session
To link a parent session with a rerun session, ExecMan provides the -parent_session
<session_name>. When you select the Rerun option, ExecMan passes the current
session name to the rerun command via -parent_session <session_name>. The
parent_session attribute appears in the Session Attributes list of a new session along
with a link to the parent session and the Compare With Parent button (see the figure
below).
The Compare With Parent button navigates you to the Compare Session page, which
compares a parent session with rerun session (new session). The following figure shows
the Compare Session page:
In the Compare Session page, you can select fields, compare types, and the number
of rows to be displayed per page. The page consists of a parent session on its left and a
rerun session on its right.
VC Execution Manager™ User Guide
V-2023.12-SP2
258
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Linking a Parent Test With a Rerun Test
For a rerun test, ExecMan provides a new action
button to link and compare with a
parent test. Use the Compare With Parent button to see test information of a rerun and
parent test. The following figure shows the compared information:
Debug Rerun Modes
Modes defined in the modes block of the configuration file are listed on the Rerun/Debug
Rerun dialog box. To enable a mode, select the mode or use -enable|-enable_modes on
the command line. For more details on modes, see Defining Modes.
The selection of debug mode affects the run_dir keyword. You can specify these
keywords in the configuration file. If you specify the values of these keywords, ExecMan
does not change the compile directory and simulation directory when rerun and debug
modes are enabled. If these values are not provided, ExecMan generates their default
values (see the table below).
Name
Default Value
build run_dir
eman_rundir/<build_name>
build debug_run_dir
<build run_dir>_debug_<modeA>_<modeB>
test run_dir
<build run_dir>/<test_name>
test debug run_dir
<build
debug_run_dir>/<test_name>_debug_<modeA>_<modeB>
build run_dir with
force_recomp
<build run_dir>_<YYYYMMDD>_<HHMMSS>_<PID>
build debug_run_dir
force_recomp
<build
run_dir>_<YYYYMMDD>_<HHMMSS>_<PID>_debug_<modeA
>_<modeB>
VC Execution Manager™ User Guide
V-2023.12-SP2
259
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Name
Default Value
test run_dir with
force_recomp
<build
run_dir>_<YYYYMMDD>_<HHMMSS>_<PID>/<test_name>
test debug_run_dir with
force_recomp
<build run_dir>_<YYYYMMDD>_<HHMMSS>_<PID>_
\debug_<modeA>_<modeB>/<test_name>_debug_<modeA>_<
modeB>
Rerun Options
ExecMan provides the following three rerun options:
• Reuse Compilation
• Reuse Session
• Reuse Configuration
To understand the concept of rerun options, consider a scenario in which there is a
session, session_one, a build, build_one, and two tests, test_one and test_two as
follows:
If build_one and test_one are finished, ExecMan runs test_two. If you select test_one
to rerun with default options in the Rerun dialog box, then ExecMan does the following:
1. Creates a new session, say session_two, and tags the new session with the old
session.
2. Runs build_one under a new compile directory, that is
run_dir:build_one_<timestamp>. For example, build_one_12345678.
3. Runs test_one under a new run directory. For example,
run_dir:build_one_12345678/
test_one.
VC Execution Manager™ User Guide
V-2023.12-SP2
260
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Reuse Compilation
The Reuse Compilation option runs tests only with the compilation generated by the
current session. If the current session is in progress and compilation results (simv) are not
ready, ExecMan waits till timeout. If compilation results are ready, ExecMan does not wait.
The default waiting timeout value is 86400 seconds. You can reset this default value by
using EMAN_RERUN_TIMEOUT.
If a session is in progress and compilation results are not ready, ExecMan waits till timeout
(86400 or EMAN_RERUN_TIMEOUT). If a session is completed and compilation results are not
available, ExecMan stops rerunning.
If a session is in progress and compilation results are not available but timeout expires,
then ExecMan stops rerunning. If a session is in progress and compilation results are
available, then ExecMan immediately starts rerunning.
If the Reuse Compilation option is selected, ExecMan determines the reused simv location
from the parent session. ExecMan waits for the right simv if the parent build is in progress.
If the parent build ends, simv gets changed and ExecMan gives an error that reuse
compilation got changed. In this scenario, ExecMan should stop rerunning. For this, use
the -test_only option in the following rerun command:
eman -regr_config test.emc -test_only -parent_session
<current_session_name>
For example, if build_one and test_one are finished, ExecMan runs test_two. If you
select test_one to rerun with the Reuse Compilation option, then ExecMan does the
following:
1. Creates a new session, say session_two, and tags the new session with the old
session.
2. Waits for the compilation result if it does not exist. It stops rerun if the compilation
changes.
3. Runs test_one with the old compilation result in the same run_dir:build_one/
test_one.
If the Reuse Compilation option is not selected, ExecMan always forces recompilation
in a different compile directory. For this, ExecMan uses the -force_recomp in the
following command:
eman -regr_config test.emc -force_recomp
VC Execution Manager™ User Guide
V-2023.12-SP2
261
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
Reuse Session
If the Reuse Session option is selected, new results overwrite parent results in the current
session. This option is only available for finished sessions (including stopped sessions).
ExecMan uses the following command:
eman -regr_config test.emc -session_name <parent_session_name>
For example, if the Reuse Session option is selected,
new results overwrite build_one and test_one as
follows:
If the
Reuse Session option is not selected, ExecMan creates a new session for a rerun using
-session_name <session_name> as follows:
eman -regr_config test.emc -session_name <session_name>
The expected behavior of Reuse Compilation and Reuse Session is explained in the
following table:
Reuse Compilation
Reuse Session
Expected Behavior
Not selected
Not selected
ExecMan creates a new session and forces a
recompilation in a different folder.
Not selected
Selected
ExecMan updates rerun test results to the same
session and forces a recompilation in a different
folder.
Selected
Not selected
ExecMan groups rerun test results in a new session
and reuses an existing compilation.
Selected
Selected
ExecMan updates rerun test results to the same
session and reuses an existing compilation.
Reuse Configuration
If the Reuse Configuration option is selected, ExecMan loads saved (or merged)
configurations from the parent session depot. If ExecMan could not find the
saved configurations, it gives an error. To reuse the saved configurations, use the
-reuse_config option as follows:
eman -reuse_config -parent_session <session_name>
VC Execution Manager™ User Guide
V-2023.12-SP2
262
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
If the Reuse Configuration option is not selected, ExecMan uses the configuration
provided by the -regr_config option. If the -reuse_config option is specified, ExecMan
ignores -regr_config.
As ExecMan updates run_dir of the build dynamically per rerun options, you need to
define simv_location with $$EMAN_RUN_DIR if it is always in run_dir. ExecMan dumps
a snapshot of the merged .emc file into the session depot and you might rerun from the
saved emc file. You need to use an absolute path for all referenced files — such as error
patterns files and grid options setup files — in the emc file except included emc file. You
can use $PWD to define the absolute path if these files are relative to the top run directory.
Validation Rules for Dependent Compilation Results
ExecMan collects all dependent compilation results and fails rerun if any compilation result
is not available or invalid. Validation rules for dependent compilation results for the rerun
types are as follows:
• Rerun
If Rerun is selected along with Reuse Compilation, ExecMan checks all dependent
compilation results (no debug simv check) before it starts a rerun session.
◦ If a parent session is already finished, rerun fails if any of the depending compilation
results is not available.
◦ If a parent session or a parent build is running, ExecMan waits until compilation
results are generated or until timeout.
• Rerun With Debug
If Rerun With Debug is selected along with Reuse Compilation, ExecMan checks
all dependant compilation results (no debug simv check). For a debug test rerun,
ExecMan checks a debug simv or normal simv, if debug_run_cmd is not defined, at
runtime before starting a user-defined test run command. If any of the dependent
compilation results is not found or changed, ExecMan fails a test and gives an error.
◦ If a parent session is already finished, rerun fails if any of the depending compilation
results is not available.
◦ If a parent session or a parent build is running, ExecMan waits until compilation
results are generated or until timeout. The default timeout value is 86400s. You can
reset this value using the EMAN_RERUN_TIMEOUT environment variable.
• Debug Only
If Debug Only is selected along with Reuse Compilation, ExecMan checks all
dependant compilation results before starting a rerun session. If any of the dependent
compilation results is not found or changed, ExecMan fails a test and gives an error.
VC Execution Manager™ User Guide
V-2023.12-SP2
263
Chapter 6: Setting Up the Environment and Running Regressions
Rerunning Regressions
Feedback
◦ If a parent session is already finished, rerun fails if any of the depending compilation
results is not available.
◦ If a parent session or a parent build is running, ExecMan waits until compilation
results are generated or until timeout. The default timeout value is 86400s. You can
reset this value using the EMAN_RERUN_TIMEOUT environment variable.
Show Configuration Editor
ExecMan enables you to view and edit the configuration of the selected tests using the
Show Config Editor check box. For example, to see the configuration of the seed87 test,
select Show Config Editor as follows:
The Show Config Editor check box can be displayed by clicking either the Rerun
Session button or the Rerun Selected button.
When ExecMan is viewed using the Web UI, the View Config button is displayed to view
the configuration of the selected test in the Configuration editor.
VC Execution Manager™ User Guide
V-2023.12-SP2
264
Chapter 6: Setting Up the Environment and Running Regressions
Collecting Session Data
Feedback
Collecting Session Data
ExecMan enables you to collect session data, such as peak memory, CPU time or
simulation time of a test/build for compilation and simulation phases. To enable collecting
session data, set the EMAN_ENABLE_COLLECTING_METRICS environment variable.
In the compilation phase, use the -reportstats option with vcs to make VCS dump
resource statistics.
In the simulation phase, use the following options:
• Use -cm line+cond+fsm+assert or -cm_dir to get coverage data.
• use the -cmstats option to make a simulation dump a dummy VDB containing all
necessary information that ExecMan needs.
Once the environment variable and the above-mentioned options are used, ExecMan
displays session data in the following Session Attributes page:
VC Execution Manager™ User Guide
V-2023.12-SP2
265
Chapter 6: Setting Up the Environment and Running Regressions
Automatic Debug Rerun
Feedback
Automatic Debug Rerun
VC Execution Manager supports automatic debug rerun for rerunning a sample of failed
tests with either a different script or with a different set of options. This saves the debug
time by preparing the detailed logs and waveform dumps. To enable the debug rerun
mode, the tests specification must have debug_run_cmd. VC Execution Manager
switches to this mode when it finds debug_run_cmd for a test case and if it has failed.
VC Execution Manager assumes that the compilation is done with the appropriate debug
switch. With debug_run_cmd, either a script or a simv command can be specified. You can
write the test specification as follows:
tests:
- options:
debug_rerun_count: 2
- name: seed90
build: my_first_build
run_cmd: $current_dir/my_test_script.csh -cm line+cond+fsm
$ntb_random -l $run_log
debug_run_cmd: $current_dir/my_test_debug_script.csh
VC Execution Manager™ User Guide
V-2023.12-SP2
266
Chapter 6: Setting Up the Environment and Running Regressions
Retry Mode
Feedback
After debug_run_cmd is specified, the test is setup automatically for debug rerun, if it fails.
When a test fails, it automatically reruns with the specified debug_run_cmd.
To select the number of failing tests to be rerun from each failure category, use the
debug_rerun_count option. The valid inputs to debug_rerun_count are a positive integer
for 'n' number of failing tests or the string "all" for selecting all failing tests from each failure
bin. For more information about the debug_rerun_count option, see section Options in
the Tests Block.
Note:
• The debug_rerun switch applies only for failed tests and not for terminated or lost
tests.
• To stop automatic debug_rerun, use the -no_debug_rerun option.
Executing Debug-Rerun Immediately After a Failure
By default, debug builds and debug tests run after the merge step. However, you can run
the debug tests immediately after a test fails in each custom failure category in the debugrerun mode. To enable this behavior, specify the -parallel_debug option, as shown in
the following command:
% eman -regr_config <config.emc> -auto_cleanup -local_host
-parallel_debug
Retry Mode
ExecMan provides the Retry mode for failed tests which are not automatically rerun in
the debug mode. In the Retry mode, ExecMan reruns tests in a normal mode but with a
different or same grid. To enable the retry mode, use the -retry N as follows:
eman -regr_config <config_file.emc> -retry N -auto_cleanup -local_host
where, N is the maximum number of retry per test. Its default is 0.
Alternatively, you can enable the retry mode using the -retry: N in the cli_options block in
the configuration file as follows:
cli_options:
-retry: 3
This section consists of the following subsections:
• Predefined Custom Status List
• Log Files
VC Execution Manager™ User Guide
V-2023.12-SP2
267
Chapter 6: Setting Up the Environment and Running Regressions
Retry Mode
Feedback
• Grid Options
• Results View
Predefined Custom Status List
ExecMan provides a predefined custom status list for the retry mode. A test, for which
automatic debug rerun does not apply, is rerun in the retry mode if its custom status exists
in the predefined custom list. The predefined custom list for the retry mode is as follows:
• Any matching custom status from the exempt_status_list, for which automatic
debug rerun did not apply (except Not_Run and Stopped):
◦ no_log_file_found
◦ old_log_file_found
◦ no_error_spec_found
◦ run_TimedOut
◦ queue_TimedOut
◦ killed
◦ no_pattern_match
• Custom statuses from $EMAN_HOME/backend/scripts/system_error_patterns.eme
that match either of the following criteria:
◦ license_error
◦ OS_*
For example:
^Error: License checkout fail:::fail:::license_error:::0
^.*Argument list too long:::fail:::OS_E2BIG:::0
Log Files
In the retry mode, all log files are saved by default. Log files are saved in the following
format:
<test_name>.<retry_num>.log
For example, if the name of a failed test is test_add and its retry number is 1, then its log
file name is test_add.1.log.
VC Execution Manager™ User Guide
V-2023.12-SP2
268
Chapter 6: Setting Up the Environment and Running Regressions
Retry Mode
Feedback
If you do not want to keep all logs of a failed test, use the -no_retry_logs switch as
follows:
eman -regr_config <config_file.emc> -retry N -no_retry_logs
Grid Options
ExecMan provides the retry_grid_opt_list keyword to define the order of grid options
for the retry mode in the synopsys_eman.setup file or in the configuration file. If this
keyword is not defined, ExecMan uses the submit_opts for the retry mode.
Note:
If the current grid option is in the list specified by retry_grid_opt_list
keyword, ExecMan looks for the first occurrence of the current grid and starts
rerunning from that grid.
If the number of retry is more than the number of grids specified using the
retry_grid_opt_list keyword, ExecMan repeats the last grid option.
Example of Using retry_grid_opt_list in the Setup File
Consider the following example that shows the grid block in the synopsys_eman.setup
file for test_add_sub_blkA:
grid:
- SGE: True
setup_file: /remote/sge/default/snps/common/settings.sh
submit_opts: -P bnormal -l arch=glinux -l
os_distribution=redhat -l
os_version=WS5.0
retry_grid_opt_list: low_priority, low_memory, high_priority,
high_memory
grid_opts_setup:
high_priority: -P bhigh -l arch=glinux -l
os_distribution=redhat
-l os_version=WS5.0
low_priority: -P blow -l arch=glinux -l
os_distribution=redhat
-l os_version=WS5.0
high_memory: -q bnormal -R "rusage[mem=3000] &&
arch==glinux &&
os_version==WS5_0 &&
os_distribution==redhat"
low_memory: -q bnormal -R "rusage[mem=100] && arch==glinux &&
os_version==WS5_0 && os_distribution==redhat"
For this example, the retry mode starts from low_priority and if the test fails again,
ExecMan continues with high_priority.
Example of Using retry_grid_opt_list in the Configuration File
Consider the following configuration file that shows the usage of retry_grid_opt_list:
cli_options:
-retry: 3
VC Execution Manager™ User Guide
V-2023.12-SP2
269
Chapter 6: Setting Up the Environment and Running Regressions
Retry Mode
Feedback
config_name: blkA
retry_grid_opt_list: low_priority, low_memory, high_priority, high_memory
variables:
- vcs: $VCS_HOME/bin/vcs
- cm_opts: -cm line+cond+fsm+assert
- ntb_random: +ntb_random_seed=$$EMAN_RANDOM
- current_dir: $PWD
- run_log: $${EMAN_TESTCASE}.log
builds:
- name: bld_blkA
run_cmd: echo This is just a dummy build
simv_location: $${EMAN_RUN_DIR}/simv
run_dir: $current_dir
tests:
- name: test_add_sub_blkA
build: bld_blkA
arguments: $cm_opts +UVM_TESTNAME=test_add_sub -l $run_log
$ntb_random
grid_opt: low_memory
count: 2
tags: random
Results View
When you enable the retry mode, a new column, Attempt, is displayed in the tests page
that shows the data of the last retry of a test:
The number in the Attempt column is the number of the currently running or finished retry
attempts. If a test does not have any retry attempts, the value of the test is displayed as " " in the Attempt column.
You can filter the tests for the retry mode by selecting Retry from the Show list box as
shown in the following figure:
The following figure shows two retry attempts for a failed test, test_add:
VC Execution Manager™ User Guide
V-2023.12-SP2
270
Chapter 6: Setting Up the Environment and Running Regressions
Minimization of Total Regression Runtime
Feedback
Attempt#1 is the original test that failed and as its status exists in the predefined custom
status list, it entered the retry mode and caused further retry attempts.
Minimization of Total Regression Runtime
ExecMan allows you to minimize overall regression runtime using the -min_regr_time
switch. ExecMan uses regression history data to optimize test scheduling and to reduce
overall regression time.
For example, consider a regression with two nodes and three tests as follows:
test1: average runtime is 2 minutes
test2: average runtime is 3 minutes
test3: average runtime is 10 minutes
By default, ExecMan schedules tests in the order specified in the configuration file. As
there are only two nodes, test1 and test2 are executed first, and test3 waits for the
completion of test1. In this case, overall regression time is 12 minutes.
When -min_regr_time is used with the eman command, test1 is scheduled first and
overall regression time takes 10 minutes.
To schedule new tests first, use the following command:
eman -regr_config -min_regr_time tasks_with_unknown_load_first
Cleaning Up the Database
EMAN provides the cleanup block to remove all or selected information stored in the
database. The cleanup block can be defined more than once. The inner cleanup block
definition overrides all outer cleanup block definitions.
EMAN supports the following features:
• The cleanup Block in tests/builds
• The Cleanup Block Under merge_options
• The -db Switch for the cleanup Command
• The Cleanup Dialog Box
VC Execution Manager™ User Guide
V-2023.12-SP2
271
Chapter 6: Setting Up the Environment and Running Regressions
Cleaning Up the Database
Feedback
The cleanup Block in tests/builds
EMAN supports the cleanup block in the options block of tests/builds. The syntax of
the cleanup block is as follows:
cleanup:
active: yes|no
post_run | post_session:
run_cmd: <any unix command | user_script>
When the cleanup block is defined under tests/builds, then the cleanup block is
applied to all tests/builds defined in the configuration file. The following .emc file shows
the cleanup block in tests/builds:
builds:
- options:
cleanup:
post_run:
run_cmd: rm -rf $$EMAN_BUILD_NAME.log*;
- name: b1
run_cmd: "echo dummy build"
run_dir: $current_dir
- name: b2
run_cmd: "echo dummy build"
run_dir: $current_dir
tests:
- options:
cleanup:
post_run:
run_cmd: rm -rf $run_log*;
- name: test1
build: b1
run_cmd: $current_dir/run_test 7 > $run_log;
- name: test2
build: b1
run_cmd: $current_dir/run_test 8 > $run_log;
- name: test3
build: b2
run_cmd: $current_dir/run_test 9 > $run_log;
The Cleanup Block Under merge_options
EMAN provides the merge option to apply cleanup policies to the merge instances that
merge_server creates. Its syntax is as follows:
eman cleanup -s <session_name> -stage merge
VC Execution Manager™ User Guide
V-2023.12-SP2
272
Chapter 6: Setting Up the Environment and Running Regressions
Cleaning Up the Database
Feedback
You can apply cleanup policies using the merge check box of the cleanup dialog box
(Figure 35). Alternatively, you can define the cleanup block under merge_options. For
example:
merge_options:
- cleanup:
post_run:
run_cmd: touch $current_dir/post_run_file;
post_session:
run_cmd: touch $current_dir/post_session_file;
Figure 35
Cleanup Dialog Box With merge
The -db Switch for the cleanup Command
To delete a session from the database, EMAN provides the -db switch. Its syntax is as
follows:
eman cleanup -s <session_name> -db -b
VC Execution Manager™ User Guide
V-2023.12-SP2
273
Chapter 6: Setting Up the Environment and Running Regressions
Cleaning Up the Database
Feedback
where, the -b/blast switch removes the specified sessions/s files stored under
cvsdepot. If -blast is paased without the -db switch, -b/blast is ignored.
Note that it is mandatory to specify sessions with -s or -l switches.
The Cleanup Dialog Box
To display the Cleanup dialog box, click the Cleanup/Delete Sessionsbutton from the
Sessions page (Figure 36).
Figure 36
Sessions Page
The Cleanup dialog box is enhanced to include two tabs: Cleanup Sessions and Delete
Sessions. The Cleanup Sessions tab of the dialog box (Figure 37) provides the Keep
Session Days text box to specify the number of days for which a session can be kept
active. When the Cleanup Sessions check box is selected, EMAN executes the following
eman command:
eman cleanup -stage tests -stage builds -list_sessions <session_name>
VC Execution Manager™ User Guide
V-2023.12-SP2
274
Chapter 6: Setting Up the Environment and Running Regressions
Cleaning Up the Database
Figure 37
Feedback
The Cleanup Sessions Tab of the Cleanup Dialog Box
On the other hand, the Delete Sessions tab provides two options, namely Delete
Sessions and Remove Files as shown in Figure 38.
Figure 38
The Delete Sessions Tab
VC Execution Manager™ User Guide
V-2023.12-SP2
275
Feedback
7
Managing and Administering Projects
This chapter describes how to manage and administer VC Execution Manager projects in
the following sections:
• VC Execution Manager Projects
• Managing Data and Server Using the eman Command
• Extracting Predefined Errors From a Log File
VC Execution Manager Projects
Each VC Execution Manager installation can have the following:
• Multiple users
• Multiple projects
A project is a top-level container in VC Execution Manager for grouping and storing all
the related data. A user who creates the project is the owner of the project. By default, all
users can access a project if no restriction is applied on the project by its project owner.
A project owner can:
• Manage any project
◦ Create
◦ Drop
• Manage any user
◦ Add users to a project
◦ Drop users from a project
A project member can be created explicitly by a project owner or implicitly by running
project regressions. A project member can:
• Manage project configuration files
• Add sessions
VC Execution Manager™ User Guide
V-2023.12-SP2
276
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
• Delete sessions
• Save files into a project repository
Note:
The EMAN_USER environment variable allows any user to masquerade as any other user.
Each project can have:
• One project owner
• A group of team members
• Data storage
Managing Data and Server Using the eman Command
To manage ExecMan regression run data and server, use the eman command with the
following options as per your requirement:
Command
Description
eman version info
Displays the current VC Execution Manager version, its build
time, machine name, machine type, and depot and spool
locations.
eman project
<sub_command>
Performs ExecMan project-related tasks. For more
information about its <sub commands>, see Managing
Projects Using the eman project Command.
eman admin
<sub_command>
Performs tasks related to system administration. For more
information about its <sub_command>, see Setting Up the
MySQL Database Server.
eman data <sub_command> Retrieves test information, such as pass, fail, and custom
data, from the database. For more information about its
<sub_command>, see Retrieving Test Data From the
Database.
VC Execution Manager™ User Guide
V-2023.12-SP2
277
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Command
Description
eman plan save
<sub_command>
Saves verification plan data to the ExecMan database. If
you are using an .xml file to annotate plan and coverage
results in ExecMan, use the eman plan save command.
The plan.xml file that ExecMan needs for the -xmlplan
option is generated using the -xmlplan option of URG, as
shown in the following commands:% urg -dir <my.vdb>
-plan <jukebox.hvp> -xmlplan% eman plan save -s
<session_name> -xmlplan <plan.xml> <eman_options>.
For information about generating the .xml file, see section
"Reporting HVP Annotated Results in XML Format" in the
Verification Planner User Guide. You can also generate this
xml file using Verdi.
eman testapi
<sub_command>
Stores additional test data into the database. For information
about TestAPI, see Chapter, Test Application Programming
Interface (Test API).
eman server
<sub_command>
Performs tasks related to database and Web server. For more
information about its <sub_command>, see Setting Up the
MySQL Database Server.
eman data migrate
<sub_command>
Migrates session data to a centralized server. For information
about its subcommands, see Migrating Session Data to a
Centralized MySQL Server.
eman session stop
<sub_command>
Stops test runs in a session or stops a complete session. For
more information about its <sub_command>, see Stopping a
Session.
eman project drop_session
<sub_command>
Deletes a session. For more information, see section Deleting
a Session.
Managing Projects Using the eman project Command
This section lists VC Execution Manager commands that you can use for general project
management:
• eman project create <project_name>: Enables you to create a new project.
• eman project show -all: Displays a list of all existing projects.
• eman project show -p <project_name>: Displays the summary of the specified
project. The summary is extracted from the MySQL database.
• eman project show -project <project_name>: Displays the summary of the
specified project. The summary is extracted from the MySQL database.
• eman project drop <project_name>: Enables you to remove a project.
VC Execution Manager™ User Guide
V-2023.12-SP2
278
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
• eman project update [options] <project_name>: Enables you to update project
attributes, that is, change the permissions of a project, as shown in the following
syntax:
% eman project update -permission <permission_type> -users <user_id>
-remove_users <rm_user_id> <project_name>
where, <permission_type> can be open or restricted.
<user_id> is the list of comma-separated users to participate in a project.
<rm_user_id> is the list of comma-separated users to remove from a
project.
• eman project merge_session: Enables you to merge data from two or more
sessions. For more information, see section Merging Sessions.
• eman project drop_session: Enables you to delete a session. For more
information, see section Deleting a Session.
• eman project trim_project <project_name>: Enables you to remove sessions
older than a specified number of days. Its syntax is as follows:
eman project trim_project -delete_files -delete_results -k|-keep_days
<keep_days>
where, -delete_files deletes the session directories cvsdepot and spool for sessions
older than <keep_days>. -delete_results deletes database results for sessions
older than <keep_days>. <keep_days>: Sessions more recent than <keep_days> are
kept and the remaining sessions are deleted for the project.
Adding Members to a Project
You might or might not have permissions to access a project. To check whether you have
access to a project, use the following command:
eman project info projectname
In case, you need to provide permissions to users to access a project, you need to add
them to a project.
VC Execution Manager™ User Guide
V-2023.12-SP2
279
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
ExecMan provides the following types of modes for adding members to a project:
• Normal Mode: The users with normal mode have access to all the projects. If the
project permission is changed to restricted, only those users can access the project
who are added to the project. To add a user/member to a project, use the following
command:
eman project update -permission restricted -u <user_name>
<project_name>
• Secure Mode: The users with secure mode have limited permissions. You need to add
users to a project to enable them to access it. For this, use the following command:
eman project members -add <user_name> <project_name>
Merging Sessions
Often, there is a need to merge the results of two or more sessions and produce the
union of these results. Following are some of the scenarios where it is required to merge
sessions:
• A large regression might have to be broken-down into multiple sessions. To see the
combined results for the entire regression, the results must be merged first.
• A regression might start failing midway because of a hardware or a resource problem
(for example, running out of disk space). Instead of rerunning the entire session, it
can be patched by running the remaining failed tests. The initial sessions and patch
sessions must be merged to see the complete results.
• Tests might be run ad-hoc by different team members, each of whom might focus on
their portion of the verification plan. Instead of running a redundant complete session, a
global view of results can be created by merging the ad-hoc sessions.
This section illustrates how to merge data from two or more sessions within the ExecMan
database. The merge_session sub-command passed to the eman project command
enables you to merge two or more sessions. Its syntax is as follows:
eman project merge_session [-p|-project <project_name>] [-c|-config
<config>] [-overwrite] [-target_session <target_session>]
<session_primary> <session_2> <session_n>
Note:
-overwrite and -config cannot be used in the same command line. When the
-overwrite option is used, an existing session receives the merged data and that
session’s configuration is used. Therefore, using -config with -overwrite has no
effect. -overwrite and -target_session cannot be used in the same command
line. If you specify that the session needs to be overwritten, and you specify a
VC Execution Manager™ User Guide
V-2023.12-SP2
280
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
non-existent session with -target_session, then -overwrite has no effect as the
new session does not have any data.
Where,
• <project_name> is the name of a project. If <project_name> is not provided,
$EMAN_PROJECT is used.
• <config> is the name of a configuration. If <config> is not provided, $EMAN_CONFIG
is used. If the given configuration name is not present for the given project, a
configuration is created.
• -overwrite causes the target session (specified using -target_session) to be
overwritten with the merged results.
• -target_session instructs ExecMan to create a new session called
<target_session>. The <target_session> name can include characters AZ, a-z, 0-9, period(.), hyphen (-), and underscore(_). If neither -overwrite nor
-target_session is provided, then ExecMan generates a new session name for the
merged data. It is legal for <target_session> to already exist.
The <target_session> names starting with hyphen(-), must be included within double
quotation marks, as shown in the following example: -target_session="-abcd"
• <session_primary> is a primary session. The primary session and the order of the
sessions listed are important when merging tests.
• <session_2> is the first session to be merged.
• <session_n> are optionally the second, third, fourth, and so on sessions to be merged.
The order is important when merging sessions.
This section consists of the following subsections:
• Merged Data Values
• Merged Test Status for Completed Regression Runs
• Saved Verification Plan Data
• Session Attributes
Merged Data Values
Tests contain multiple categories of data and all the data is available in the merged
session. The data fields, such as test start, test end, and regression times are displayed
in the merged session. Additionally, tests include custom results as the files are saved in
cvsdepot.
If the status of the primary session (that is, the latest) is unknown or if the test is running,
ExecMan uses the previous session’s status to deduce merged session results. If the
VC Execution Manager™ User Guide
V-2023.12-SP2
281
Feedback
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
previous session also has an unknown status or if the test is running, ExecMan uses a
session, which has a valid status and uses the full test record from that session to merge
the results.
Consider the primary session as P and the secondary sessions as S[1-n].
• Sn is the most recent secondary session, that is, specified immediately after the
primary session in the command line
• S1 is the most former secondary session, that is specified at the very end of the
command line
• T is the Target Session
The results of the merged session in different phases of test execution are as follows:
Scenario of a Test Record
Merged Session Result
• P – fail
• S2 – pass (or any valid status)
• S1 – fail (or any valid status)
T – Contains the full test record from P
• P – unknown/test is running
• S2 – pass (or any valid status)
• S1 – fail (or any valid status)
T – Contains the full test record from S2
• P – unknown/test is running
• S2 – unknown/test is running
• S1 – unknown/test is running
T – Contains the full test record from P
• P – unknown/test is running
• S3 – unknown/test is running
• S2 – unknown/test is running
• S1 – pass
T – Contains the full test record from S1
Merged Test Status for Completed Regression Runs
The merged session results for completed regression runs are calculated as follows:
• Test pass/fail status: The test pass/fail result of a test from the “winning” (that is, the
leftmost) session specified in the command line is displayed in the merged session.
• Custom results: The set of custom results related to the winning test is copied to the
merged session. The set-union of custom results of the duplicate tests are not merged.
Consider a scenario in which a session merge is run using the following command:
% eman project merge_session S42 S41
VC Execution Manager™ User Guide
V-2023.12-SP2
282
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Assuming that both sessions contain a test called COMMON, consider that COMMON contains
the following custom results for each session:
S42: err_msg, cps
S41: err_msg, suberr_msg, cps
In this example, the merged session contains the custom results err_msg and cps from
session S42 for the COMMON test. The value of suberr_msg from S41 is not stored in the
merged session.
Saved Verification Plan Data
Verification plan data saved with eman plan save presents a challenge as a merging
session results in a large raw verification data that should be considered when annotating
the verification plan. This means that any existing annotated plan data from the source
session is not accurate for the merged session.
As a result, no annotated plan data should be copied to the merged session. Instead, you
should parallel merge/map the coverage data and then generate a new -xmlplan file to
save to the merged session.
Note:
As eman does not have the information required to merge/map .vdbs, it is
recommended to merge and map the data using the URG’s merge/map
capabilities.
An example of a complete merge script is as shown in the following commands:
% eman project merge_session -target_session MERGED S42 S41
% urg -dir "S42.vdb S41.vdb" -mapfile my_mapfile -dbname merged.vdb
-xmlplan
% eman plan save -session MERGED -xmlplan urgReport/plan.xml
Session Attributes
When you click Session Attributes, it shows the following information:
VC Execution Manager™ User Guide
V-2023.12-SP2
283
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
• EMAN_VERSION: Displays the installed version of the ExecMan.
• cmd_line: Displays the command line of the eman launch command.
• cvsdepot: Displays the path where merge files are stored.
• eman_rundir: Displays the path of the ExecMan run directory.
• merged_dir_path: Displays the path of the merged directory.
• saved_config: Displays the path of the configuration file of the target session or the
configuration file of the -config argument, if provided.
• spool_dir: Displays the path where log files related to tests are stored.
Sessions might also contain attributes for coverage scores. As eman project
merge_session does not have access to the raw coverage data, it cannot recompute
the coverage scores of the merged session and therefore, it cannot set coverage score
attributes in the merged session.
Other user-defined session attributes are not propagated to the merged session. For
example, if there is a user-defined session attribute that design version of the LSF job
name, those values do not appear in the merged session as there might be a conflict in
the values set for those user-defined attributes in the source sessions.
Merging Sessions With Duplicate Tests
It is possible that two sessions can contain tests with the same name. In such scenarios,
the merge_session option chooses the copy of the test from the leftmost session listed on
the command line as the test to store in the merged session.
Consider the following command line:
eman project merge_session A B C
Now, consider that all these three databases contain a test called ABC, and both B, and C
contain a test called BC. In this example, merge_session chooses A's copy of ABC and B's
copy of BC.
VC Execution Manager™ User Guide
V-2023.12-SP2
284
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Limitation
ExecMan sessions are unique across an installation. Therefore, after a session is
generated for a given project and configuration, the same session name cannot be used
for any other project or configuration. The same limitation is applicable while merging
sessions. To add a session with the same name, you have to drop the old session first.
Continuing Sessions With Random Rounds
ExecMan allows you to run tests of a same session in a non-overlapping chunks. The
tests in a chunk may run in a random order, that is, do not necessarily run in the order
defined in the .emc file. You may run tests of a same session in the following ways:
• Partial Regressions
• Randomization
• Session Continuation
Consider a scenario in which you might run 20 percent of overall tests today and
remaining 20 percent on the next day, and so on. Note that the regression is executed
from where it was left and is not executed from the beginning every day. For example, if
you need to run 20 percent of overall tests in continuation for five days, use the following
command that takes 20 percent of overall tests in a random order:
eman -regr_config config.emc -local_host -percent_run 20 -session_name
session1 -continue_session -random_order
-percent_run, -continue_session, and -random_order are explained in the
subsequent sections.
Partial Regressions
ExecMan enables you to limit the execution of the number of tests in the current session
using the -percent_run option, as follows:
eman -regr_config config.emc -local_host -percent_run <number_in_percent>
-session_name <session_name>
For example, if you want to execute 20% of the tests in a session, use the following
command:
eman -regr_config config.emc -local_host -percent_run 20 -session_name
session1
Consider the following execution pattern of tests as specified in the .emc file:
b1: t1, t2, t3, t4, t5
b2: t6, t7, t8, t9, t10
VC Execution Manager™ User Guide
V-2023.12-SP2
285
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
If you use the above -percent_run command with percent as 20 (20% of 10 tests), the
command executes the following tests:
b1: t1
b2: t6
If the defined number is not divisible to the given percent, the resulting amount up to the
nearest integral number is considered. For example, 20% of 11 tests result in 3 tests,
therefore, four rounds (3, 3, 3, 2) are executed.
If the resulting percent is a fraction of 1, only one test is considered. For example, 30% of
1 or 2 or 3 tests result in one test.
Randomization
ExecMan enables you to execute all tests in a session randomly using the -random_order
switch, as follows:
eman -regr_config config.emc -local_host -random_order -session_name
<session_name>
Note:
Randomization is done both on builds and tests.
For example, if the execution of tests in a build is specified in the .emc file in the following
order:
b1: t1, t2, t3, t4, t5
b2: t6, t7, t8, t9, t10
When -random_order is used, builds and their tests may execute in the following order:
b2: t7, t6, t9, t10, t8
b1: t3, t2, t1, t5, t4
Session Continuation
ExecMan provides the -continue_session switch to run the continuous rounds of a
session specified using -session_name, as follows:
eman -regr_config config.emc -local_host -session_name <session_name>
-continue_session
The -continue_session switch executes those tests that are not executed previously.
Migrating Session Data to a Centralized MySQL Server
In the database server mode, you might have several instances of ExecMan installed
where you would have the generated session data. To consolidate such data from the
database server mode or from several isolated MySQL server instances, VC Execution
VC Execution Manager™ User Guide
V-2023.12-SP2
286
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Manager provides an interface to migrate the scattered data into a centralized MySQL DB
server. The eman data migrat command enables you to migrate such data.
To migrate session data to a centralized MySQL Server, use the eman data migrate
command. This command provides a list of options to perform data migration in the
following sections:
• Options to Specify Source Sessions
• Options to Manage Migrated Sessions
• Options to Specify the Migration Operation
Options to Specify Source Sessions
You can use the following options with the eman data migrate command to specify the
origin of a source session:
-source_server
<source_server>
To specify the source server from where you want to search the sessions.
Provide the setup file of the source ExecMan instance, as an argument
to this option. If the setup file is not specified, then the sessions are
searched from the current ExecMan instance.
-cvsdepot
<path_of_a_session> |
<path_of_a_session_pare
nt_folders>
To provide a path or list of paths (comma separated) to the folders that
is generated in the serverless mode in the cvsdepot hierarchy. A valid
folder must have synopsys_eman.setup and execman.db or should
include the setup file and execman.db in their sub folders.
-user <user>
To migrate all the sessions generated by a specific user. Here, <user> is
the user name. This is an optional option. By default, the current user is
considered as <user>.
-project <project>
To migrate all the sessions generated in a specific project. It is mandatory
to specify the -user option with the -project option. The -project
option is required if -config is specified.
-config <config>
To migrate all the sessions generated in a specific config. It is mandatory
to specify -user and -project options with the -config option. The
-config option is required if -session is specified.
-session <session>
To migrate the session data. It is mandatory to specify -project and
-config options. To specify multiple sessions, use a comma separated
list of session names.
VC Execution Manager™ User Guide
V-2023.12-SP2
287
Feedback
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Options to Manage Migrated Sessions
You can use the following options with the eman data migrate command to manage
migrated sessions:
-dup_session
{ignore,overwrite,
merge,rename}
-dup_test
{ignore,overwrite}
Use this option to handle session duplication, that is, if a session
name in a source server already exists in the target server.
ignore
Bypasses the source session. This is the default
option.
overwrite
Overwrites the session data in the target server
and copies the source session with the same
name.
merge
Merges the source session with the target
session data.
rename
Renames the session. ExecMan creates a
new session based on the existing session
name by appending a suffix to the existing
name. The renamed session is named in the
original_name_x format (where, x is a number
starting from 1).
Use this option to handle test case duplication when merging two
sessions with the same name.
ignore
Bypasses source test cases. This is the default
option.
overwrite
Overwrites the test cases in the target server
with source test cases.
-target_project
Renames the container project in the target server with the name
(argument) provided to this option. If a session already exists and
if -dup_session merge is provided, then ExecMan ignores this
option.
-target_config
Renames the container config in the target config with the name
(argument) provided to this option. If a session already exists and
if -dup_session merge is provided, then ExecMan ignore this
option.
-target_session
Renames the session name in the target session with the name
(argument) provided to this option.
VC Execution Manager™ User Guide
V-2023.12-SP2
288
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Options to Specify the Migration Operation
If the source server and the target server are geographically isolated, you can migrate
session data using the -export and -import options. The data is stored in the static files
that is imported/exported to the required server:
-export -target_dir
Dumps the source sessions data into the static files in the target
directory specified using the -target_dir.
-import -source_dir
Imports the existing session data from the static files in the source
directory, which is generated by the export functionality.
The following sections describe how to migrate data from different source locations or
servers:
• Migrating Session Data Generated in MySQL Server to Another MySQL Server
• Migrating Session Data From Geographically Isolated Servers
Migrating Session Data Generated in MySQL Server to Another MySQL Server
You might have several instances of ExecMan installed with MySQL attached to each
instance of ExecMan. To migrate all the sessions’ data into a single MySQL server, use
the eman data migrate command. To specify the ExecMan source instance from which
you want to copy session data, use the following command:
eman data migrate -source_server <path_to_synopsys_eman.setup>
The synopsys_eman.setup file is generally located in the $EMAN_HOME/data/depot/.
To filter the required sessions, use the following command line:
% eman data migrate -source_server <path_to_synopsys_eman.setup> -user
<user> [-project <project> [-config <config>
[-session <session1,session2,…>] ] ]
The target server is the MySQL server attached to the current instance of ExecMan.
For details on these options, see Options to Specify Source Sessions.
Data Migration Command Lines
VC Execution Manager™ User Guide
V-2023.12-SP2
289
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
This section details the various commands you can use to migrate data from one MySQL
to another MySQL server:
Syntax 1:
To migrate all sessions’ data from a source server to a target server, provide the path of
the synopsys_eman.setup file, as shown in the following command:
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src>
You can also filter sessions’ data based on users, projects, configurations, and sessions,
as shown in the following commands:
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user>
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user> -project
<project>
%eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user> -project
<project> -config <config>
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user> -project
<project> -config <config> -session <session1>,<session2>,<session3>
Syntax 2:
To rename a session in the target server, include the -dup_session -rename option. All
the listed sessions are renamed to the <original_name>_1 name format. You can also
overwrite or merge the sessions in the target server.
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user> -project
<project> -config <config> -dup_session overwrite|rename|merge
Syntax 3:
To merge a session in the target server, include the -dup_session -merge option and
to overwrite the test case in the target server, use the -dup_test overwrite option, as
shown in the following command:
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -user <user> -project
<project> -config <config> -dup_session merge -dup_test overwrite
VC Execution Manager™ User Guide
V-2023.12-SP2
290
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Syntax 4:
To change the project in which the target session resides in, include the -target_project
project_x, as shown in the following command:
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -dup_session rename
-target_project project_x
All the listed sessions are renamed to <original_name>_2 and are created in project_x.
You can also use the -target_config config_x option to change the configuration in
which the target session resides:
% eman data migrate -source_server
<path_to_synopsys_eman.setup_of_EMan_src> -dup_session rename
-target_config config_x
Migrating Session Data From Geographically Isolated Servers
In scenarios where the source server and the target server are isolated and you are not
able to access such servers from the same machine, then you can use the eman data
migrate command to consolidate the data. You can migrate the data using the export and
import data migration functionalities.
The -export option dumps all the session data to static files to the argument specified
to -target_dir. The -import option loads all the session static files to the argument
specified to -source_dir in the current ExecMan instance of MySQL server. To indicate
from where to search the sessions for exporting, you can also use the -export option with
the options described in the Options to Specify Source Sessions section. Similarly, the
-import option can work with the options described in the Options to Manage Migrated
Sessions section.
Data Migration Command Lines
Syntax 1:
To dump the sessions from the folders generated in the cvsdepot in serverless mode to
separate static files in the target directory, use the following command:
% eman data migrate -cvsdepot <path1,path2> -export -target_dir <path>
Syntax 2:
To dump the sessions from the current ExecMan instance of MySQL server to separate
static files in the target directory, use the following command:
% eman data migrate -user <user> [ -project <project> [-config <config>
[-session <session1,session2,…>] ] ] -export -target_dir <path>
VC Execution Manager™ User Guide
V-2023.12-SP2
291
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Syntax 3:
To dump the sessions from the current ExecMan instance of the serverless depot to the
separate static files in the target directory, use the following command:
% eman data migrate -serverless -user <user> [ -project <project>
[-config <config> [-session <session1,session2,…>] ] ] -export
-target_dir <path>
Syntax 4:
To load the sessions from the static files in the source directory to the current ExecMan
instance of the MySQL server, use the following command:
% eman data migrate -import -source_dir <path_to_static_files>
The source directory must be the target directory of another -export command.
To rename the target project/config/session or handle common test cases with the
-import option, you can also add the options described in section Options to Manage
Migrated Sessions:
% eman data migrate -import -source_dir <path_to_static_files>
-dup_session rename -target_project <project>
Stopping a Session
A session owner or an administrator can stop the test runs in a session or stop the
complete session when required. To stop a test run or a session, use the following syntax:
% eman session stop [-p|-project <project_name>] [-c|-config
<config_name>] [-t|-tests <tests>] [-session <sessions>]
Where,
• <project_name> is the name of the project that has to be stopped. If <project_name>
is not specified, ExecMan considers $EMAN_PROJECT.
• <config_name> is the name of the configuration that has to be stopped.
• <session_name> is the session that has to be stopped.
• <test> is the name of the test that has to be stopped. You can specify one or more
tests. To specify multiple tests, use a comma separated test list.
If -t|-tests is not specified, the complete session is stopped:
% eman session stop -project <project> -config <config> -session
<session>
VC Execution Manager™ User Guide
V-2023.12-SP2
292
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
To stop the tests listed with -t|-test, use the following syntax:
% eman session stop -project <project> -config <config> -session
<session> -tests <build1/test1,build2/test2>
It is mandatory to include the build name with the test name while specifying the test
names.
Deleting a Session
An administrator can delete a session. To delete a session from the database, use the
following command:
% eman project drop_session -s|-session <session_name>
This command sets the specified session into an inactive state, keeping all data intact.
To completely delete a session, use the following command:
% eman project drop_session -p <project_name> -b|-blast -s|-session
<session_name>
This command deletes all session data from the database and the CVS repository
permanently.
Deleting Specific Tests and Builds
ExecMan enables you to delete specific tests and builds of a session only instead of
deleting the entire session. Once such tests and builds are deleted from the session, these
are removed from the ExecMan database. Here is the command used for deleting specific
tests and builds:
eman project drop_scope -session <session_name> -scope <tests/builds>
If the scope is a build, then all tests under the build are removed from the session. If the
scope is a group, then all tests and builds under this group are deleted from the session.
Note:
Deleting any scope with the -b or -blast option removes the scope spool
status and log files.
VC Execution Manager™ User Guide
V-2023.12-SP2
293
Chapter 7: Managing and Administering Projects
Managing Data and Server Using the eman Command
Feedback
Few examples:
• To delete a test named my_test (status pass) under build b1 of session s1, use the
following command:
eman project drop_scope -session s1 -scope b1/my_test
In this example, the my_test test under build b1 of session s1 is removed. After the
aggregation values are computed again, aggregation tables are updated accordingly,
that is, total pass value is decreased by 1 and total tests is also decreased by 1.
• To delete a build named b1 (has 2 pass tests and 1 fail) under session named s1, use
the following command:
eman project drop_scope -session s1 -scope b1
In the example, build b1 under session s1 with all of its tests is removed from session
s1. After the aggregation values are computed again, aggregation tables are updated
accordingly, that is, total pass value is decreased by 2, total fail by 1, and the total
number of tests is decreased by 3.
• To delete two builds named b1 and b2 (have 2 pass tests and 1 fail - total per the two
builds) under session named s1, use the following command:
eman project drop_scope -session s1 -scope b1,b2
In the example, builds (b1, b2) under session s1 with all its tests
are removed from session s1 After the aggregation values are computed again,
aggregation tables are updated accordingly, that is, total pass value is decreased by 2,
total fail by 1, and the total number of tests is decreased by 3.
• To delete two tests named my_test1, my_test2 (status pass) under build b1 of session
s1, use the following command:
eman project drop_scope -session s1 -scope b1/my_test1, b1/my_test2
In this example, tests my_test1, my_test2 under build b1 of s1 are removed from
session s1.After the aggregation values are computed again, aggregation tables are
updated accordingly, that is, total pass value is decreased by 2 and total number of
tests is decreased by 2.
• To delete test group named G1 (has 10 pass tests and 1 warning) under build b1 of
session s1, use the following command:
eman project drop_scope -session s1 -scope G1
In the example, when group G1 of build b1 under session s1 is removed, 11 tests
of this group are also removed. After the aggregation values are computed again,
aggregation tables are updated accordingly, that is, total pass value is decreased by
10, total warning is reduced by 1, and total number of tests is decreased by 11.
VC Execution Manager™ User Guide
V-2023.12-SP2
294
Chapter 7: Managing and Administering Projects
Extracting Predefined Errors From a Log File
Feedback
• To delete test with random seed named random_test1 (has 3 pass tests) under build
b1 of session s1, use the following command:
eman project drop_scope -session s1 -scope b1/random_test1
In the example, random test (random_test1) and its three sub tests are removed.
After the aggregation values are computed again, aggregation tables are updated
accordingly, that is, total pass value is decreased by 3 and total number of tests is
decreased by 3.
Extracting Predefined Errors From a Log File
You can search the predefined errors from a log file using the extract command. The
error that has the highest priority and that appears earlier in the log file is displayed as the
search result.
For details about log files analysis and navigation as well as some basic details about
error patterns definition, click this demo video.
To search the predefined errors, use the extract command using the following syntax:
% eman extract -error_pattern_file <error_pattern> -log_file <log_file>
-name <test_name or build_name> -print_all_errors True
where,
• -error_pattern_file accepts the name of the error patterns file (.eme) from where
you need to extract error patterns.
• -log_file registers the log file for a test case.
• -name accepts the name of a test or build.
• -print_all_errors prints all the error messages reported in the log file instead
of printing only the first error message. This option accepts a Boolean value
(True/False). Its default value is False.
Note:
It is mandatory to include all the options that are provided in this command
line.
The search results are displayed on the terminal if no other option, such as -info_file
<info_file> or -vdb <vdb>, is provided in the command line, as shown in Figure 39.
VC Execution Manager™ User Guide
V-2023.12-SP2
295
Chapter 7: Managing and Administering Projects
Extracting Predefined Errors From a Log File
Figure 39
Feedback
Search Results
If -info file or -vdb is provided in the command line, the searched result is saved in the
spool or vdb.
Note:
The eman extract command is a read-only command by default. However,
when -info file is used with eman extract or if the EMAN_INFO_FILE
environment variable is set during a regression run, its results are uploaded to
the ExecMan database. For example, if the scope that is passed to -name is
incorrect, then incorrect results are uploaded into the relevant session in the
database.
If a search result finds a matching group defined in error pattern expression, the matched
result is treated as custom value and written into spool/vdb with the status as normal. A
sample pattern is as shown in Figure 39: Severity/Module/File/Time/ID/Description
are the defined match group and are custom_values in result. Status searched from log
file has higher priority over command line.
Extracting and Saving Errors to Databases
To extract errors from log files and to save them to the associated databases, use the
-vdb option, as shown in the following syntax.
% eman extract -error_pattern_file custom_status_patterns.eme -log_file
test_add.log -name bld1/test_add -c cmd:run -vdb bld1.vdb
This command also saves the results for each test. Optionally, you can use
-custom_values n:v in this command line to specify the custom values to be saved with
a test case.
VC Execution Manager™ User Guide
V-2023.12-SP2
296
Chapter 7: Managing and Administering Projects
Extracting Predefined Errors From a Log File
Feedback
Extracting and Saving Errors Into an ExecMan Session
To extract errors from log files and to save them into a session, use the -info_file option
as shown in the following command:
% eman extract -error_pattern_file custom_status_patterns.eme -log_file
test_add.log -name bld1/test_add23 -scope_type debug_testcase -c cmd:run
-c name:test -c status:unknown -b status:fail -info_file test.info
Optionally, you can use the following options in this command line:
• -scope_type [testcase|build|debug_build|debug_testcase |project|
config|session]
• -builtin_values (-b)
• -custom_values (-c)
To use the info file generated using TestAPI with the extract command:
1. Start testapi to get the required info file.
2. Run the extract command with the generated info file.
3. Stop testapi after the extraction of errors.
Ensure that the eman session is alive when extracting from log, which also saves the
result into the same session.
Specifying Multiple Error Pattern Files
ExecMan enables you to specify multiple error pattern files (.eme) with the eman extract
command using either of the following two ways:
• Specify .eme files anywhere in the eman extract command as follows:
eman extract <error_pattern_file1.eme> -log_file
<log_file> -name <test_or_build_name> <error_pattern_file2.eme>
For example:
eman extract moduleA.eme -log_file <log_file> -name
<test_or_build_name> test1.eme
You can also use wildcards to specify error pattern files as shown in the following
example:
eman extract *.eme -log_file <log_file>
-name <test_or_build_name> test?.eme
VC Execution Manager™ User Guide
V-2023.12-SP2
297
Chapter 7: Managing and Administering Projects
Extracting Predefined Errors From a Log File
Feedback
Note that error pattern files must be specified without quotation
marks.
• Specify a list of error pattern files in a single file using the -eme_list option as follows:
eman extract -eme_list eme_files_list.txt
You can specify the -eme_list option after per eman extract command.
Note that the -error_pattern_file option will be deprecated in future releases. For now,
ExecMan supports this option for backward compatibility.
VC Execution Manager™ User Guide
V-2023.12-SP2
298
Feedback
8
Planning and Coverage Features
VC Execution Manager runs regression jobs, collects regression results, annotates these
results back to the verification plan, and provides reporting capabilities.
ExecMan regression engine automatically merges coverage data from each test run.
Coverage reports generated for a run and other output files are stored in a relational
database. You can view stored coverage reports and other files, including trend charts
over time for coverage and other metrics using the Web-Based UI and the Verdi GUI.
ExecMan provides a plan-driven grading and test grading, which can be used to rank tests
by how you target coverage in your executable verification plan.
For details on planning and coverage features with ExecMan, see the following sections:
• Enabling or Disabling Coverage
• ExecMan With Coverage and Back-Annotation
• Coverage Merge Process
• Merging Tests of a New Session With Parent Sessions
• Types of Merges Coverage Databases
• Merge Method
• STDOUT Errors in Merge Server
• Merging Session and Coverage Using the Verdi GUI
• Test Grading
• Plan-Driven Grading
• Plan Integration
• Database-Based Plan Management
VC Execution Manager™ User Guide
V-2023.12-SP2
299
Chapter 8: Planning and Coverage Features
Enabling or Disabling Coverage
Feedback
Enabling or Disabling Coverage
ExecMan provides two variables, namely compile_cm_opts and runtime_cm_opts, to
enable or disable coverage at compile time and runtime respectively. You can define these
variables in the variables block of the ExecMan configuration file as follows:
These two variables, namely compile_cm_opts and runtime_cm_opts, can also be
set on the block level. In this scenario, local variables overwrite the global variables. For
example, variables can also be defined inside the build/tests block as follows:
ExecMan internally populates the environment variables, namely EMAN_CM_COMPILE and
EMAN_CM_RUNTIME, with the content of compile_cm_opts and runtime_cm_opts variables
respectively and other cm options:
setenv EMAN_CM_COMPILE "-cm_dir $EMAN_CM_DIR -cm_name $EMAN_CM_NAME
$compile_cm_opts"
setenv EMAN_CM_RUNTIME -cm_dir $EMAN_CM_DIR -cm_name $EMAN_CM_NAME
-cm_test $EMAN_CM_DIR/$EMAN_CM_NAME $runtime_cm_opts
ExecMan appends EMAN_CM_COMPILE at the end of the build run_cmd separately if
ExecMan detects that a command vcs is used directly to run the build and -merge_diris
given. If -merge_dir is not specified, EMAN_CM_RUNTIME variables are set to empty and
builds block is not run with coverage options.
ExecMan does not append EMAN_CM_COMPILE and EMAN_CM_RUNTIME variables to your
script. You need to dereference EMAN_CM_COMPILE and EMAN_CM_RUNTIME variables in the
script.
VC Execution Manager™ User Guide
V-2023.12-SP2
300
Chapter 8: Planning and Coverage Features
ExecMan With Coverage and Back-Annotation
Feedback
ExecMan With Coverage and Back-Annotation
ExecMan enables you to back-annotate coverage scores and plan data. As an example,
use the quickstart example and run the following eman command with my_config.emc to
enable planning and coverage in regression run:
% eman -merge_dir merged -regr_config my_config.emc -plan
compdir/jukebox.hvp -local_host
where,
• The -merge_dir option enables you to create a directory where the coverage merging
is performed using the URG merge commands.
• The -plan option is passed to include the HVP/Excel plan that needs to be backannotated.
VC Execution Manager™ User Guide
V-2023.12-SP2
301
Chapter 8: Planning and Coverage Features
ExecMan With Coverage and Back-Annotation
Feedback
Note:
You can find the VC Execution Manager Quickstart example in the
installation directory at: <ExecMan_install_dir>/VMS/examples/
quickstart
VC Execution Manager™ User Guide
V-2023.12-SP2
302
Chapter 8: Planning and Coverage Features
ExecMan With Coverage and Back-Annotation
Feedback
The following is the snapshot of running a regression with coverage and
plan enabled:
VC Execution Manager™ User Guide
V-2023.12-SP2
303
Feedback
Chapter 8: Planning and Coverage Features
ExecMan With Coverage and Back-Annotation
You can review the merged coverage results and the planner results with the displayed
URL. Note that the URL in the snapshot is different from the URL on your screen.
Note:
If you are using an XML file to annotate plan and coverage results in ExecMan,
use the eman plan save command. The plan.xml file that eman needs for
the -xmlplan option is generated via URG’s -xmlplan option, as shown in the
following command lines:
% urg -dir my.vdb -plan jukebox.hvp -xmlplan
% eman plan save -session COVERAGE -xmlplan urgReport/plan.xml
For information about generating the xml file, see section “Reporting HVP
Annotated Results in XML Format” in the “Verification Planner User Guide”. You
can also generate this xml file using Verdi.
Viewing Coverage Data in Verdi
To view coverage data, the data first has to be generated. You can generate coverage
data using the -merge_dir or -merge_cov_dir option with the eman command as follows:
eman -regr_config regr.emc -keep_spool -merge_dir merge_data
or
eman -regr_config regr.emc -keep_spool -merge_cov_dir merge_data
Note:
In the .emc file, you need to define coverage attributes. For example, define
coverage attributes in the tests block as follows: -name: random_test1
build: first_build
arguments: -cm line+cond+fsm
If multiple merged coverage databases exist, a new coverage database is created,
merge_all.vdb, which is the combined coverage data for all builds.
You can access the merged coverage databases in the following ways:
1. Click the
button in the Action column.
2. Click the database name in the Merge table in the Builds page.
3. Click the
button or click the
The following figure shows
VC Execution Manager™ User Guide
V-2023.12-SP2
and
button in the session table.
buttons:
304
Chapter 8: Planning and Coverage Features
Coverage Merge Process
Feedback
Coverage Merge Process
Coverage databases are incrementally merged when tests are over and successful, and
that is done on-the-fly using the server technology.
With the -merge_server option, there is an option, show_intermediate_results, in
the .emc that controls if the merge process is done on-the-fly or starts after all the tests are
finished. By default, the show_intermediate_results option is set to "0" (False).
Note:
When simv is run without -cm_dir and -cm_name, set the
show_intermediate_results option to 0 in the .emc to merge only the
coverage results of the last test.
VC Execution Manager automatically discards the failing tests for merging. When all
tests fail, ExecMan skips the merge process. To allow ExecMan to merge any available
test runtime VDB regardless of its test status, use -enable_merge_on_fail_test.
Alternatively, you might set the EMAN_ENABLE_MERGE_ON_FAIL_TEST environment variable
to 1.
ExecMan uses -merge_only to merge the runtime VDBs produced in previous sessions.
The syntax of -merge_only is as follows:
eman -merge_only -regr_config <config_filename> -parent_session
<session_name> -merge_dir <merge_directory>
This section consists of the following subsections:
• Merging With a User-Defined Test Script
• Coverage Merging and Multiple Builds
• Setting Test Run Scripts
Merging With a User-Defined Test Script
If you run tests via a test script, ensure that you provide an appropriate test name when its
data is added to the coverage database.
VC Execution Manager™ User Guide
V-2023.12-SP2
305
Chapter 8: Planning and Coverage Features
Coverage Merge Process
Feedback
When you run simulations with coverage, specify names for your coverage results as
these names are used to uniquely identify the sources of your coverage data at report
time. You should use the -cm_name option to assign a unique name to each simulation run.
For example, to assign names to two runs while storing the data in the base directory,
execute the following commands:
% mysimv -cm line+cond+fsm -cm_name test1 …
% mysimv -cm line+cond+fsm -cm_name test2
If you do not specify a name or alternate directory at simulation time, your coverage
results overwrite data collected in the previous simulation runs.
Without the -cm_name flag, the default name "test" is used for each run. When you
generate a grading report with URG, the coverage score for each of these separate runs
are labeled using the test name you assigned.
You might want to store your coverage data results in a different directory than the
directory in which you compiled it. This could be to organize the results (for example,
storing all the coverage for tests of one part of the design in a different directory than the
data for tests targeting other parts of the design), or to ensure that different users do not
overwrite each others data (for example, if they both use the same -cm_name argument).
To store more test data in another directory, use the -cm_dir option in the simulation
command line.
For example:
mysimv -cm line+cond+fsm -cm_dir <target_dir>/<build_name> -cm_name test1
…
The -cm_dir option creates <target_dir>/<build_name>.vdb. The <target_dir>
is created if the target directory does not exists. The previous command creates the
<build_name>.vdb directory.
Coverage Merging and Multiple Builds
If a configuration defines multiple builds, this might conflict with the ability of VC Execution
Manager to merge coverage data from those builds. If you enable coverage merging in
Execution Manager, ensure that your builds are merge-compatible. The builds are mergecompatible if they have the same design shape. The differences in builds that result in
different design shapes might prevent VC Execution Manager from merging coverage
data for the complete regression. The examples of build differences that can affect design
shape are linking to different modules, parameterized blocks with different attributes, and
gate level versus RTL representations.
VC Execution Manager™ User Guide
V-2023.12-SP2
306
Chapter 8: Planning and Coverage Features
Merging Tests of a New Session With Parent Sessions
Feedback
Note:
Covergroups can be different for each run. However, the designs used for each
run must be identical if code coverage scores should be merged.
Setting Test Run Scripts
ExecMan provides the runtime environment variable named $$EMAN_CM_DIR, which is set
to the name of the coverage database where ExecMan expects to find coverage data. To
get the path of the coverage data, pass the following command to simv:
simv -cm_dir $$EMAN_RUNDIR/$$EMAN_CM_DIR
Here, $$EMAN_CM_DIR is relative to $$EMAN_RUNDIR.
While merging using -disable_merge_server, ExecMan creates a $merge_dir/merged/
$build_name.vdb, which contains symbolic links to the VDBs of each test. Therefore,
vdblist contains only the following two VDBs:
1. A compile-time design VDB
2. A hyperlinked VDB that links all runtime VDBs
Merging Tests of a New Session With Parent Sessions
ExecMan enables you to merge all tests defined in a parent session with the ones in a
new session even if all parent tests are not defined in the new session. To enable this
feature, set the EMAN_USE_PARENT_SESSION_EMC to 1 and use -parent_session with
-merge_only.
As you know, -merge_only is used to merge the runtime VDBs produced in previous
sessions. For example, consider the following scenario in which tests defined in the .emc
files of Session A and Session B are different:
• Session A has two tests, test 1 and test 2.
• Session B has two tests, test 3 and test 4.
When -merge_only is used in this example, it merges Session A and Session B to
produce Session C that contains all four tests, test 1, test 2, test 3, and test 4.
Consider another scenario in which Session C is merged with a new session having test 1
and test 2. If the -parent_session option is not used with the -merge_only option, then
the resultant VDB only contains tests present in the new session. However, to merge tests
VC Execution Manager™ User Guide
V-2023.12-SP2
307
Chapter 8: Planning and Coverage Features
Types of Merges Coverage Databases
Feedback
defined in both the parent session and the new session, use the following command after
setting the EMAN_USE_PARENT_SESSION_EMC environment variable:
eman -merge_only -regr_config <config_filename> -parent_session
<session_name> -merge_dir <merge_directory>
Types of Merges Coverage Databases
Coverage merge supports the following two types of merge:
• Full Merge
• Build Block Merge
Full Merge
In full merge, coverage databases from all builds and tests are merged into a single
database. In the default merge method, it is done hierarchically, as explained below.
For this merge, use the -urg_opts command-line option to handle merge behavior, such
as mapping.
Note:
For full merge, the -urg_options option in any individual build block does
not have any effect on the -urg_opts option that is passed to URG. The
-urg_opts option takes higher priority over -urg_options.
Build Block Merge
In the build block merge, coverage databases of one build and all its associated tests are
merged to the merge database defined by the merged_vdb option in that build block.
When the same value of merged_vdb option is defined in a number of builds, all these
builds will be hierarchically merged in the same merge database. The value of the
urg_options option, defined in the block, is appended to the URG command. When
urg_options are not defined, ExecMan uses the urg_opts option.
Merge Method
The default method of merging the coverage databases is implemented using the server
technology. The main principle of it is that the runtime VDBs are merged incrementally
without waiting until the end of the entire regression.
VC Execution Manager™ User Guide
V-2023.12-SP2
308
Chapter 8: Planning and Coverage Features
Merge Method
Feedback
Hierarchical Approach
The merge is performed in a hierarchical manner where block-level and global merges
form the upper level of the hierarchy. The next level is formed by build merges. Build
merges are merges of a compile-time VDB of a given build together with its runtime VDBs.
When -parallel_merge is used, there is another level to merge several groups of tests
together. For details on parallel merge, see Parallel Merge.
In hierarchical approach, coverage databases are merged bottom up, where when there
is an update on the lower level it is propagated up. Thus, the upper level VDBs are kept
always valid and available for users.
Note:
URG options provided by users (both in the .emc file and through the
command-line switch) are applied only in the upper level of hierarchy.
Disabling Intermediate Merges
If for some reason the intermediate merging is not desirable, you may use
-show_intermediate_results:0 to direct ExecMan to perform merges only after the
regression is finished.
Defining Merge Per Build
To view separate merge for each build, use the following:
-show_individual_build_merges:1
In this case, the merge table in the GUI automatically shows merges for individual builds,
even if they are not defined in the EMC file.
These individual build merges are shown with a special prefix "---" (three dashes) which
allows to distinguish them from the user-defined block-level merges with the same names,
as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
309
Chapter 8: Planning and Coverage Features
Merge Method
Feedback
Parallel Merge
When there is a big number of tests, you may want to parallelize the merges. When
-parallel_merge is more than 1, ExecMan divides the merge for each build in a number
of parallel merges, which are merged together on the next level of the merge hierarchy.
The parallelization factor is defined when defining the option:
- parallel_merge: <N>
Note that setting -parallel_merge to either 0 or 1 indicates "no parallelization".
Parallelization is also affected by the batch_size option.
The following diagram shows the situation when we have 2 builds, parallelization factor is
set to 4, and batch size is set to 10. In this figure, we assume that there are more than 40
tests per build.
VC Execution Manager™ User Guide
V-2023.12-SP2
310
Chapter 8: Planning and Coverage Features
Merge Method
Feedback
Note:
Parallel merge is useful in the following two cases:
• When -show_intermediate_results is off (set to 0)
• When there is a huge number of tests finishing about the same time. It shall
not be applied for the small number of tests and may cause performance
issues.
Skipping Failed VDBs
Optionally ExecMan might ignore a single failed VDB and continue the merge. The
default behavior is that when a VDB fails to merge, the entire merge fails. This feature is
controlled by the -skip_failed_vdb option.
Currently, this option applies to the following URG error:
Error-[UCAPI-XLE] Corrupted database file
Directory Structure
The internal structure of the directories used by merge is as follows: Under the coverage
directory specified by the -merge_dir switch, ExecMan creates a directory called
mergeserver_data, and a <session> directory is created under mergeserver_data. For
example:
merge_dir/mergeserver_data/session_<user_login_name>_20200701_015514
This is the working directory of the merge, where it creates the logs directory, directories
for individual builds and for global merge, called full_merge. The logs directory is called
merge_server.log in which ExecMan keeps URG command logs, overall debug log,
called merge_server.log. Overall merge summary is created under merge.log.
The example of a simple merge.log is as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
311
Chapter 8: Planning and Coverage Features
Merge Method
Feedback
Merge Options Usage
Merge configuration options are described in Structure of the ExecMan Configuration File.
An example of using merge option in the .emc file is as follows:
Alternative Merge Method
Along with the default merge method, you might merge coverage databases not using
the server technology. This is done by using the -disable_merge_server switch. In this
case, the merge is performed using URG at the end of regression runs after all tests are
complete.
VC Execution Manager™ User Guide
V-2023.12-SP2
312
Chapter 8: Planning and Coverage Features
STDOUT Errors in Merge Server
Feedback
STDOUT Errors in Merge Server
ExecMan prints out different STDOUT errors in URG merge failure. The following are the
STDOUT errors:
• EMAN-MERGESERVER-JRTO appears when the merge server job fails on timeout with the
custom status as Run_TimedOut.
• EMAN-MERGESERVER-URCF appears when the URG command fails.
• EMAN-MERGESERVER-MSJF appears when there is a failure during the execution of the
merge server job.
Merging Session and Coverage Using the Verdi GUI
Execution Manager supports both session and coverage merge. Session merge merges
the results of all selected session data and generates the union of these results in a new
session. Coverage merge enables you to merge coverage data, which results in a new
coverage database.
To perform both session and coverage merge, use the Merge button of VC Execution
Manager in Verdi. The Merge button does not automatically perform both session and
coverage merge; however, it provides you the option to choose the merge you need to
perform. If you perform both session and coverage merge together, the button generates
a merged session and a merged coverage database in a way that the merged database is
saved to the merged session.
To select the merge you want to perform, click the
button in VC Execution
Manager in Verdi to open the Merge dialog box (see the figure below):
VC Execution Manager™ User Guide
V-2023.12-SP2
313
Chapter 8: Planning and Coverage Features
Test Grading
Feedback
The Merge dialog box provides you with the option to merge session, coverage, or both. In
addition, it provides the following configurable options for session merge:
• Use auto-generated target session name: Generates a target session name
automatically. You can also specify a customized session name.
• Overwrite if target session already exists: Enables you to overwrite an existing
session if the session with the same name already exists. Select this option if the
specified session name already exists, otherwise merge fails.
The Merge button is only available with ExecMan 2017.03-SP1 and Verdi
2017.03-1 or above. To perform coverage merge with Verdi 2017.03-1, set the
EMAN_VERDI_COMPATIBILITY environment variable to 1 before starting the ExecMan GUI.
If the ExecMan GUI is running, then first stop it using the eman server shutdown_web
command. After setting EMAN_VERDI_COMPATIBILITY, use the eman server run_web
command to restart the ExecMan GUI.
Test Grading
By default, the test table on the Web UI does not show the test grading information, such
as total tests, graded tests, total score, and so on. To display the test grading information,
use the -merge_dir option with the eman command. The option enables the Grading
check box in the test table on the Web UI if a session contains grading data as shown in
the following figure:
Note:
If a session does not contain grading data, the Grading check box is disabled.
To switch between the grading mode and the normal mode, deselect the Grading check
box.
You can view the test grading information in the following three views:
• Hierarchical View
• Tree View
• Flat View
You can select these views from the View list box as shown in the figure above.
VC Execution Manager™ User Guide
V-2023.12-SP2
314
Chapter 8: Planning and Coverage Features
Test Grading
Feedback
Hierarchical View
In the hierarchical view, all grading-related columns, such as Total, Graded, Unused, Total
Score , and Incr Score are displayed. The following figure shows the hierarchical view
highlighted in orange and grading-related columns highlighted in purple:
In the hierarchical view, ExecMan displays test information sorted by the Incr Score
column. All grading-related columns are explained in the table below:
Column Name
Description
Total
Specifies the total number of tests. If it is a test group, it shows
the total number of seed tests that belong to this test group. If it
is a test or seed test, the value of this column is always 1.
Graded
Specifies the number of tests which contribute to grading.
Unused
Specifies the number of tests which do not contribute to grading.
Total Score
Specifies the total standalone score of a test. Only test or seed
test has the standalone score. The test group does not have
such value.
Incr Score
Specifies the total incremental score of a test. If it is a test group,
its value is the aggregated incremental score of all its seed tests.
[Metric] Total Score
Specifies the standalone score of a test for a certain metric. Only
test or seed test has the standalone score. The test group does
not have such value.
[Metric] Incr Score
Specifies the total incremental score of a test for a certain metric.
If it is a test group, its value is the aggregated incremental score
of all its seed tests.
VC Execution Manager™ User Guide
V-2023.12-SP2
315
Chapter 8: Planning and Coverage Features
Test Grading
Feedback
Along with grading columns, you can show or hide other predefined test information
columns by performing the following steps:
1. Click the Customize link (highlighted in the following figure):
2. The Customize link displays the Select Visible Columns dialog box as shown below:
3. Select the columns that you want to display and click OK.
Note:
By default, ExecMan hides test information columns in the grading mode.
However, you can reconfigure the table using the Select Visible Columns
dialog box.
Tree View
Similar to the Hierarchical view, the tree view displays grading-related columns such as
Total, Graded, Unused, Total Score , and Incr Score. The following figure shows the tree
view highlighted in orange and grading-related columns highlighted in purple:
VC Execution Manager™ User Guide
V-2023.12-SP2
316
Chapter 8: Planning and Coverage Features
Test Grading
Feedback
In the figure, random_test1, random_test2, test3, and test4 are at the same tree level.
ExecMan displays test information sorted by the Incr Score column. Therefore, they are
displayed as follows:
random_test1(40%)> random_test2(30%)> test3(10%)> test4(10%)
For all seed tests in the random_test1 test group are sorted together based on the Incr
Score column as they are at the same level. Therefore, these seed tests are displayed as
follows:
random_test1_1(20%)> random_test1_2(10%)> random_test1_3(5%)>
random_test1_4(5%)
Flat View
In the flat view, test information is displayed in a flat list view as shown in the figure below.
The flat view displays grading-related columns such as Total Score and Incr Score. It does
not show Total, Graded, Unused. The following figure shows the flat view highlighted in
orange and grading-related columns highlighted in purple:
VC Execution Manager™ User Guide
V-2023.12-SP2
317
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
Plan-Driven Grading
You can use the standard test grading capability to select a subset of tests for reaching
coverage targets based on the objects that those tests cover. For example, when the
coverage results for all of a given test suite are merged and reach 80% total coverage,
then test grading finds a subset of the those tests that together reach 80%; thus,
eliminating unnecessary tests.
You also use grading to put tests in "best first" order. If the tests are ordered in this way,
then you can select the best 100 tests to run to quickly cover as many targets as possible,
while spending significantly less time than it would take to run the full suite of tests.
Meanwhile, verification plans are used to organize, track and react as their verification
effort progresses. At a high level, a verification plan is a hierarchical organization of
features to be verified. Each feature is associated with it some number of coverage
targets, such as the scores of a given list of covergroups, or the code coverage of specific
regions of the design. After running their regression suite, you back-annotate the actual
coverage scores onto the plan so that you can see which areas of the plan are on track, or
need special attention.
Typically, parts of the plan (either subplans or feature hierarchies) are owned by different
parts of a verification team, and associated with different parts of the design team. When
a given feature has a low overall score, it is clear in terms of the user’s design where more
testing needs to be done.
Normally, test grading is always with respect to the design and testbench. It has no
awareness of the verification plan. Plan-driven grading allows you to grade tests, while
targeting only the coverage targets mentioned in the verification plan or in specified
features in the plan. This allows you to select tests based on the parts of the coverage
data they care about, down to the feature level.
VC Execution Manager™ User Guide
V-2023.12-SP2
318
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
Plan-driven grading allows you to automatically generate a list of the best tests for a
given feature in the plan. This gives each feature team a set of tests to use for checking
their changes. But also, if one of the selected tests is failing, then the failure can point to
specific features in the design that could be related to the failure.
Note:
This chapter uses the term test to mean a set of coverage results that can be
reproduced by rerunning one or more simulations. For traditional grading, each
test corresponds to a single simulation run. Synopsys takes a more general
approach here.
Method of Operation
To use plan-driven grading, you need a verification plan in a .hvp format and a coverage
database containing the generated coverage data for all the tests to be graded. Plandriven grading annotates the plan from the coverage database, and targets the metric
sources in the specified features. It then produces a list of tests in order. If you want to
grade against more features, then the process is repeated.
By treating plan-driven grading as regular grading, but only targeting the sources in a
given set of features, you finish with an ordered list of tests for each targeted feature (or
set of features).
Consider the following example of a plan. There are several features, some nested within
others. The coverage targets (sources) in the leaf (lowest level) features are shown in red.
plan myplan;
feature F1;
feature F2;
measure Line, Fsm, Condition M1;
source = "tree:top.st0.coin1";
endmeasure
endfeature
feature F3;
measure Line, Fsm, Condition M2;
source = "tree:top.st0.kp1";
endmeasure
endfeature
endfeature
feature F4;
feature F5;
measure Line, Fsm, Condition M3;
source = "tree:top.st1.coin1";
endmeasure
endfeature
feature F6;
measure Line, Fsm, Condition M4;
source = "tree:top.st1.kp1";
VC Execution Manager™ User Guide
V-2023.12-SP2
319
Feedback
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
endmeasure
endfeature
endfeature
endplan
Plan-driven grading on a set of 100 tests might find the following tests for each of the four
leaf features. Note that some tests are associated with more than one feature (test17 and
test38, for example), but many are unique at least among this group of features.
The primary property of the lists produced by grading is that the tests for a feature F are
sufficient to get the same level of coverage for F as would be achieved by merging the
data from all tests in the suite. Therefore, if F2 has 82% coverage for all tests, it also has
82% coverage from tests 27, 17, 93, 50, and 38, as shown in the following table.
Feature
Test List
Feature
Test List
F2
test27
F3
test17
F5
test17
test18
test93
test7
test50
test98
test38
test38
test92
F6
test47
test63
test32
test32
test5
test71
test63
test86
test93
Note that grading at the F1 level (the parent of F2 and F3) does not necessarily generate
a union of the test lists for F2 and F3. In this example, you might see the following table,
where some tests that did not appear in either F2 or F3’s list (example, test22 and test6)
are now showing up as a better choice when F1 is considered as a whole.
Feature
Test list
F1
test17
test22
test93
VC Execution Manager™ User Guide
V-2023.12-SP2
320
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feature
Feedback
Test list
test50
test7
test98
test22
test38
The intended flow is for you to identify useful tests and then use that test list for:
• A quick test suite targeted at a given feature. Once these tests are identified, you can
run them and know that anything associated with that feature covered by any test was
tested.
• A set test list for a given feature. After a test list is attached to a feature, the pass/fail
status of those tests show testing quality of that feature. For example, if test27 starts
failing a week after the grading was done, it is of special concern to the owner of the
feature F2 - as something might have broken in that part of the design.
• Conversely, if test27 is failing, it might be that the F2 team has broken something that
caused the failure.
• If the graded features are the highest priority, any tests not selected for one of them
can be put on a lower priority list for a full test suite runs.
Consider a plan that starts with part of the plan shown previously:
Plan
Feature F1
Feature F2
Feature F3
You can then run your regression suite with coverage enabled and generate a coverage
database for all tests. Plan-driven grading then reads that coverage database, and then
annotates the plan with tests for each feature, as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
321
Feedback
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
coverage from
passing tests in
run #1
hvp grade F2 F3
Plan
Feature F1
Feature F2
test27
test17
test93
test50
test38
Feature F3
test17
test18
test7
test98
test38
For example, these tests can be used to run targeted regressions for F2, as shown in the
following figure:
Plan
Feature F1
Feature F2
test27
test17
test93
test50
test38
Run tests targeting
feature F2
Feature F3
test17
test18
test7
test98
test38
They can also be used to check for feature-relevant failures from the subsequent
regression suite runs to highlight which features might have introduced bugs, as shown in
the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
322
Feedback
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Plan
Feature F1
Feature F2
test27
test17
test93
test50
test38
Run tests targeting
feature F2
Feature F3
test17
test18
test7
test98
test38
User Flow
When you want to invoke plan-driven grading, run the plangrade command to generate
the graded test lists and an HVP override file, as shown in the following syntax:
plangrade [-tests file] -plan planfile
[-userdata file [-userdata file2 …]]
[-mod filtfile [-mod filtfile2 …]]
[-all] -dir covdb1 [covdb2 …]
[-all_features] [-outdir]
Where,
• -testlist file – optional list of tests to be graded. If not given, all tests in the
specified covdb directories are graded.
• -plan planfile – required argument to specify the plan (in an .hvp format) whose
features should be graded. Each feature that contains a measure of metric test is
graded.
• -userdata file – specify a user-data file to be input to the plan (same as the URG
-userdata option).
• -mod file - specify a filter or override file to be input to the plan (same as the URG
-mod flag).
• -all – instead of grading against features with test measures, grade against all
features of a plan together. A single test list is generated, and no override file is
generated.
• -dir covdb1 [covdb2 …] – list of coverage vdb directories containing tests to be
graded. At least one covdb directory must be specified.
VC Execution Manager™ User Guide
V-2023.12-SP2
323
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
• -all_features – generate feature specific tests for all the features in the plan
• -outdir – specify output directory for saving the testlist files generated using the
-all_features option.
For each feature that contains a measure on metric test, a file is generated containing
the simple list of tests selected for that feature. The name of the file is test.featurepath,
where featurepath is the full path name of the feature in the plan.
If the –all option is given, grading is instead done for the full plan: every source in every
feature is considered in choosing the best list of tests for covering the plan as a whole.
When –all is used, the following files are generated:
• all.graded - Contains the graded list of tests for the plan.
• all.useless - Contains the list of tests not required to hit the total coverage of the
covdbs.
When –all is given, no feature-specific grading is done.
In addition, a single override file is generated for the entire plan, containing the override
statements to insert the selected tests into the annotated plan. For example,
% hvp annotate –plan myplan.hvp –dir simv.vdb –mod grade.over
or
% urg –dir simv.vdb –plan myplan.hvp –mod grade.over
The override file contains the list of graded tests for each targeted feature. When you
back-annotate the override file, those tests are automatically populated into the plan.
For example, if you have the following feature defined:
plan myplan;
feature F2;
measure test t2;
source = "";
endmeasure
…
endfeature
endplan
Then the generated override for feature F2 is as follows:
override grade;
myplan.F2.t2.source = "simv/test27", "simv/test17","simv/test93",
"simv/test50", "simv/test38";
endoverride
VC Execution Manager™ User Guide
V-2023.12-SP2
324
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
The tests appear in the report as any "test" measure specified by you. For example, if
there is a corresponding data file with test pass/fail information, then the generated report
is as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
325
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
If the user-data file matches does not match any of the graded tests, the report would be
displayed as follows:
You might have annotated some tests directly, independent of grading. For example,
feature F2;
measure test t2;
source = "f2test*";
endmeasure
…
endfeature
Plan-driven grading takes these tests as seed, and grade the remaining tests given that
those tests must be included in the list. So the F2’s resulting list would always start with
whatever tests were matched by f2test*, even if grading considers that they are not
useful tests. The remaining list would contain whichever tests were required to hit F2’s
maximum coverage score, in graded order. In this case, grading is just "finishing" the test
list that you started, based on coverage scores.
If the -all_features option is given, grading is done on the plan. Instead, tests specific
for every feature in the plan are identified and results are written to test.FEATPATH
for each feature in the plan. You can use the -outdir option to specify the path to the
directory where these files should be saved.
VC Execution Manager™ User Guide
V-2023.12-SP2
326
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
Using plangrade With Eman
ExecMan enables you to generate plans or features with their grading scores, including
total and metric grading scores for a new session using the -grade plangrade option
with eman, as follows:
eman -urg_opts='-grade plangrade -plan [plan_file]'
This command automatically appends the -xmlplan switch into the URG command and
loads plan grading data into the ExecMan database. The -xmlplan switch automatically
stores plan grading information in the plan.xml file.
To generate plan data for an existing session, use the following command:
eman plan save -xmlplan [plan.xml] -s [session_name]
Note:
Only one plan grading data can be associated with each session. If plan
grading data is already associated with the current session, use the
-remove_plan_data switch to remove the existing plan grading data, as
follows:
eman plan save -remove_plan_data -s [session_name]
When the -grade plangrade option is used with eman, the Grading box is displayed
above the test table on the Web UI if a session contains grading data as shown in the
following figure:
Note:
If a session does not contain grading data, the Grading box shows no grading,
as shown in the following figure:
To switch between the grading mode and the normal mode, select no grading from the
box. If a session contains both test grading data and plan grading data, the Grading box
shows the following modes: no grading, test grading, and plan grading.
VC Execution Manager™ User Guide
V-2023.12-SP2
327
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
You can view the grading information in the following three views from the View list box:
• Hierarchical View
• Tree View
• Flat View
Hierarchical View
In the hierarchical view, all grading-related columns, such as Total, Graded, Unused, Total
Score , Incr Score, and [Metric] Total Score are displayed. The following figure shows the
hierarchical view highlighted in orange and grading-related columns highlighted in purple:
In the hierarchical view, ExecMan displays test information sorted by the Incr Score
column. All grading-related columns are explained in the table below:
Column Name
Description
Total
Specifies the total number of tests. If it is a test group, it shows
the total number of seed tests that belong to this test group. If it
is a test or seed test, the value of this column is always empty.
This column exists only in the hierarchical view and tree view.
Graded
Specifies the number of tests which contribute to grading. This
column exists only in the hierarchical view and tree view.
Unused
Specifies the number of tests which do not contribute to grading.
This column exists only in the hierarchical view and tree view.
Total Score
Specifies the total score of a test. It is an aggregated score that
is equal to the total score of a previous test and the incremental
score of the current test. This column exists only in the flat view.
VC Execution Manager™ User Guide
V-2023.12-SP2
328
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
Column Name
Description
Test Score
Specifies the total standalone score of a test. Only test or seed
test has the standalone score. The test group does not have
such value.
Incr Score
Specifies the total incremental score of a test. If it is a test group,
its value is the aggregated incremental score of all its seed tests.
[Metric] Total Score
Specifies the total score of a test for a certain metric. It is an
aggregated score that is equal to the total score of a previous
test and the incremental score of the current test. This column
exists only in the flat view.
[Metric] Test Score
Specifies the standalone score of a test for a certain metric. Only
test or seed test has the standalone score. The test group does
not have such value.
[Metric] Incr Score
Specifies the total incremental score of a test for a certain metric.
If it is a test group, its value is the aggregated incremental score
of all its seed tests.
VC Execution Manager™ User Guide
V-2023.12-SP2
329
Chapter 8: Planning and Coverage Features
Plan-Driven Grading
Feedback
Along with grading columns, you can show or hide other predefined test information
columns by performing the following steps:
1. Click the Customize link (highlighted in the following figure):
2. The Customize link displays the Columns Customization dialog box, as shown
below:
3. Select the columns that you want to display and click OK.
Note:
By default, ExecMan hides test information columns in the grading mode.
However, you can reconfigure the table using the Columns Customization
dialog box.
Tree View
Similar to the Hierarchical view, the tree view displays grading-related columns such as
Total, Graded, Unused, Total Score , Incr Score, [Metric] Total Score, and [Metric] Incr
VC Execution Manager™ User Guide
V-2023.12-SP2
330
Chapter 8: Planning and Coverage Features
Plan Integration
Feedback
Score. The following figure shows the tree view highlighted in orange and grading-related
columns highlighted in purple:
Flat View
In the flat view, test information is displayed in a flat list view as shown in the figure below.
The flat view displays grading-related columns such as Total Score and Incr Score. It does
not show Total, Graded, Unused. The following figure shows the flat view highlighted in
orange and grading-related columns highlighted in purple:
In the grading mode, the flat view only shows all test cases. The Scope field in the flat
view is automatically set to test case.
Plan Integration
ExecMan enables you to view scores of a verification plan in the Web GUI. In the Web
GUI, a new column Plan is added that shows plan scores and test status, as shown in the
following figure:
You may view a block-level score and a global-level score of a session. If you define both
block-level and global-level plans, the block-level plan overwrites the global-level plan.
VC Execution Manager™ User Guide
V-2023.12-SP2
331
Chapter 8: Planning and Coverage Features
Plan Integration
Feedback
Block-level plan details can be specified in a configuration file. To view block-level details
in the Web GUI, use the following command:
eman -regr_config <config_file.emc> -local_host -merge_dir
<merge_dir_name>
where, the content for config_file.emc can be as follows:
The following figure shows the block-level plan score for merge1.vdb and merge2.vdb:
To define global-level plan details, use the -plan command as follows:
eman -regr_config <config_file.emc> -local_host -merge_dir
<merge_dir_name> -plan compdir/jukebox.hvp
Note that block-level plan details are also available in config_file.emc. As blocklevel plan details are already available, these details overwrite global-level plan details.
The following figure shows the plan score of merge_all along with merge1.vdb and
merge2.vdb:
If plan data is not generated using the -plan command, you may use the eman plan
save command to generate plan data manually. The syntax of the eman plan save
command is as follows:
eman plan save -xmlplan <planname.xml> -s <session_name> -merged_vdb
<merged_dir.vdb>
VC Execution Manager™ User Guide
V-2023.12-SP2
332
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
For example, consider the following commands:
eman plan save -xmlplan urgReport1/plan.xml -s
session_<name>_20200204 -merged_vdb merge1.vdb
eman plan save -xmlplan urgReport2/plan.xml -s
session_<name>_20200204 -merged_vdb merge2.vdb
eman plan save -xmlplan urgReport_all/plan.xml -s
session_<name>_20200204 -merged_vdb merge_all
These commands take plan data from the coverage database, merge1.vdb, merge2.vdb,
and merge_all respectively and display annotated scores under the plan column in the
Web GUI, as shown below:
Once you click the Plan Trend icon on the Session page, the following Trend Charts
page is displayed to specify its features, mere name, and metrics:
Database-Based Plan Management
ExecMan enables you to save a verification plan into an ExecMan database. To save a
verification plan, use the following command:
eman plan save -plan <plan_file.hvp> -project <project> -source_code_tag
<tag name>
where,
VC Execution Manager™ User Guide
V-2023.12-SP2
333
Feedback
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
• -plan <plan_file.hvp>: This option enables you to specify an .hvp file that needs to
be stored in a database
• -project <project>: This option enables you to specify the name of a project
to which the .hvp files belongs. You can create a project using the eman project
create command.
• -source_code_tag <tag_name>: This optional option enables you to associate a
name with any version of a plan. This name can be used to identify a plan version. If
this name is not specified, a default tag name is generated.
If a plan file is specified with a project, ExecMan displays the Plan Management column
on its home page as follows:
You can view the details of a plan by clicking the
figure:
icon. The icon displays the following
ExecMan enables you to perform the following plan-related functionalities:
• View the latest version of all features or only top feature.
• Search a plan by specifying its tag name.
• View the details of a feature by specifying the date on which it was modified.
VC Execution Manager™ User Guide
V-2023.12-SP2
334
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
• View the difference between two versions of a plan.
• Save a searched criteria and reuse it by enabling it.
• Save a feature as a CSV file.
• View the Review page of a feature, update the review status, and provide feedback.
Modes
ExecMan enables you to view the features of a plan as a hierarchy or flat list. ExecMan
provides the following buttons to view the features:
• all features: When this button is clicked, all features under the top plan are displayed
as a tree.
• top feature only: When this button is clicked, only first-level features are displayed as
a flat list.
The following figure shows these two buttons:
VC Execution Manager™ User Guide
V-2023.12-SP2
335
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
Viewing Latest Version
To view the latest version of all features or only top feature, perform the following steps:
1. Select the value of the Show box as latest version as highlighted in the following figure:
2. Click
.
VC Execution Manager™ User Guide
V-2023.12-SP2
336
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
Searching a Plan Using its Tag Name
To search a plan using its tag name, perform the following steps:
1. Select the value of the Show box as plan with given tag as highlighted in the following
figure:
2. The Tag box is displayed when you select plan with given tag. Specify the tag name in
the Tag box and click
. Alternatively, You can select a tag between any specified
time period by clicking the
icon. The icon displays the Search Tags dialog box to
select a tag as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
337
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
Viewing Feature Details
To view feature details, perform the following steps:
1. Select the value of the Show box as features history by modified date as highlighted in
the following figure:
2. You can specify the date for which you want to see feature details using From and To
and click
.
VC Execution Manager™ User Guide
V-2023.12-SP2
338
Feedback
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Viewing Plan Versions Difference
To view the difference between two versions of a plan, perform the following steps:
1. Select the value of the Show box as tags diff as highlighted in the following figure:
2. Specify the tag names of the versions for which you want to view the difference in Tag
and with text boxes and click
between two dates.
. Alternatively, click
to search and select tags
Note:
The Hide not modified check box is enabled by default. If this check box is
enabled, default tag names are not displayed while searching.
Searching the Database
ExecMan enables you to search the database for all features or only top feature using
Name, Owner, and Review Status fields. You can also save a search criteria for future
use.
To search the database for all features or only top feature, select the Show Filter Fields
check box to display the following highlighted fields:
VC Execution Manager™ User Guide
V-2023.12-SP2
339
Feedback
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
You can search based on Name, Owner, and Review Status and then click Apply
Filters. In addition, you can save the specified search criteria by specifying its name in the
Filter Name text box and clicking Save as shown below:
Note:
You can add more than one search criteria using the
icon.
To delete any saved search criteria, specify its name in the Filter Name text box and click
Delete.
After a searched criteria is saved, the search criteria name appears in the Enable Filter
list box as shown below.
VC Execution Manager™ User Guide
V-2023.12-SP2
340
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Feedback
Features in a CSV File
ExecMan enables you to view or save all features or only top features in a CSV file using
the Save as CSV file link. When you click this link, it displays the following dialog box and
you can choose to open or save features.
VC Execution Manager™ User Guide
V-2023.12-SP2
341
Feedback
Chapter 8: Planning and Coverage Features
Database-Based Plan Management
Reviewing Features
When you click a feature, ExecMan displays its tag, feature name, description, and owner.
For example, if you click LRS.OMC.FUNC.001, ExecMan displays its tag, feature name,
description, and owner as follows:
To review a feature, click the Review link to set the review status and provide your
comments. You can set the review status of a feature as Reviewed, Non-reviewed, and
Questionable. In addition, you can provide your comments in the Comment Entry box as
shown in the following figure:
To save review status and comments, click the
VC Execution Manager™ User Guide
V-2023.12-SP2
button.
342
Feedback
9
Test Application Programming Interface (Test
API)
This chapter describes the Test Application Programming Interface (Test API) utility; in the
following sections:
• Overview
• Running Test API
• Test API Flow
◦ Starting Test API
◦ Posting Test Results
◦ Database Field Updates Using Unique IDs
◦ Stopping Test API
• Setting Permissions for a Session
• Command Usage
• Return Values and Error Messages
• Attaching Additional Data Using Test API
• Updating Data With Test API
• Adding Custom Values to the Project and Config Pages
• Retrieving Test Data From the Database
• Retrieving Session Name Using RID
• Viewing TestAPI Results
• Software Reliability Growth Curve
• Limitations
VC Execution Manager™ User Guide
V-2023.12-SP2
343
Chapter 9: Test Application Programming Interface (Test API)
Overview
Feedback
Overview
The Test API utility provides an interface to transmit data from the tests to the VC
Execution Manager database and can be used for data management. Test API enables
you to use the aspect of Execution Manager, which helps gather data from tests. This
utility can be used with projects that already have a satisfactory tool for launching and
managing tests.
You can use Test API to perform the following critical tasks:
• Preserve test results and history: you can use the results for faster and more
efficient verification management.
• Integrate with an industry standard relational database with access to many
analysis tools: this is useful when a mature regression environment already exists.
Some of the capabilities of Test API are:
• Easy to set up and use: the Test API utility does not require any special setup. Test
API needs to know the location of the VC Execution Manager executable. After you
set this path, this API with simple inputs generate appropriate project and session data
without intervention.
• Independent of execution environment: you can use the Test API utility from
any execution environment. It does not have any dependency on the execution
environment or language used. The only requirement is to invoke the Test API utility
from one of the supported VC Execution Manager platforms.
• Keeps a history of all tests: the data is saved in a way that each run generates a
unique session. You can save each session’s data for as long as you want.
• Stores files/directories with tests for later use: one of the major advantages of
the Test API utility is its capability to save files and directories for tests or groups of a
session. For example, stimulus files or output log files can be preserved. When any
session is being viewed in the Execution Manager’s GUI, then all the saved files also
appear in the GUI for the currently selected test. This makes debugging simpler as you
can view failure logs from the GUI.
Note:
For the limitations with Test API, see section Limitations.
VC Execution Manager™ User Guide
V-2023.12-SP2
344
Chapter 9: Test Application Programming Interface (Test API)
Running Test API
Feedback
To use the Test API utility, execute the following steps:
1. Starting Test API— Enables you to initialize a new regression session with Test API.
2. Posting Test Results— Enables you to post test results and custom results for each
test or execution phase of a regression.
3. Stopping Test API— After all tests have completed, Test API is shutdown using the
shutdown command.
Running Test API
This section discusses a basic example to demonstrate the usage of the Test API utility. To
run a Test API example, execute the following steps:
1. The TesAPI example is located in:
% <execman_installation>/VMS/examples/test_api/
Copy this directory to your example directory:
% cp -r <execman_installation>/VMS/examples/test_api/
<to_your_location>
2. Set the location of VC Execution Manager binary and VCS using the following
commands:
% source <Execman_installation>/VMS/data/<DEPOT>/bin/sourceme.csh
% setenv VCS_HOME <to your VCS installation>
3. Navigate to your example directory:
% cd <to_your_location>/uvm_example
4. Run the example using the following command:
% ./run.csh
As defined in the run.csh script, ExecMan launches Test API and posts the results.
Finally, Test API is shutdown after posting Test API results. For more details, see
section Sample Test APICode.
5. View the results in the VC Execution Manager GUI.
Sample Test APICode
The section discusses an example for Test API code, which is a typical UVM setup where
the design is compiled once and multiple tests are run using simv.
#!/bin/csh -f
VC Execution Manager™ User Guide
V-2023.12-SP2
345
Chapter 9: Test Application Programming Interface (Test API)
Running Test API
Feedback
Setup the required environment variables, as shown in the following script. Set an
ExecMan project using EMAN_PROJECT.
if ( ! $?VCS_HOME ) then
echo "vcs not found. This example requires vcs. Please 'module load
vcs'"
exit 1
endif
if ( ! $?EMAN_HOME) then
echo "EMAN_HOME is not set. This example
requires EMAN_HOME to be set. Please source
<eman_installation>/VMS/data/<DEPOT>/bin/sourceme.csh"
exit 1
endif
Remove the executables using the clean.csh script. This script is included in the
examples directory.
echo 'cleaning up ...'
./clean.csh
Compile the design using VCS, as shown in the following vcs command line:
echo "Compiling the design ..."
vcs -sverilog -ntb_opts uvm-1.1 -debug_all +vcs+vcdpluson
-timescale="1ns/100ps"
+incdir+../tb/alu+../tb+../rtl+../tests ../tb/tb_top.sv -cm
assert+line+fsm+cond >& comp.log
if ( $status == 0 ) then
# Starting eman test api
echo "Design Successfully Compiled.Starting the test API ..."
echo "EMAN_PROJECT: tryout"
echo "EMAN CONFIG : post_config"
Set the EMAN_INFO_FILE environment variable to gather the information about project,
configuration, and session from the <info.file>, as shown in the following command
lines. Otherwise, you need to pass the info file with every testapi command.
# setting EMAN_INFO_FILE, once this is set, -i option is not required
# with eman api calls because this single script does everything. However
# if you are launching your tests in separate shells, you need to use
# -i to pass the example.info file into your "eman post" calls
setenv EMAN_INFO_FILE example.info
# similarly if EMAN_PROJECT variable is set then -p is not required with
# eman api calls
setenv EMAN_PROJECT tryout
# start up the test API daemon
eman testapi run -p $EMAN_PROJECT -c post_config -i info.file
eman testapi post -t "my_build" -s pass -save comp.log -S NOW -E 5
-scope_type build
VC Execution Manager™ User Guide
V-2023.12-SP2
346
Chapter 9: Test Application Programming Interface (Test API)
Running Test API
Feedback
if ( $status == 0 ) then
echo "Successfully started test API."
endif
Note:
To set EMAN_INFO_FILE, use the following command:
setenv EMAN_INFO_FILE ./info.file
Unset this variable after Test API is shutdown.
In this case, each run is executed with five different inputs and the status is posted to the
eman server.
# Running tests
# most likely in a production environment this would be done via
something
# more sophisticated than a foreach loop. The important point here is in
# the inner loop sequence of running the test, extracting its status, and
# then posting the results to the ExecMan DB
foreach test ( test_add test_add_b2b test_sub test_sub_b2b test_add_sub )
echo "Running $test ..."
./simv -cm line+cond+fsm+assert +UVM_TESTNAME=$test -cm_name $test
-cm_dir my_build>& $test.log
# determine the test's pass/fail result. For this example, look at
# the shell variable $status
set stat = 'fail'
if ( $status == 0 ) then
set stat = 'pass'
endif
# Push data into eman server
eman testapi post -t "my_build/$test" -s $stat -save $test.log -S NOW
-c "cps:42" -c "qual:9.09" -c "feature:featureX" -E 5
end
# URG merging
$VCS_HOME/bin/urg -f vdblist.txt -dbname merge_dir/merged -format both
-report merge_dir/urgReport -plan ../plan/alu_plan.xl.xml.hvp
Optionally, you can generate xml plan and insert the xml plan to the ExecMan server.
You can post the build status to the ExecMan server, as shown in the following command.
The files such as urgReport, merged directory, and so on are saved in cvsdepot.
# save urg report. Here the report is saved to the merge_dir level
# of the test hierarchy. This controls where the urgReport link appears
# when navigating through the regression session in the web UI
set sessionName = `$EMAN_HOME/scripts/get_field_from_info_file
session_name ${EMAN_INFO_FILE}`
#eman testapi post -t "my_build" -s pass -S NOW
# save some session files
eman testapi post -t "/" -c "label:final" -save merge_dir/urgReport,../
plan/alu_plan.xl.xml.hvp,merge_dir.vdb -S NOW
VC Execution Manager™ User Guide
V-2023.12-SP2
347
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
# stop the test API daemon
eman testapi shutdown
In the batch mode, the parameters, such as start time, host name are available in the
results.txt file. In this example, the save_files.txt file contains the list of files saved
in the cvsdepot.
# View the posted custom data
eman data dump -p $EMAN_PROJECT -s $sessionName -o result.txt -fields
start_time,hostname
eman data dump -p $EMAN_PROJECT -c post_config -s $sessionName -o
saved_files.txt -list_saved_files
endif
You can also view the results in the Web server UI.
Test API Flow
The Test API flow consists of launching the Test API utility, posting the results, and
shutting down the API server. Figure 40 illustrates the flow of actions and data when using
Test API.
Figure 40
Test API Flow
VC Execution Manager™ User Guide
V-2023.12-SP2
348
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
Starting Test API
To start the Test API utility, invoke the Test API utility on a specific port of a machine, using
the following command:
% eman testapi run -info_file test.info -project myproject
-config post_config
Mandatory Options Required to Start Test API
-info_file
Option to specify the input file name that is used to communicate the required information
with all the Test API commands. The file specified here need not exist. If the file does
not exist, eman testapi run creates a new file. You can either use this option or set the
EMAN_INFO_FILE environment variable.
-project
Option to specify a project name. If the project does not exist, VC Execution Manager
creates a project. You can either use this option or set the EMAN_PROJECT environment
variable.
Example:
-project $EMAN_PROJECT
-config
Option to specify the configuration name. If the configuration does not exist, a new
configuration is created. You can either use this option or set the EMAN_CONFIG
environment variable.
Example:
-config $EMAN_CONFIG
Options Required to Start Test API (Optional)
-top_run_dir
Option to specify a directory for eman to generate the intermediate files.
-keep_spool
Option to retain the spool directory contents after a session ends.
-session
Option to override the default session name.
-lic_wait
VC Execution Manager™ User Guide
V-2023.12-SP2
349
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
Option to specify the wait time (in seconds) for the license to be available. The default
value is 6 seconds.
-error_pattern_file
Option to specify the error pattern file to write custom error status.
-funnel_dir
Option to set the temporary directory for extracted data.
Posting Test Results
The eman testapi post command directs VC Execution Manager to send data to the
listening host and the port specified in the generated info file. After sending the data to the
server, the data is used to update the Execution Manager’s database.
To post custom results, use the following syntax:
% eman testapi post -info_file test.info -test_path
"</build_name/test_name>"
-test_status custom_status(base_status)
-custom_values "key:val"
-custom_values "key:val"
-save comp.log,run.log
-log_file "location/of/test.log"
Example:
% eman testapi post -info_file test.info
-test_path "build1/test1"
-test_status CRASH(fail)
-custom_values "mem:100MB"
-custom_values "disk:1GB"
-save comp.log,run.log
-log_file "build1/test1.log"
Mandatory Options Required to Post Test Results
-i/-info_file
Option to specify the info file that was created using the eman testapi run command. This
is the communication interface between the Test API commands.
-t/-test_path
Option to specify the test path for which data has to be saved. The path starts from the top
build_name and ends with the test case name. The build names and the test name are
separated by "/".
VC Execution Manager™ User Guide
V-2023.12-SP2
350
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
Options Required to Post Test Results (Optional)
-s/-test_status
Option to specify the completion status of a test. You can either use this option or set the
EMAN_TEST_STATUS environment variable.
You can use custom_status along with -s or -test_status option of the testapi
post command to specify both the custom status and the associated base status
type of a testpath. The allowed base status types are pass, fail, warn, and assert. The
custom_status must not include the characters: (, ), *, and :::.
Syntax to specify custom_status is as follows:
% eman testapi post -t "/build1/test1" -s "custom_status(base_status)"
If the base status is not specified along with the -s option, the specified
error_pattern_file (or the default error_pattern_file) is used to get the base status
type of the error signature (custom_status). If ExecMan is unable to get the base status
type, the given custom status is associated with the "unknown" base status type.
If base_status is not specified and custom_status is any of [pass, fail, warn, assert],
then base_status is the same as custom_status.
For example:
% eman testapi post -t "/build1/test2" -s pass
If this case, base_status and custom_status are considered as pass. You can also use
this option while extracting test status from vdb specified using the -vdb option.
-c/-custom_values "key1:<value>"
Option to specify the custom values to be saved with a test case. The testapi post
command recognizes -c "key:<value>" as a built-in value. Though it should be
specified as a custom value, the value is automatically converted to a built-in value and
stored along with test data.
Example:
-c "key1:val1" -c "key2:val2"
-save
Option to save one or more files or directories. To specify multiple files or directories use a
comma separated list.
-log_file
VC Execution Manager™ User Guide
V-2023.12-SP2
351
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
Option to register the log file for a test case. After the log file is registered against the test
case, a link is displayed in the user interface. You can click
file from the GUI.
(log) to access the log
Note that the file should be generated and readable by GUI. The -log_file option does
not store files in the database. However, it only stores the path of the file in the database.
To save the files, use the -save option with testapi. To view all the saved files, click the
Show Details button.
-custom_values_file
Option to provide multiple custom_values. You can provide one input per line. This option
is useful for providing longer and multi line inputs.
Format,
key1:val1
key2:val2
...
keyn:valn
-b/-builtin_values
Option to specify the built-in values in the key:val format.
-S/-start_time
Option to specify the starting time of a test case. Use "NOW" for specifying the current time.
The following formats are supported:
Format: MM/DD/YYYY_HH:MM:SS
Example: 10/31/2014_05:00:01
Format: "YYYY-MM-DD HH:MM:SS"
Example: "2014-10-31 05:00:01"
-E/-elapsed_time
Option to specify the test case elapsed time in seconds. The value should be an integer.
-H/ -hostname
Option to specify the machine name where the test case is run. By default, Test API calls
the current machine.
-d
Option to update the data for a debug rerun, instead of updating the data for normal
run. Alternatively, you can use the EMAN_DEBUG_RERUN environment variable. Set
EMAN_DEBUG_RERUN to 1 to indicate that it is a debug instance:
% setenv EMAN_DEBUG_RERUN 1
VC Execution Manager™ User Guide
V-2023.12-SP2
352
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
-scope_type
Option to explicitly mention the type of test path. The default is testcase. The accepted
values are: testcase, build, debug_build, debug_testcase, project, config,
session.
-vdb
Option to automatically read information from the vdb and store the test record value for
each test.
You can use one of the following methods to extract data:
Method 1
• Use the -vdb option with -test_path <TEST_CASE_PATH>, as shown in the following
command:
% eman testapi post -i info.file -test_path /bld1/test1 -vdb test1.vdb
This command extracts test related data from the vdb. Data such as, start_time,
end_time, cputime, peakmem, cmdline is extracted.
Method 2
• Use the -vdb option with -build option or -test_path as build, as shown in the
following command:
% eman testapi post -i info.file -build "bld1" -vdb
mergedir/merged/merged.vdb -all_tests
This command extracts information from one or more tests. All the tests that match the
build with the name hierarchy are selected and stored in the db along with all the test
information that is found in the db.
Method 3
• Use the -vdb option with -test_path with "/", as shown in the following command:
% eman testapi post -i info.file -test_path / -vdb
mergedir/merged/merged.vdb
Use this option when the vdb is a merged vdb. This command extracts the coverage
metrics from the merged vdb and stores them as attributes of the session, which can
be plotted in charts.
-xmlplan <report_dir>/<plan.xml>
Option to save verification plan data to the ExecMan database.
VC Execution Manager™ User Guide
V-2023.12-SP2
353
Chapter 9: Test Application Programming Interface (Test API)
Test API Flow
Feedback
Database Field Updates Using Unique IDs
The eman testapi post command is enhanced to use the unique primary keys of tests
and builds to update their database records directly. For this, use the following command:
eman testapi post -rid <rid value> -s <status> -info_file <info file>
Note that unique IDs can be obtained using the following eman data dump command:
eman data dump -p $EMAN_PROJECT -s $sessionName -c $config_name -o
result.txt -fields id
For example, use the eman data dump command to display unique IDs for the following
tests:
Its output is displayed as follows:
testcase,status,id
my_build/test_add,fail,14512
my_build/test_add_b2b,pass,14568
my_build/test_sub,pass,14600
my_build/test_sub_b2b,pass,14629
my_build/test_add_sub,pass,14631
To set the status as “pass” to the unique ID, say 14512, use the following command:
eman testapi post -rid 14512 -s pass -info_file info_file
The output of this command is as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
354
Chapter 9: Test Application Programming Interface (Test API)
Setting Permissions for a Session
Feedback
Stopping Test API
To stop Test API, execute the following command:
% eman testapi shutdown -info_file test.info
The eman testapi shutdown command directs VC Execution Manager to shutdown the
Test API utility.
Where,
-i/-info_file
Option to specify the info file that has information about host and port. This switch is
optional if the EMAN_INFO_FILE ENV variable is set.
Setting Permissions for a Session
ExecMan enables you to allow session owners to change some sessions’ permissions
from private to public and vice versa.
All sessions are private, by default. To set sessions’ permissions from private to public,
use the following command:
eman session permissions -config <config_name> -project <project_name>
-session <comma-separated sessions> -session_ownership public
Once a session becomes public, you are allowed to perform all testapi functionalities, such
as adding/updating session and scope custom values.
To set sessions’ permissions from public to private, use the following command:
eman session permissions -config <config_name> -project <project_name>
-session <comma-separated sessions> -session_ownership private
VC Execution Manager™ User Guide
V-2023.12-SP2
355
Chapter 9: Test Application Programming Interface (Test API)
Setting Permissions for a Session
Feedback
To create a session as public from its creation, use the -public switch with the eman
command as shown here:
eman -regr_config basic.emc -public
This section consists of the following two subsections:
• Examples
• Limitations
Examples
• To change all sessions of the provided project and configurations, that are created
between start and end time, use the following command:
eman session permissions -config <config_name> -project <project_name>
-session_ownership public -start_time <start time> -end_time <end
time>
• To change all sessions of the provided project and configuration with name matches
with the provided pattern, use the following command:
eman session permissions -config <config_name> -project <project_name>
-session_ownership public -name_pattern <pattern>
You can change many sessions from date to date or by a specific regex in the session
name with out the need to pass the session names.
• To change all sessions of the provided project and configuration provided by a file, use
the following command:
eman session permissions -config <config_name> -project
<project_name> -session_ownership public -sessions_file
<path_to_file_contains_session_names>
• To change all sessions of the provided project and configuration that are created after
the given time, use the following command:
eman session permissions -config <config_name> -project <project_name>
-session_onwership public -start_time <start time>
• To change all sessions of the provided project and configuration that are created before
the given time use the following command:
eman session permissions -config <config_name> -project <project_name>
-session_ownership public -end_time <end time>
VC Execution Manager™ User Guide
V-2023.12-SP2
356
Chapter 9: Test Application Programming Interface (Test API)
Command Usage
Feedback
Limitations
• If a session has an already running testapi while it was public by another user, then
changing it to private does not prevent the other user from keep using the current
opened testapi process.
• Users from other groups (linux group) cannot edit public sessions even if they are
members of a project.
• Functionalities enable through UI customization still works for other use in a private
session.
• No UI indication that a session is switched from private to public. Also, it is not possible
to switch between public/private permissions from the UI.
Command Usage
This section provides descriptions and usage examples of the various Test API
commands.
Test Path
Syntax: -test_path | -t
The test path is the name of the test case along with the hierarchy information. It is
recommended that you hierarchically organize tests under features or builds, so that it is
easy to identify pass or fail conditions or performance information.
Following is a sample test path:
my_build/test_add
Where,
• my_build is the build name.
• test_add is the name of the test which belongs to my_build. When you pass
-test_path as my_build/test_add, the information is saved for that test.
With Test API, you can retain custom data, status, or save files for both builds and tests.
Saving information at a build level is beneficial as it can hold data common to all tests of
that build. Usually, design compile logs and urgReport files are saved under a build.
To store custom data or files at the session level, use the -test_path / (or -t /) switch.
Custom field names starting with tag_ are displayed on the session's page. This is an
easy way to tag your sessions.
VC Execution Manager™ User Guide
V-2023.12-SP2
357
Chapter 9: Test Application Programming Interface (Test API)
Command Usage
Feedback
Info File
Syntax: -info_file| -I
The info file is the interface through which Test API communicates with the back-end. This
file contains information, such as project names, configuration names, machine where it
started, ports, and session names. All the information is required by API calls to correctly
store the information into the back-end.
The info file is generated automatically when the eman testapi run command is run
with appropriate options. The post and shutdown actions use this generated info file.
Note:
When a session is active (that is, from testapi run to testapi shutdown) the
same info file name cannot be used under the same directory. If the same info
file name is used, VC Execution Manager issues the following error message:
Error-[EMAN-TAPI-IFIU] A Test API server using the info file
"/slowfs/usera/client_1606/unit_VC_SANITY/execman/plan_trend_
t1/info.file"
is still alive. Please use a different info file to start the
Test API server.
Info-[EMAN] Found Errors/Warnings during the run. Please see the
file
'/slowfs/usera/client_1606/unit_VC_SANITY/execman/plan_trend_
t1/.eman_logs/usera_2016_04_26_02_10_00_6067_eman.log'
for more details.
Project
Syntax: -project|-p
The project is the top level container in Test API. Every action that happens with API goes
under a project. The hierarchy is similar to the following illustration.
VC Execution Manager™ User Guide
V-2023.12-SP2
358
Chapter 9: Test Application Programming Interface (Test API)
Command Usage
Feedback
Root (/)
Projects
Configs
Sessions
Groups
Tests
You can create a project using the following command:
% eman project create <Project_Name>
The Test API projects are created by default when you use the testapi run command. If
a project already exists, VC Execution Manager uses the same project without creating it.
Config
Syntax: -config|-c
The config is a hierarchy that enables you to organize tests. One project can have
any number of configurations. The configurations are automatically created during the
execution of a test. It is only required to specify the required configuration name.
sessionName
Syntax: -session
Each invocation of eman testapi run creates a new session. Every session is given a
unique ID. By default, the GUI orders the sessions in descending time and therefore, the
latest session appears on the top.
The default session name is of the following format:
session_<user>_<timestamp>
The sessionName is written into info_file. You can override the default session name
using the -session option when using the eman testapi run command.
VC Execution Manager™ User Guide
V-2023.12-SP2
359
Chapter 9: Test Application Programming Interface (Test API)
Command Usage
Feedback
Test Status
Syntax: -test_status|-s
Test status is the actual pass/fail status of a test. This is a standard field to identify the
pass or failure status. The color-coding for test status in the GUI is as following:
• Green for pass
• Red for failure
• Yellow for warning
• Pink for assert
• Gray for unknown
Custom Values
Syntax: -custom_values| -c | -custom_values_file
You can specify the custom values in the key:val format. These can be specified under
the -custom_values command line option, or under a file with the -custom_values_file
option.
Both options allow multiple custom values to be specified with a single invocation. VC
Execution Manager expects the format in a -c "key1:val1" -c "key2:val2" … -c
"keyN:valN" order, and the file option needs it in "key:val" per line format.
These custom values are always kept as strings in the database. After you submit the
custom values, they automatically appear in the GUI.
After the data is pushed using the eman post command, VC Execution Manager usually
takes a few seconds to write the data into its database.
top_run_dir
Syntax: -top_run_dir
Option to change the default root directory where tests are run. When ExecMan runs the
tests, each test is run within an unique directory. These directories are organized beneath
a root directory which by default is ./eman_rundir. The -top_run_dir option allows you
to override that default root run directory.
Saving Files or Directories
Syntax: -save
VC Execution Manager™ User Guide
V-2023.12-SP2
360
Chapter 9: Test Application Programming Interface (Test API)
Return Values and Error Messages
Feedback
The Test API utility enables you to save files and directories with a test or its group. These
files are stored in an organized way for every project, configuration, and session. You can
view them from the GUI. This information is useful for analysis.
Return Values and Error Messages
Test API returns zero on successful completion of a run. It returns a non-zero value upon
failure. VC Execution Manager prints the error messages to stderr.
General Error Messages
Following are the general messages that you might encounter.
Invalid usage:
Bad command line. Extra args: <args> This message is issued when there are any extra
args remaining on the command line after option parsing.
Mandatory argument missing:
-test_path or -t must be provided. This message is issued whenever any argument is
missing.
Elapsed time not in digits:
Elapse time must be in digits only. This message is issued if the elapsed time contains any
string other than numbers.
Elapsed time too huge:
Elapsed time is huge. Tests cannot run for 50+ years. This error is shown if elapsed time is
huge or unrealistic.
Not a directory:
When Test API encounters non-existing directories.
No space allowed in keys:
Spaces not allowed in keys of custom value-pair specification.
Could not parse custom values: Could not parse the custom values properly
Invalid format of custom value Invalid custom_values_file Custom key
<name> contains space or special chars.
Only alphabets, numbers or underscores are allowed as keys. These errors are issued
when the custom values parsing fails for some reason.
VC Execution Manager™ User Guide
V-2023.12-SP2
361
Chapter 9: Test Application Programming Interface (Test API)
Attaching Additional Data Using Test API
Feedback
Attaching Additional Data Using Test API
You can introduce additional data using the eman testapi post command that takes a
specific test path. In this case, any test case that is rerun or needs additional information
should be saved. Use the same command line with the updated values or new fields to
update them. If the status of the test itself is updated, Test API issues a warning message.
For other fields, the Test API updates the entry.
For more information, see section Updating Data With Test API.
Updating the Database With the JSON File
The eman testapi post command accepts a JSON file to perform batch updates to the
database. The syntax of the eman testapi post command as follows:
eman testapi post -i info_file -json_file <json_file_path>
The testapi post command recognizes the following built-in values:
• status:The status of the test.
• base_status: The base status type of the test.
• run_dir:The directory where the test ran.
• run_time: The elapsed time for the test.
• start_time:The start time for the test. The accepted format for start time is MM/DD/
YYYY_HH:MM:SS.
• hostname:The host on which the run took place.
• end_time:The end time for the test. The accepted format for end time is MM/DD/
YYYY_HH:MM:SS.
• random_seed:The random seed used for the test.
If the value of the property does not exist in the database, then use custom_values.
The content of the json_file file is as follows:
content of json_file: (a list of test/build definition)
[{
"scope_type": "testcase",
"scope": "bld1/test_add/ test_add_4644547465474",
"builtin_values": {
"status": "uvm_info",
"base_status": "pass",
"run_dir": "my_rundir",
"run_time": "150",
VC Execution Manager™ User Guide
V-2023.12-SP2
362
Chapter 9: Test Application Programming Interface (Test API)
Updating Data With Test API
Feedback
"start_time": "05/04/2022 13:26:46",
"hostname": "odcphy-vg-1302",
"end_time": "05/04/2022 13:29:16"
“random_seed” : “4644547465474”
},
"custom_values": {
"usage": "assert",
“my_metirc”: “metirc_value”
}
}
}]
Updating Data With Test API
Data insertion happens via the eman testapi post command that takes a specific test
path. In this case, any test case that is rerun or needs additional information should be
saved. Use the same command line with updated values or new fields to update them. If
the status of the test itself is updated, Test API issues a warning message. For other fields,
the Test API updates the entry.
Examples:
• To insert data for a test: <build_name/test_name>
eman testapi post -info_file myinfo -test_path
"</build_name/test_name>" -test_status fail -custom_values "mem:10MB"
• To update information about <build_name/test_name>:
eman testapi post -info_file myinfo -test_path
"</build_name/test_name>" -test_status pass -custom_values "mem:100MB"
Any custom values or built-in fields, such as start time and elapsed time can be updated.
Adding Custom Values to the Project and Config Pages
When you start testapi, you can use the session name with prefix cv_proj_cfg_ to save
custom values to the Project and Config pages or if there is no session of the specified
config.
Example
eman testapi run -config <config name> -i <Info file> -project <project
name> -session cv_proj_cfg_session
VC Execution Manager™ User Guide
V-2023.12-SP2
363
Chapter 9: Test Application Programming Interface (Test API)
Retrieving Test Data From the Database
Feedback
When testapi stop or shutdown is called, the following message informs you that this
predefined session is dropped :
Info-[EMAN-TAPI-CV-PROJ-CFG-SESSION-DROP] Session: "cv_proj_cfg_session"
is a temporal session for saving custom values to the project/config pages and will
be dropped.
The GUI automatically shows the project and config custom values. If a custom name
starts with the prefix _guihidden_, then the custom values are hidden.
Retrieving Test Data From the Database
You can retrieve the test information, such as pass, fail, and custom data using the eman
data dump command. The eman dump command generates a CSV file.
Syntax:
% eman data dump -p <project_name> -s <session_name> -o <dump_file_name>
-fields="start_time,run_time,custom_field1,custom_field2"
By default, the results are displayed in the result.txt file. View the resulting file to
analyze the results.
Note:
The test case and status are the default fields that are displayed in the
beginning of the line.
The following are the switches that you can use with the eman dump command:
-h
Shows the help message.
-s S
Session name for result dumping.
-custom_status
Displays custom status.
-pass_list
Writes only the pass list.
-F
Displays the failure list.
-f F
VC Execution Manager™ User Guide
V-2023.12-SP2
364
Chapter 9: Test Application Programming Interface (Test API)
Retrieving Test Data From the Database
Feedback
Specifies the format type. The valid formats are: CSV or HVP. The default is CSV.
-o O
Output file. The default is: result.txt
-fields FIELDS
List of fields to output along with pass/fail data.Fields can be classified into built-in fields
and custom fields. The built-in fields are:
run_dir: The directory where the test/build ran.
start_time: The start time for the test/build.
end_time: The end time for the test/build.
run_time: The elapsed time for the test/build.
random_seed: The random seed used for the test
- if used. Not valid for build.
hostname: The host on which the run took place.
config_name: The regression configuration the test/build belongs to.
-all, -all_fields
Lists all field names in a comma separated list.
-list_fields
Lists all field names in a comma separated list.
-scope_type
Type of data to be displayed. Valid arguments are: testcase, build, merge,
debug_testcase, debug_build, project, config, session. The default is: testcase.
-print_name
Displays only test name and does not display status.
-b BUILDS, -builds BUILDS
Comma separated build names. Filters test with matching build name.
-p PROJECT, -project PROJECT
Project name. Required only for listing session names.
-c CONFIG, -config CONFIG
Configuration name. Required only for listing session names.
VC Execution Manager™ User Guide
V-2023.12-SP2
365
Chapter 9: Test Application Programming Interface (Test API)
Retrieving Session Name Using RID
Feedback
-list_sessions
List of sessions for a given project and configuration.
-compare_sessions COMPARE_SESSIONS
Comma separated list of sessions. Default field selected for compare is status. Use the
-fields option to specify other fields to compare.
-t TEST_CASE, -test_case TEST_CASE
Name of the test case. The default field selected for data dump is status. Use the -fields
option to specify other fields to compare.
-st SESSION_STATE, -session_state SESSION_STATE
State of the session. Default is completed. Other options are: running, killed.
-u user_name
The user who owns the data. The default user is the current UNIX user. Note: -u can only
be used by project members.
-list_projects
List of projects for a given user. The default user is:whoami
Using Dump Files to Analyze the Results
To retrieve test information, such as pass/fail and custom data, use the eman data dump
command. This command generates a CSV file.
Syntax:
eman data dump -p <project_name> -s <session_name> -o <dump_file_name>
-fields="start_time,run_time,custom_field1,custom_field2"
View the resulting file to analyze the results: the default is result.txt.
Retrieving Session Name Using RID
ExecMan enables you to retrieve a session name using RID of a test or build that belongs
to the session. For this, use the -rid option with the eman data dump command as
follows:
eman data dump -rid <rid_of_tests_or_builds>
[-all]|[-fields <required_field>]
VC Execution Manager™ User Guide
V-2023.12-SP2
366
Chapter 9: Test Application Programming Interface (Test API)
Viewing TestAPI Results
Feedback
where, the -all switch retrieves all fields related to the RID and the -fields switch
retrieves only the specified fields related to the RID. If no additional switch is mentioned
with -rid, then only the session name that RID belongs to is displayed.
For example, if no switch is mentioned with RID 5092 in the eman data dump command,
then only the session name and its RID are displayed, as shown here:
eman data dump -rid 5092 -stdout
To retrieve all fields related to RID 5092, use the following command:
eman data dump -rid 5092 -all -stdout
To retrieve specific fields related to RID 5092, use the following command:
eman data dump -rid 5092 -fields end_time -stdout
Viewing TestAPI Results
You can view the results generated via the TestAPI utility in the batch mode using the
ExecMan Web browser UI. The URL is displayed in the log when you run testapi, as
shown in the following testapi run details:
Example:
% eman testapi run -p tryout -c simple -init_DB -i test.info
ExecMan Version N-2017.12, Copyright (c) 1991-2016 by Synopsys Inc.
VC Execution Manager™ User Guide
V-2023.12-SP2
367
Chapter 9: Test Application Programming Interface (Test API)
Software Reliability Growth Curve
Feedback
Info-[EMAN-LIC-PLC] Performing license check...
Getting session_name session_usera_20160419_114823
SESSION: session_usera_20160419_114823
CONFIG: simple
PROJECT: tryout
INFO_FILE: /remote/vgrnd77/usera/testarea/test.info
SPOOL: /
remote/vgrnd77/usera/emanTD/SPOOL/usera/tryout/simple/session_usera_20160
419_114823
URL:
http://vgintwm282.internal.synopsys.com:8001/eman/tryout/simple/session_
usera_20160419_114823/
Session: session_usera_20160419_114823
If you want to find the URL later, use the following command:
% eman -get_web_url
Software Reliability Growth Curve
ExecMan enables you to create the Software Reliability Growth Curve chart to predict the
bug curve. For this, you need to store bug information to the ExecMan database from the
Redmine database, a third-party tool. You can then count bugs at project as well as block
level. You can also generate the reliability growth chart as per your requirements.
This section consists of the following subsections:
• Storing Bug Information
• Counting Bugs
• Generating the Reliability Growth Chart
Storing Bug Information
ExecMan enables you to store bug information in the ExecMan database from the
Redmine database. For this, perform the following steps:
1. Configuring the Redmine Server
2. Extracting Bug Status From the Redmine Server
3. Saving Bug Data Into the ExecMan Database
Configuring the Redmine Server
You can configure the Redmine server in the synopsys_eman.setup file as follows:
bug_tracking:
- redmine: <server_id>
VC Execution Manager™ User Guide
V-2023.12-SP2
368
Chapter 9: Test Application Programming Interface (Test API)
Software Reliability Growth Curve
Feedback
url: <redmine server url>
api_key: <api_key for authentication>
version: <redmine version>
redmine_projects: <redmine_projects>
where, server_id is a unique name given to the Redmine server. You can configure
multiple Redmine servers, if required.
• redmine_server_url is the URL of a Redmine server.
• api_key is used to authenticate the Redmine login. You can find api_key in the
Redmine account details of a user.
• version is the version of Redmine.
• redmine_projects is the list of Redmine projects separated by comma.
Extracting Bug Status From the Redmine Server
You can extract bug data from the Redmine server configured in the
synopsys_eman.setup file using the eman get_bug_data command. This
command generates a.cvf file. If no output file is specified, the command generates
issueData.cvf, by default. The .cvf file contains bug counts for each status in the
Redmine server in the format, issues _<status>: <count>.
where, status can be resolved, feedback, issues_rejected, issues_closed,
issues_new or issues_in_progress.
For example, issues_resolved:4, issues_feedback:0.
The syntax of the eman get_bug_data command is as follows:
eman get_bug_data [options]
where, options can be any of the following options:
• -info_file <info_file>: This option is used to specify info_file, which contains
session-related information. If this option is specified, then the .cvf file is also saved to
the cvs depot. The info_file file is generated by the eman testapi run command.
Alternatively, you can set the environment variable, EMAN_INFO_FILE.
• -o <output_file>: This option is used to specify the output file name. The output file
is saved to the cvs depot, by default. If -o is not specified, then the issueData.cvf file
is created in the current working directory, by default.
• -p <hvp_file>: This option is used to specify an HVP file. This is an optional option.
If an HVP file is specified, then only bugs related to features in the plan are extracted
from the Redmine server.
VC Execution Manager™ User Guide
V-2023.12-SP2
369
Chapter 9: Test Application Programming Interface (Test API)
Software Reliability Growth Curve
Feedback
• -j <redmine_projects>: This option is used to specify a list of Redmine projects
separated by comma. This option extracts bug data from the specified Redmine
projects.
• -s <server_ids>: This option is used to specify a list of server ids separated by a
comma. This option extracts bug data from the projects specified for server ids in the
synopsys_eman.setup file.
Saving Bug Data Into the ExecMan Database
To save bug data into the ExecMan database, use the following test API command:
eman testapi post -t "/" -custom_values_file <.cvf file>
The following example shows the test API commands to extract and save bug data into
the ExecMan database:
setenv EMAN_INFO_FILE example.info
# To start up the test API daemon:
eman testapi run -c redmine -init_DB
# To post test data into the execman db:
eman testapi post -t "my_build/test1" -s pass -S NOW
-c "cps:42" -c "qual:9.09"
…
# To extract bug data from the redmine server:
eman get_bug_data
# To save bug data to the execman database:
eman testapi post -t "/" -custom_values_file ./issueData.cvf
# To stop the test API daemon:
eman testapi shutdown
An ExecMan session contains the following data, which is stored in the ExecMan
database:
issues_resolved, issues_feedback, issues_rejected, issues_closed,
issues_new, issues_in_progress, total_bugs
where, total_bugs = issues_resolved + issues_feedback +
issues_rejected +
issues_closed +
issues_new + issues_in_progress
Counting Bugs
ExecMan enables you to count bugs at project as well as block level. Each project might
contain several blocks. For example, the project, project_A, might have three blocks:
block_A, block_B, and block_C as shown below:
VC Execution Manager™ User Guide
V-2023.12-SP2
370
Chapter 9: Test Application Programming Interface (Test API)
Software Reliability Growth Curve
Feedback
To count bugs at block level, ExecMan provides a new keyword,
filter_subject_contains, in the synopsys_eman.setup file. For example, to count
bugs at block_A of project_A, use the following code snippet:
bug_tracking:
- redmine: redmine1
url: http://vg-redmine-vm
api_key: a7f1a957195201f4811dad64fddb3c4200f299de
version: 2.4
redmine_projects: project_A
filter_subject_contains: block_A
ExecMan enables you to track the type of bugs at project and block level using the
Trackers keyword in the synopsys_eman.setup file as follows:
bug_tracking:
- redmine: redmine1
url: http://vg-redmine-vm:8080
api_key: a7f1a957195201f4811dad64fddb3c4200f299de
version: 2.4
redmine_projects: project_A
filter_subject_contains: block_A
trackers: Bug,Feature
You can also add any custom field in Redmine using double quotation marks (" "). For
example, to find bugs in either block_A or block_C, use the block selection custom
field as follows:
"block selection": block_A, block_C
Generating the Reliability Growth Chart
ExecMan enables you to generate the reliability growth chart to perform statistical
reliability prediction for software.
VC Execution Manager™ User Guide
V-2023.12-SP2
371
Chapter 9: Test Application Programming Interface (Test API)
Software Reliability Growth Curve
Feedback
To generate the Reliability Growth chart, click the
icon in the Test Trend
column of the session/build page. In the Test Trend page, ExecMan displays a new
button, Reliability Growth Analysis if the total_bugs keyword is added in the
synopsys_eman.setup file. When you click the Reliability Growth Analysis button, it
opens the Reliability Growth Analysis page. In the Reliability Growth Analysis page, a
trend chart is displayed that shows x-axis as Date and y-axis as total_bugs as follows:
You might change the settings specified in the Trend Charts tab as per your requirements.
In the Reliability Growth Analysis page, ExecMan provides the following two types of
reliability growth models to generate a chart:
• Standard Gompertz
◦ This model is applicable when the reliability data follows a concave shape. This
model can be used in scenarios where the bugs are identified early and growth is
made rapidly.
• Modified Gompertz
◦ This model is applicable when the reliability data follows an S-shaped trend, which
cannot be described accurately by the standard Gompertz model. The S-shaped
trend differentiates between multiple phases in the software reliability growth.
Here are the mathematical equations used by standard and modified Gompertz:
VC Execution Manager™ User Guide
V-2023.12-SP2
372
Chapter 9: Test Application Programming Interface (Test API)
Limitations
Feedback
ExecMan internally calculates parameter values of these equations and displays them
in the Reliability Growth Analysis page. These calculated parameter values cannot be
modified.
Limitations
The following are the limitations with the Test API utility:
• Only supported on RHEL5 and RHEL6 machines.
• The VC Execution Manager GUI can display only a few types of files. The GUI can
show any log, csh/sh scripts, or urgReport files. For any other text type of file, VC
Execution Manager must be configured in the synopsys_eman.setup file.
• The VC Execution Manager GUI does not support viewing of the directories.
• Custom data is kept in a string format.
For example, if you generate custom result called simulation_cycles, and then a test
attempts to store the value "two hundred", VC Execution Manager would not generate an
error message, but it stores the string value "two hundred" in the database.
• No conversion happens between groups and test cases on the same project.
• Test API uniquely identifies groups and tests via assigning a unique ID and type. After
a test case is registered in the database with any name, the same name cannot be
used for a group in the same hierarchy. However, it can be used in a different hierarchy.
For example, the test hierarchy might be named as “unit_TEST/uvm/abc”. This defines:
• unit_TEST as a group
• uvm as a group
• abc as the test
After you input this data using eman post, you cannot input the following:
unit_TEST/uvm/abc/def
As abc is first declared as a test, you cannot make it a group. However, it is possible to
use it with a different hierarchy, such as “unit_TEST/uvm2/abc/def”.
VC Execution Manager™ User Guide
V-2023.12-SP2
373
Feedback
10
Restful Application Programming Interface
(Restful API)
VC Execution Manager provides a set of Restful API to access available resources and
resource details in the VC Execution Manager database. Restful API follows the http
protocol and provides response data in the JSON format.
Currently, Restful API supports only the GET method. You can send the HTTP GET request
with the proper URL to get data in the JSON format.
Restful API shows only the two top-level resources: users and projects. You need to follow
the links in the response manager to find resources embedded in the top-level resources.
This chapter consists of the following sections:
• API Root
• API Details
• API Reference
API Root
The full path to the API root is as follows:
<webserver>:<webserver_port>/api/v1
The root URL should return with the available resources that you can find via the following
API:
{
"users_url":"<webserver>:<webserver_port>/api/v1/users",
"projects_url": "<webserver>:<webserver_port>/api/v1/projects"
}
API Details
The API details of the Restful API are as follows:
► API Version
VC Execution Manager™ User Guide
V-2023.12-SP2
374
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Feedback
Version information is added in the following URL directly:
/api/v1/projects
► Hypermedia
A Rest API response message should include links to indicate associations and actions
that are available for a given resource. The representation of each resource is selfexplanatory. You can find links directly in the JSON data without checking any other
documentation.
A consistent form should be used to advertise links. For example, each project object
contains links to the underlined configurations. Then, you can access configurations
collection through the given configs_url, which lists out all the configurations under a
certain project.
Note:
url is the current URL that gets the response. link_to_gui is the URL of the
VC Execution Manager Web GUI to the same object.
► Filter
You can filter the results using a user name just as you do on the VC Execution Manager
Web GUI. For example, the following request provides the list of configurations owned by
the user, namely usr1.
<web_server>:8000/api/v1/projects/test/configs?user=usr1
API Reference
This section shows the fields available in the Response page for the following resources:
• Users
• Projects
• Configurations
• Sessions
VC Execution Manager™ User Guide
V-2023.12-SP2
375
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Feedback
Users
The table below lists the fields available for users in the response page:
Field Name
Description
projects_url
Specifies the API URL to get all projects of
the current user.
url
Specifies the API URL to get URL details of
the current user.
user_name
Specifies the name of the current user.
Examples
1. To get the details of a user, say usr1, see the table below for its request and response
URLs.
Request GET
<webserver>:8000/api/v1/users/usr1
Response
{
"projects_url":"<websever>:8000/api/v1/
projects?user=usr1",
"url": "<webserver>:8000/api/v1/users/
usr1",
"user_name": "usr1"
}
2. To get the details of all users, see the table below for its request and response URLs.
VC Execution Manager™ User Guide
V-2023.12-SP2
376
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Request GET
Response
Feedback
<webserver>:8000/api/v1/users
{
"meta":
{
"limit": 20,
"next": null,
"offset": 0,
"previous": null,
"total_count": 2
},
"objects":
[
{
"projects_url": "<webserver>:8000/api/
v1/projects?user=usr1",
"url": "<webserver>::8000/api/v1/users/
usr1",
"user_name": "usr1"
},
{
"projects_url": "<webserver>:8000/api/
v1/projects?user=usr2",
"url": "<webserver>::8000/api/v1/users/
usr2",
"user_name": "usr2"
}
]
}
Projects
The table below lists the fields available for projects in the response page:
Field Name
Description
project_name
Specifies the name of the current project.
url
Specifies the API URL to get URL details of
the current project.
link_to_gui
Specifies the URL of the Web GUI of VC
Execution Manager.
created
Specifies the created time of the current
project.
nconfigs
Specifies the number of configurations under
the current project.
VC Execution Manager™ User Guide
V-2023.12-SP2
377
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Field Name
Description
nsessions
Specifies the number of sessions under the
current project.
nusers
Specifies the number of users under the
current project.
owner
Specifies the owner of the current project.
configs_url
Specifies the API URL to get the list of
configurations under the current project.
Feedback
Examples
1. To get the details of a project, say project1, see the table below for its request and
response URLs.
Request GET
<webserver>:8000/api/v1/projects/project1
Response
{
"configs_url": "<webserver>:8000/api/v1/
projects/prject1/
configs",
"created": "2017-11-09T00:02:00",
"link_to_gui": "<webserver>:8000/eman/
project1",
"nconfigs": 101,
"nsessions": 2436,
"nusers": 3,
"owner": "regress",
"project_name": "nightly",
"url": "<webserver>:8000/api/v1/projects/
project1"
}
2. To get the details of all projects, see the table below for its request and response URLs.
VC Execution Manager™ User Guide
V-2023.12-SP2
378
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Request GET
<webserver>:8000/api/v1/projects
Response
{
"meta":
{
"limit": 0,
"offset": 0,
"total_count": 2
},
"objects":
[
{
"configs_url": "<webserver>:8000/api/v1/
projects/prject1/configs",
"created": "2017-11-09T00:02:00",
"link_to_gui": "<webserver>:8000/eman/
project1",
"nconfigs": 101,
"nsessions": 2436,
"nusers": 3,
"owner": "regress",
"project_name": "project1",
"url": "<webserver>:8000/api/v1/projects/
project1"
},
{
"configs_url": "<webserver>:8000/api/v1/
projects/prject2/configs",
"created": "2017-11-09T00:02:00",
"link_to_gui": "<webserver>:8000/eman/
project2",
"nconfigs": 0,
"nsessions": 2436,
"nusers": 1,
"owner": "regress",
"project_name": "project2",
"url": "<webserver>:8000/api/v1/projects/
project2"
}
]
}
Feedback
Configurations
The table below lists the fields available for configurations in the response page:
Field Name
Description
config_name
Specifies the name of the current
configuration.
VC Execution Manager™ User Guide
V-2023.12-SP2
379
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Field Name
Description
project_name
Specifies the name of the project to which the
current configuration belongs.
url
Specifies the API URL to get the URL details
of the current configuration.
link_to_gui
Specifies the URL of the Web GUI of VC
Execution Manager.
created
Specifies the created time of the current
project.
nassert
Specifies the number of test with assert
status in the latest session of the current
configuration.
nfailed
Specifies the number of test with failed
status in the latest session of the current
configuration.
npass
Specifies the number of test with pass
status in the latest session of the current
configuration.
nunknown
Specifies the number of test with unknown
status in the latest session of the current
configuration.
nwarn
Specifies the number of test with warn
status in the latest session of the current
configuration.
nsessions
Specifies the number of sessions under
current configuration.
ntests
Specifies the number of tests under the
current configuration.
sessions_url
Specifies the API URL to get the list of
configurations under the current project.
Feedback
Examples
1. To get the details of a configuration, say config1, see the table below for its request
and response URLs.
Request GET
<webserver>:8000/api/v1/projects/project1/confi
gs/config1
VC Execution Manager™ User Guide
V-2023.12-SP2
380
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Response
Feedback
{
"config_name": "config1",
"created": "2017-11-09T21:03:31",
"link_to_gui": "<webserver>:8000/eman/
project1/config1",
"nassert": 0,
"nfailed": 10,
"npass": 11,
"nsessions": 264,
"ntests": 21,
"nunknown": 0,
"nwarn": 0,
"project_name": "project1",
"sessions_url": "<webserver>:8000/api/v1/
projects/project1/configs/config1/
sessions"
}
2. To get all configuration details of a project, see the table below for its request and
response URLs.
Request GET
<webserver>:8000/api/v1/projects/project1/conf
igs
Response
{
"meta":
{
"limit": 0,
"offset": 0,
"total_count": 1
},
"objects":
[
{
"config_name": "config1",
"created": "2017-11-09T21:03:31",
"link_to_gui": "<webserver>:8000/eman/
project1/config1",
"nassert": 0,
"nfailed": 10,
"npass": 11,
"nsessions": 264,
"ntests": 21,
"nunknown": 0,
"nwarn": 0,
"project_name": "project1",
"sessions_url": "<webserver>:8000/api/v1/
projects/project1/configs/config1/
sessions"
}
VC Execution Manager™ User Guide
V-2023.12-SP2
381
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Feedback
Sessions
The table below lists the fields available for configurations in the response page:
Field Name
Description
config_name
Specifies the name of the configuration to
which the current session belongs.
project_name
Specifies the name of the project to which the
current session belongs.
session_name
Specifies the name of the current session.
url
Specifies the API URL to get the URL details
of the current session.
link_to_gui
Specifies the URL of the web GUI of VC
Execution Manager.
start_time
Specifies the start time of the current
session.
end_time
Specifies the end time of the current session.
state
Specifies the state of the current session.
nassert
Specifies the number of test with assert
status of the current session.
nfailed
Specifies the number of test with failed status
of the current session.
npass
Specifies the number of test with pass status
of the current session.
nunknown
Specifies the number of test with unknown
status of the current session.
nwarn
Specifies the number of test with warn status
of the current session.
ntests
Specifies the number of tests under the
current configuration.
VC Execution Manager™ User Guide
V-2023.12-SP2
382
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Feedback
Examples
1. To get the details of a session, say session_1, see the table below for its request and
response URLs.
Request GET
<webserver>:8000/api/v1/projects/project1/confi
gs/config1/sessions/session_1
Response
{
"config_name": "config1",
"created": "2017-11-21T18:33:21",
"link_to_gui": "<webserver>:8000/eman/
project1/config1/
session_1",
"nassert": 0,
"nfailed": 10,
"npass": 11,
"ntests": 21,
"nunknown": 0,
"nwarn": 0,
"project_name": "project1",
"session_name": "session_1",
"start_time": "2017-11-21T18:32:25",
"state": "completed",
"url": "<webserver>:8000/api/v1/projects/
project1/configs/config1/sessions/
session_1"
}
2. To get the details of all sessions, see the table below for their request and response
URLs.
VC Execution Manager™ User Guide
V-2023.12-SP2
383
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Request GET
<webserver>:8000/api/v1/projects/project1/confi
gs/config1/sessions
Response
{
"meta":
{
"limit": 0,
"next": null,
"offset": 0,
"previous": null,
"total_count": 1
},
"objects":
[
{
"config_name": "config1",
"created": "2017-11-21T18:33:21",
"link_to_gui": "<webserver>:8000/eman/
project1/config1/
session_1",
"nassert": 0,
"nfailed": 10,
"npass": 11,
"ntests": 21,
"nunknown": 0,
"nwarn": 0,
"project_name": "project1",
"session_name": "session_1",
"start_time": "2017-11-21T18:32:25",
"state": "completed",
"url": "<webserver>:8000/api/v1/projects/
project1/configs/config1/sessions/
session_1"
}
Feedback
Accessing Plan Data
ExecMan enables you to access plan data which is saved in the database using ExecMan
Rest API calls. The plan data can be used for plan grade regressions and can be
accessed for any specific session, project, and config.
The syntax to access plan data through API with the following URL pattern:
<server>:<port>/api/v1/planresults?project=<project_name>&config=<config_
name>&session=<session_name>
where, <session> = Extracts plan data related to the specific session
<project> = Extracts plan data related to the specific project
<config> = Extracts plan data related to the specific configuration
VC Execution Manager™ User Guide
V-2023.12-SP2
384
Chapter 10: Restful Application Programming Interface (Restful API)
API Reference
Feedback
If none of the above tags is specified, ExecMan retrieves entire plan data.
VC Execution Manager™ User Guide
V-2023.12-SP2
385
Feedback
11
Viewing and Analyzing Results
You can view and analyze a regression run report using the ExecMan Web interface and
using the Verdi GUI. The regression run report is displayed in a sortable table format.
To sort the table, click the column name or the icon beside the column name. Click the
project name to see the details of the project. The report shows the list of configuration
runs (the name specified for config_name in the configuration file) for the selected project,
as shown in Figure 41.
Figure 41
Configs Page (Configs Created for a Project)
VC Execution Manager™ User Guide
V-2023.12-SP2
386
Chapter 11: Viewing and Analyzing Results
Feedback
Click the config name to see the sessions you have run for this configuration. A report
similar to Figure 42 is displayed:
Figure 42
Sessions Run for a Configuration
Note that as you traverse, the hierarchy that you are traversing is shown at the top of the
reports table, as shown in the following figure:
Click these names to navigate to project, config, session, build and tests page. Click the
session name to view the builds for that session. Similarly, click the build name to view the
tests that are run for the build.
This section contains the following topics:
• Configuring the Auto Refresh Interval
• Layout Customization Framework
• Viewing the Build Status
• Viewing the Test Status
• Displaying Sessions Within a Specific Scope
• Viewing Test Groups
• Viewing Test Trend Chart
• Creating and Viewing Trend Chart for Plan Data
• Excluding or Including Sessions for Trend Charts
VC Execution Manager™ User Guide
V-2023.12-SP2
387
Chapter 11: Viewing and Analyzing Results
Configuring the Auto Refresh Interval
Feedback
• Managing X-Axis in Session and Plan Trend Charts
• Configurable Trend Charts
• Multiple Charts on the Same Page
• Selecting and Deselecting Rows
• Viewing Results From all Sessions and Configurations
• Filtering Results
• Viewing Log Files
• Adding Comments
• Saving Results to a CSV File
• Emailing the Results Page Link
• Comparing Sessions
• Deleting Sessions
• Categorizing the Status
• Viewing Test Status in a URG Dashboard
• Viewing the URG Report From the Session Detail Page
Configuring the Auto Refresh Interval
The ExecMan Web page automatically gets updated at a regular interval to reflect the
regression run data. You can configure this auto refresh interval by performing the
following steps:
1. Click the Settings link in any of the ExecMan Web page to open the Settings page.
2. In the Settings page, select the required refresh time interval from the Refresh
interval drop-down menu. Its default value is 30 seconds.
VC Execution Manager™ User Guide
V-2023.12-SP2
388
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
3. Click the Reset button to apply the change.
Figure 43
Configuring the Refresh Interval of the ExecMan User Interface
Layout Customization Framework
Layout customization is a framework that allows you to modify various Data Tables in the
VMS web GUI. Using this you may hide/show table columns, change the order of columns,
rename the column header and make column header vertical/horizontal and save it to a
layout.
You may open this window by clicking Customize button.
VC Execution Manager™ User Guide
V-2023.12-SP2
389
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
Layout Selector
Layout selector can be used to select the layout and view/edit/delete the layouts. You may
select a layout and click Apply to apply a particular layout.
The default layout cannot be viewed while other layout is already applied/viewed, unless
the default layout is a saved layout set by the admin user.
Select/Unselect Columns
When the Column Customization window is opened, hidden columns appear in
“Unselected Columns” table and visible columns appear in “Selected Columns” table.
You may move the columns between “Unselected Columns” and “Selected Columns” table
using the “Left Arrow” and “Right Arrow” buttons.
Reorder Columns
From the “Selected Columns” table, you may select a column or multiple columns and may
change the order of columns to appear in the table. You may use the Up arrow and Down
arrow buttons to change the order.
VC Execution Manager™ User Guide
V-2023.12-SP2
390
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
Rename Column Header
In the Column Customization window, you may double-click on any column name and
rename that column header name.
For already renamed columns and for the columns, which header is renamed, the original
name is shown within the brackets.
VC Execution Manager™ User Guide
V-2023.12-SP2
391
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
Save, Apply, Delete, Save & Apply, Reset
Any changes done on the Column Customization window is temporary and does not have
any effect if the Cancel button is clicked. Those changes need to be saved to a layout
using the Save button or click Apply to get the changes applied to the respective table.
Save
You may click Save to save the current changes/state of the customization window to a
layout.
If a layout name is not provided, the changes get saved to a layout named user_default.
The default layout cannot be modified or deleted. If the layout name is set as default,
an error message pops up saying “Could not save layout default. The default name is
reserved, please choose a different name”. If the given layout name already exists, then
that layout gets updated.
Save & Apply
You may click Save & Apply to save the current changes/state of the customization
window to a layout and apply that particular layout.
Delete
You may click Delete to delete a single layout or multiple layouts from the drop-down list.
Apply
If a layout is selected in the Select Layout drop-down list, then that particular layout gets
applied.
VC Execution Manager™ User Guide
V-2023.12-SP2
392
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
If a layout is not selected, then the current changes/state in the Column Customization
window gets saved to a layout named user_default and this user_default gets applied.
Reset
You may click Reset to reset the Column Customization window to its initial state with its
default settings.
Vertical Column Header
You may enable the Vertical table headers check box to rotate the table column headers
text vertically. The text alignment is saved as part of the layout. Click Save to save it to the
layout.
You may find this feature only in the results pages and on the web.
VC Execution Manager™ User Guide
V-2023.12-SP2
393
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
The columns listed below, indicate the following:
• D.Ready - Debug run has a different status when compared to the original run.
• D.Mis - Debug rerun has the same status as the original run.
All debug runs come under one of these buckets.
Web UI pass, fail, run, and wait counters are not considered for the debug rerun.
Share Layout
By default, the layouts are private. Only the user who owns the layout can use the layout.
You may enable the Share Layout check box of a layout to share it with other users.
If a layout is shared, it appears for other users; however,
• If other user apply this layout - First it gets saved as a new layout named
<username>_<orginal_name> and this layout gets applied
• If other user tries to save this layout - Then it is saved as a new layout named
<orginal_name>_local
VC Execution Manager™ User Guide
V-2023.12-SP2
394
Chapter 11: Viewing and Analyzing Results
Layout Customization Framework
Feedback
Apply Layout as default
The admin user and the project managers may apply a default for other users. If a layout
is marked as “Apply as default for all users”, that particular layout is saved as layout
named default. If other users apply this default layout, then newly set/saved default gets
applied.
Other users cannot delete this default layout; however, the owner of that layout can delete
this default and in that case the initial original default gets restored.
VC Execution Manager™ User Guide
V-2023.12-SP2
395
Chapter 11: Viewing and Analyzing Results
Viewing the Build Status
Feedback
Viewing the Build Status
When you click a session, the builds page is displayed, as shown in the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
396
Chapter 11: Viewing and Analyzing Results
Viewing the Build Status
Feedback
The information about color-coding used in the builds report is available when you click the
Legend and Note link, as shown in the following figure:
Figure 44
Color Coding
VC Execution Manager™ User Guide
V-2023.12-SP2
397
Chapter 11: Viewing and Analyzing Results
Viewing the Build Status
Feedback
In the regression run report, for each build, you can see the status, start time, runtime and
configuration name. Click
to see the saved files for the selected build. If the build
directory exists, you can also see the list of files in that directory.
The color-coded numbers in the report table are click-able. Click these numbers to see
base status type and the session attributes.
The Merge table shown above the report table shows the names of any saved session
files and the contents of the merge directory (if it exists). To see the contents of the file,
click the file. A report similar to the following figure is displayed:
If you click the Session Attributes link, it displays the following Session Attributes list:
When you click the Rerun button, the current session name is passed to the rerun
command through -parent_session session_name. Then, in the Session Attributes list
of the new session, the parent_session attribute appears in the Session Attributes list
of a new session along with a link to the parent session and the Compare With Parent
button. The Compare With Parent button navigates you to the Compare Session page,
which compares a parent session with rerun session (new session). For more details, see
Linking a Parent Session With a Rerun Session.
VC Execution Manager™ User Guide
V-2023.12-SP2
398
Chapter 11: Viewing and Analyzing Results
Viewing the Test Status
Feedback
Viewing the Test Status
Click the build name in the builds page to see the tests that are run for a build. The tests
status is displayed, as shown in Figure 45.
Figure 45
Tests Page
To see the saved files for a test, click
that directory are also displayed.
. If the test run directory exists, the list of files in
Similar to the builds view, the Merge table above the reports table shows the names of
any saved session files and the contents of the merge directory (if it exists). To see the
contents of the file, click the file.
Error Counts: You can find the count of all other matching custom patterns in the results
table. This is available by default for all tests.
If debug commands are given in the configuration and if a test fails, and if it is run again
with the debug flags. In this scenario, the test name is listed twice, as shown in the
following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
399
Chapter 11: Viewing and Analyzing Results
Viewing the Test Status
Feedback
The debug-rerun test name is highlighted in blue. You can use the
drop down list to view only debug tests, normal tests, or all tests.
Test Run History: To view the list of all sessions where a specific test is run across all
regression sessions, click the
history icon. When you click
, the test history
is displayed, as shown in Figure 46. This page displays the built-in data and custom
values from various sessions in the descending order of the session start time. You can
customize the number of rows in this view.
VC Execution Manager™ User Guide
V-2023.12-SP2
400
Chapter 11: Viewing and Analyzing Results
Displaying Sessions Within a Specific Scope
Figure 46
Feedback
Test Run History
This page also displays the summary of the particular test across all past sessions. The
data that is available as integer or float can be seen as graphically. Click the Show Trend
button available above the table to see the graphical view of data. By default, run_time
value is plotted.
Displaying Sessions Within a Specific Scope
ExecMan enables you to view all sessions within a specific scope (tests, builds, etc.)
irrespective of the seeds and flags.
When the
icon in the History column of the Results page is clicked, it displays a
page that shows all the sessions within a specific scope. For example, when the
icon is clicked for heidi_1022423141, it shows all results for all sessions of the specific
configuration and project:
VC Execution Manager™ User Guide
V-2023.12-SP2
401
Chapter 11: Viewing and Analyzing Results
Viewing Test Groups
Feedback
When the Filter on Seed check box is enabled, ExecMan shows results with the same
seed number of the clicked scope (test/build). For example, when Filter on Seed is
checked, the following row with the same seed as that of heidi_1022423141 is displayed:
Viewing Test Groups
To see a test group and its subgroups in the Web UI, define the test group and its
subgroups in a regression configuration file. For information about defining the test groups,
see chapter VC Execution Manager Configuration File.
To see the test groups in the Web UI, select the view as hierarchical or tree and the
scope as all. To view the tests available in each group, navigate through the entire group
hierarchy in the hierarchical view. Figure 47 shows a sample tests page with tests groups
and its subgroups.
VC Execution Manager™ User Guide
V-2023.12-SP2
402
Chapter 11: Viewing and Analyzing Results
Viewing Test Groups
Figure 47
Feedback
Viewing Test Groups and its subgroups in Hierarchical View
The complete test path is formed by appending the group path and the test name to the
build, as shown in the following figure:
For example, the complete path for the test_sub_b2b test is my_first_build/g2/g3/
test_sub_b2b, as shown in the following figure:
If a group is not specified and if only the test name is specified, then that test is grouped
under the build.
To view the tests available in each group or subgroup in a single page, select the View as
tree. Figure 48 shows a sample tests page with tests groups and its subgroups.
VC Execution Manager™ User Guide
V-2023.12-SP2
403
Chapter 11: Viewing and Analyzing Results
Viewing Test Groups
Figure 48
Feedback
Viewing Groups and subgroups in the Tree View
Selecting Different Tests View
You can use the following selectors (drop down lists) to view the different classes of tests
of a regression:
• Type Selector
• Scope Selector
• View Selector
Note:
The Web page auto refreshes, when you select an option from the selector.
Type Selector
Enables you to view the standard tests, or the debug tests, or both the kinds of tests of
builds. The Show type selector consists of standard, debug and all options, as shown in
the following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
404
Chapter 11: Viewing and Analyzing Results
Viewing Test Groups
Feedback
The standard type of tests are displayed, by default, which shows only the normal (nondebug) tests in the view. When debug is selected, the page gets refreshed and shows
only the debug tests, if any debug test is available.
When all is selected, the page displays the combination of both standard (non-debug) and
debug tests.
Scope Selector
Enables you to view the builds or the tests or both builds and tests. The Scope selector
consists of all, testcase and build options, as shown in the following figure:
The Scope selector defaults to all. Select the testcase option if you want to view only the
tests. Note that this is context sensitive, that is, if you select the testcase scope from a
certain level and if there are no tests in that hierarchy, then the page would be empty.
View Selector
The View selector enables you to see the tests hierarchically or in a tree view. The View
selector consists of hierarchical view and tree view options, as shown in the following
figure and defaults to hierarchical:
When you select the hierarchical option, you can view the tests in a hierarchical manner.
Selecting the tree option, enables you to view the tests with reference to its parent build.
In the tree view, the regression results of builds/groups/tests are grouped under their
parent node and are displayed in the same page, as shown in Figure 49. You can click the
Expand All button to expand the hierarchy and click the Collapse All button to hide the
hierarchy. Clicking Collapse All shows only the top-level hierarchy. You can also click the
arrow keys to expand and collapse a particular hierarchy.
VC Execution Manager™ User Guide
V-2023.12-SP2
405
Chapter 11: Viewing and Analyzing Results
Viewing Test Trend Chart
Figure 49
Feedback
Tree View
Restoring the Default View
To view the tests with their default settings, click the Default view check-box, as shown in
the following figure:
When selected it refreshes the page with the default values of the selectors.
Viewing Test Trend Chart
Trend chart enables you to visualize the regression run data over a time period. In the
chart, x-axis shows the sessions for which the data is plotted. In the chart, y-axis shows
the actual data. Graph auto-scales on y-axis depending on the data. Click
to view
the test trend chart. Alternatively, click a new button, Trend Chart, from the Testlist page.
VC Execution Manager™ User Guide
V-2023.12-SP2
406
Chapter 11: Viewing and Analyzing Results
Viewing Test Trend Chart
Feedback
The button displays selected items in the session-level chart. If no item is selected, the
button displays all items in the session-level chart. For example, consider the following
figure in which only test_add is selected:
In this example, when the Trend Chart button is clicked, the following session-level chart
is displayed that shows the details of only one test:
If no test is selected, the following session-level chart is displayed that shows all builds/
tests:
VC Execution Manager™ User Guide
V-2023.12-SP2
407
Chapter 11: Viewing and Analyzing Results
Viewing Test Trend Chart
Feedback
At the bottom of the test trend chart page, a data selection pane is provided. The data
selection pane enables you to plot data for a particular date time range or for multiple
fields.
The following table provides the default values in the data selection pane:
Field
Default
Days
None
From
2 weeks before the time when the page was loaded
To
Time when the page is loaded
Limit
Limits the number of sessions displayed. The default is 10
Fields
run_time
Auto Refresh Fields: When the test trend page refreshes, the fields change automatically,
and therefore the graph is automatically reloaded.
For more information, click the Legend and Note link located on the bottom-left corner of
the page.
Field
Description
Days
Look back for the specified number of days from the current day
From
Date from when the data is picked
To
Date till when the data is picked. Default: Time when the page was loaded.
VC Execution Manager™ User Guide
V-2023.12-SP2
408
Chapter 11: Viewing and Analyzing Results
Viewing Test Trend Chart
Feedback
Field
Description
Field
Default is run_time. Ctrl+Click for selecting multiple fields. Note: If the field is not
of type int or float, then it is plotted as 0.
Limit
Number of sessions to be plotted in the graph. For example, if 25 results are
found for the selected time period and the limit is set to 10, then the graph would
display the first 10 sessions data.
Mouse over
Mouse over at any point would display all the selected fields for that session.
Disable field
Top left corner of the graph has quick disable/enable of fields.
Priority
Days field takes priority over From and To dates.
Figure 50 displays a sample test trend chart.
VC Execution Manager™ User Guide
V-2023.12-SP2
409
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Figure 50
Feedback
Sample Test Trend Chart
Creating and Viewing Trend Chart for Plan Data
This section describes how to create and view trend charts for verification plan data
associated with config or sessions in the following sub-sections:
• Viewing the Default Plan Trend
• Viewing Plan Trend Chart With Multiple Features
VC Execution Manager™ User Guide
V-2023.12-SP2
410
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Feedback
• Viewing Plan Trend With Multiple Features and Multiple Metrics
• Saving Trend Chart Configuration Values
• Loading the Saved Trend Chart
This feature enables you to plot plan data collected from ExecMan sessions. VC
Execution Manager accumulates plan data against regression sessions and maintains the
chronological order of the plan data.
The plan trend charting capability provides graphical visibility into data stored in the VC
Execution Manager database. It provides you the knowledge of scores from different
features for different metrics and enables you to visualize the coverage goals.
Before you can generate trend charts based on verification plans you must first store the
plan data into the eman database. Typically, you save annotated verification plan data to
the ExecMan database at the end of each complete regression session. You can save the
plan data with either of the following commands:
Using the plan save command:
% eman plan save -s <session_name> -xmlplan <plan.xml> <eman_options>
where, <session_name> is the session name of an existing session. <plan.xml> file is
generated using either URG or Verdi. For information about generating the xml file using
URG, see section “Reporting HVP Annotated Results in XML Format” in the Verification
Planner User Guide.
Using the testapi utility:
% eman testapi post -i <info_file> -t "/"
-xmlplan <report_dir>/plan.xml
Note:
If the EMAN_INFO_FILE environment variable is set to the testapi .info file,
then it is not required to use the -i <info_file> option with the testapi post
command:
% eman testapi post -t "/" -xmlplan <report_dir>/plan.xml
While creating trend charts, ExecMan fetches all the sessions for a given project and
config, over a specific period of time. With this session information, ExecMan further
fetches all the feature names used in the plan and plots them as trend chart.
Note:
Trend chart is created for a project and the configs created under that project.
Only one plan should be used and all the sessions should have data for that
plan. Normally, the verification plan changes over time and it is fine for the plan
VC Execution Manager™ User Guide
V-2023.12-SP2
411
Feedback
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
to change while creating a trend chart. However, changing the plan name would
change all the hierarchical paths of the subsequent features and historical data
would not be maintained. It shows up as two separate plans and the features
appear twice.
To view the plan trend chart, click
page or the Sessions page.
in the Plan Trend column displayed in the Config
Figure 51 shows the Config page with access to plan trend charts.
Figure 51
Plan Trend Enabled in the Config Page
Similarly, Figure 52 shows the Sessions page with access to plan trend charts.
Figure 52
Plan Trend Enabled in the Sessions Page
Note:
Trend chart for plan data is shown only if you save plan information for a
session. Otherwise, the trend charts would be empty.
Click the
plan trend icon to see the actual charting window. By default, the top level
plan name with Score metric is plotted in the chart. You can select one or more features
with one or more metrics and view the trend chart.
VC Execution Manager™ User Guide
V-2023.12-SP2
412
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Feedback
Plan trend chart converts all the coverage scores from floating point to the percentage.
The data for scores in the relational database is stored as floating point numbers. For
example, if the overall score for a plan stored is 0.92, it is plotted as 92% in the trend
chart.
Viewing the Default Plan Trend
Trend chart provides you the ability to view data over a time period. In the chart, x-axis
shows the sessions for which data is plotted. In the chart, y-axis shows the metric (scores)
for each selected feature. The graph auto-scales on y-axis depending on the data. At the
bottom of the graph, you can use the data selection pane to plot data for date time range
and for multiple fields. Figure 53 shows a sample default plan trend chart.
Figure 53
Sample Default Plan Trend Chart
VC Execution Manager™ User Guide
V-2023.12-SP2
413
Feedback
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Table 16 lists the fields and its default values available in the data selection pane of the
trend charting window.
Table 16
Default Values in the Trend Chart Data Pane
Field
Default
From
Set to two weeks from the current day
To
Set to current day
Days
Empty
Limit
Limits the number of sessions
displayed. The default is 10.
User
Current User
Features
Top level plan
Metrics
Score
Save/Delete chart
--
Viewing Plan Trend Chart With Multiple Features
You can view plan trend chart with multiple features plotted against sessions, as shown in
Figure 54. To select multiple features, press the Ctrl key and select the feature names in
the Features box, and then click the Refresh Chart button.
VC Execution Manager™ User Guide
V-2023.12-SP2
414
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Figure 54
Feedback
Plan Trend Chart With Multiple Features
Viewing Plan Trend With Multiple Features and Multiple Metrics
You can plot plan trend chart with multiple metrics and multiple features plotted against
sessions, as shown in Figure 55. It can also handle metrics with different base units, such
as percent and total.
To select multiple features, press the Ctrl key and select the feature names in the
Features box. Similarly, to select multiple metrics, press the Ctrl key and select the
required metric name in the Metrics box, and then click the Refresh Chart button.
VC Execution Manager™ User Guide
V-2023.12-SP2
415
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Figure 55
Feedback
Plan Trend Chart With Multiple Features and Multiple Metrics
VC Execution Manager™ User Guide
V-2023.12-SP2
416
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Feedback
Saving Trend Chart Configuration Values
To save certain trend chart configuration values, such as features and metrics with a given
date range or any number of past days with a certain number of sessions, perform the
following steps:
1. Press the Ctrl key and select the required features in the Features box and required
metrics in the Metrics box. You can also select the time period range.
2. Assign a name to your selection and click the green Save Chart Input button, as
shown in Figure 56.
Figure 56
Saving Trend Chart Configuration Values
VC Execution Manager™ User Guide
V-2023.12-SP2
417
Chapter 11: Viewing and Analyzing Results
Creating and Viewing Trend Chart for Plan Data
Feedback
Loading the Saved Trend Chart
After the chart configuration values are saved, you can reload the trend chart when
required. To view the saved trend chart, select the saved trend chart from the drop down
list, which is at the bottom of the chart, as shown in Figure 57.
Figure 57
Loading the Saved Trend Chart
VC Execution Manager™ User Guide
V-2023.12-SP2
418
Chapter 11: Viewing and Analyzing Results
Excluding or Including Sessions for Trend Charts
Feedback
Excluding or Including Sessions for Trend Charts
ExecMan enables you to trace only specific sessions in a trend chart. For this, ExecMan
provides two new buttons, TrendOut and TrendIn to specify which sessions you want
to exclude or include for trend charts. The TrendOut button enables you to select the
sessions for which you do not want to create trend charts. After a session is excluded for
trend charts, you might include it later using the TrendIn button.
To trace out a session from a trend chart, select the session and click the
button.
After the session is tagged with trend out, all relevant chart icons are disabled for the
session. For example, the Test Trend icon and the Plan Trend icon of the selected
sessions become gray as highlighted in the figure below:
If a session is marked as trend out, the trend charts (test and plan) become gray in all the
views, that is Project, Build, Test case, and Session, they appear.
The following figure shows the trend charts for the first five sessions only as the remaining
four sessions are marked as trend out:
VC Execution Manager™ User Guide
V-2023.12-SP2
419
Chapter 11: Viewing and Analyzing Results
Excluding or Including Sessions for Trend Charts
Feedback
To trace all trend-out sessions back in a trend chart, select the sessions and click
the
button. The following figure shows the trend chart that includes all sessions
after using the TrendIn button:
ExecMan provides a set of Restful APIs to access available resources and resource
details in the ExecMan database, such as viewing attributes of a certain session. The
Trend Off/On attribute for each session can be accessed via API. Following URL retrieves
all session attributes and trend out value:
<server>:<port>/api/v1/projects/<project_name>/configs/<config_name>/sess
ions
If the session is Trend Off, Trend out value is displayed as true. If the session is Trend On,
Trend out value is displayed as false.
VC Execution Manager™ User Guide
V-2023.12-SP2
420
Chapter 11: Viewing and Analyzing Results
Managing X-Axis in Session and Plan Trend Charts
Feedback
Managing X-Axis in Session and Plan Trend Charts
ExecMan provides a new mode of configuration, namely X-Axis, in session and plan
trend chart pages. This new configuration consists of two options: Session and Date. The
Session option is the existing functionality that shows the session name for which the data
is plotted. The Date option is the new functionality that enables you to view a date-wise
trend chart of session data.
The following figure shows the new X-Axis configuration:
If you select the Session option from X-Axis, ExecMan displays sessions on the x-axis
of a session/plan trend chart. If you select the Date option, ExecMan shows the Interval
(days) option that enables you to choose the duration for which you need to display a
trend chart. Its default value is 1 day. Here is the figure when X-Axis is selected as Date:
Consider the following example that shows the customized scores of two user-defined
metrics, AST and FCov, from February 28, 2018 to April 18, 2018 when X-Axis is set to
Date:
Using the Limit configuration, you might limit the number of sessions that needs to be
displayed in the trend chart. Note that its value is set to All; this trend chart would show
the data for all sessions.
The following figure shows the trend chart when X-Axis is set as Date:
VC Execution Manager™ User Guide
V-2023.12-SP2
421
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
Configurable Trend Charts
ExecMan provides three types of trend charts: session trend chart, plan trend chart, and
test trend chart. ExecMan enables you to configure chart style along with data range of
these trend charts. Customizing the chart style includes configuring chart title, chart style,
line style, and y-axis range. In addition, ExecMan allows you to reuse this information in
future by enabling you to save these customizations into the database.
This section consists of the following subsections:
• Configuring the Chart Title
• Configuring the Chart Style
• Configuring Y-Axis Data Range
• Data Model Overview
Configuring the Chart Title
In previous releases, all trend charts use test case name as their chart title. If there is no
test case name or scope name available, the trend chart would not have any chart title.
VC Execution Manager™ User Guide
V-2023.12-SP2
422
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
Starting with this release, ExecMan provides a default name as “Trend Chart” to all
trend charts if no test case name or scope name is available. If the name of a test case
exists, ExecMan provides its test name as the title of a trend chart. If the test name is not
available, ExecMan looks for the availability of the scope name to set the chart title as the
scope name.
ExecMan also enables you to configure the chart title. For this, use the CTRL key and then
left-click the chart title to display the Configure Chart Title dialog box as follows:
You might change the chart title to New Trend Chart by specifying this new value in the
Chart Title text box and click OK.
VC Execution Manager™ User Guide
V-2023.12-SP2
423
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
Configuring the Chart Style
ExecMan supports the style configuration for line and bar charts. Different chart type has
different configuration items:
Chart Type
Configuration Item
Line Chart
Line style
Line width
Color
Bar chart
Color
To configure the chart style, press the CTRL key and then left-click the Legend section to
display the Configure Chart Style dialog box. The legend section is highlighted in the red
color in the figure below:
As ExecMan currently supports configuration only for line and bar, Series Type shows line
and bar options only. The figure above shows the series types as line, you might configure
VC Execution Manager™ User Guide
V-2023.12-SP2
424
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
line style, line width, and color. For the bar chart, you might change its color as shown
below:
Configuring Y-Axis Data Range
In ExecMan, one chart can have a maximum of three y-axis. The following chart displays
two y-axis, TOTAL and INDEX and they are highlighted in the red color:
ExecMan enables you to configure the data range of any y-axis. For this, press the CTRL
key and then left-click the y-axis whose value you need to change. After this, ExecMan
displays the following Configure Y-axis Range dialog box:
VC Execution Manager™ User Guide
V-2023.12-SP2
425
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
In the Configure Y-axis Range dialog box, specify the minimum and maximum value for
the data range and click OK.
Data Model Overview
In ExecMan, a test is attached with one configuration. The test can be viewed using the
chart of its configuration only. For example, consider two configurations, namely juke
and juke2. The juke configuration has three sessions that are generated on 04/26/2018
and juke2 has two sessions that are generated on 04/27/2018 as shown in the following
figure:
When you view the session trend chart of juke, the chart shows only three sessions that
belongs to juke as shown in the figure below. The chart does not show any session of
juke2.
VC Execution Manager™ User Guide
V-2023.12-SP2
426
Feedback
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
In ExecMan, a test is also attached to one build. For example, consider a configuration,
juke3 that has two builds, my_build1 and my_build2. Consider that three tests, namely
random_test1, random_test2, and random_test3 are associated with my_build1. For
my_build2, only one test named seed87 is associated. Here is the sample ExecMan
configuration file:
config_name: juke3
builds:
- name: my_build1
run_cmd: vcs -sverilog -cm line+cond+fsm jukebox.v -o
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
- name: my_build2
run_cmd: vcs -sverilog -cm line jukebox.v -o simv
simv_location: $current_dir/compdir/simv
run_dir: $current_dir/compdir
simv
tests:
- name: random_test1, random_test2, random_test3
build: my_build1
arguments: -cm line+cond+fsm $ntb_random -l $run_log
count: 5
tags: random
-
name: seed87
build: my_build2
arguments: -cm line +ntb_random_seed=87 -l $run_log
tags: direct,critical
In the ExecMan GUI, these builds are displayed as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
427
Feedback
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
For each build, the session trend chart shows only those tests that belong to the build. The
following figure shows the session trend chart of my_build1:
Note that the session trend chart of my_build1 does not include any build from
my_build2.
For each configuration, there is only one plan trend chart and only one session trend
chart. For each configuration and scope, there is only one test trend chart. Therefore,
config_id, scope_id, and chart_type are used to identify trend charts. The format
data, such as chart title, line color, and line style, of trend charts are saved into the MySQL
database. A new database table is created to save all format data. An example of the new
database table is as follows:
Table Name
chart
Column Name
Key Type
Data Type
Description
id
Primary Key
int
Specified unique id.
project_id
Foreign Key
int
Specifies the unique key of
the project table.
config_id
Foreign Key
int
Specifies the unique key of
the configuration table.
scope_id
Foreign Key
int
Specifies the unique key of
the scope table.
VC Execution Manager™ User Guide
V-2023.12-SP2
428
Feedback
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Table Name
user_id
Foreign Key
int
Specifies the unique key of
the user table.
chart_type
varchar
Its available values are test,
session, and plan.
chart_setting_name
varchar
Specifies the name of the
chart setting.
chart_setting
varchar
Contains the JavaScript
Object Notation (JSON) format
string, which contains all
setting items.
modified_time
datetime
Specifies the last modified
time.
To uniquely identify the data, combination of the five fields, that is project_id,
config_id, scope_id, chart_type, and chart_setting_name are used.
The data range and style of a chart are saved into the chart_setting field of the chart
table in the JSON format. An example of the JSON format showing the chart_setting
field of the chart table is as follows:
{
"From":"2018-04-11 02:30:57",
"Field":[
"nassert",
"nfailed",
"npass",
"nunknown",
"nwarn",
"run_time"
],
"Days":"----",
"To":"2018-04-25 02:30:57",
"Limit":"10",
"chart_style":"
{
"title":"my1",
"yaxisRanges":[
{
"id":"primary_yAxis",
"min":null,
"max":null
},
{
"id":"secondary_yAxis",
VC Execution Manager™ User Guide
V-2023.12-SP2
429
Chapter 11: Viewing and Analyzing Results
Configurable Trend Charts
Feedback
"min":null,
"max":null
},
{
"id":"tertiary_yAxis",
"min":null,
"max":null
}
],
"seriesStyle":[
{
"name":"run_time",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#058DC7"
},
{
"name":"npass",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#50B432"
},
{
"name":"nwarn",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#ED561B"
},
{
"name":"nfailed",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#DDDF00"
},
{
"name":"nassert",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#24CBE5"
},
{
"name":"nunknown",
"type":"spline",
"lineStyle":"Solid",
"lineWidth":"2",
"color":"#64E572"
}
]
VC Execution Manager™ User Guide
V-2023.12-SP2
430
Chapter 11: Viewing and Analyzing Results
Multiple Charts on the Same Page
Feedback
}
"
}
Multiple Charts on the Same Page
ExecMan supports the centralized management of charts and provides a way to display
multiple charts on the same page. ExecMan provides a new tab, Charts, which shows the
details of saved charts and group charts. In the Charts tab, you might create, edit, and
delete a chart group. A chart group is a collection of saved charts and is used to show
multiple charts on a single page in the ExecMan Web GUI.
When you login to the ExecMan Web GUI, the Charts tab appear on the top-right of the
page:
When you click the Charts tab, ExecMan displays the Chart page as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
431
Chapter 11: Viewing and Analyzing Results
Multiple Charts on the Same Page
Feedback
The Charts page contains the following sections:
• Filters: It includes the following options:
◦ Users: Filters the chart table and the chart group table based on user names.
◦ Rows: Sets the number of rows to be displayed of the chart table and chart group
table.
• Buttons: It includes the following options:
◦ Create Chart Group: Creates a new chart group based on users' selection. This
button displays the Configure Chart Group dialog box. For details on this dialog
box, see Creating a Chart Group.
◦ Edit Chart Group: Edits the selected chart group. You can add, delete, and sort a
chart in the group. This button displays the Configure Chart Group dialog box. For
details on this button, see Editing a Chart Group.
◦ Delete: Deletes the selected chart or the selected chart group.
• Chart Table: Lists all the saved charts. To navigate to the Chart Detail page, click the
Chart Name link. The link navigates to the Chart Detail page as shown below:
VC Execution Manager™ User Guide
V-2023.12-SP2
432
Chapter 11: Viewing and Analyzing Results
Multiple Charts on the Same Page
Feedback
• Chart Group Table: Lists all the created chart groups. To view all charts in one page,
click the Chart Group Name link. The link navigates to the Chart Group Detail page
as shown below:
In the Chart Group Detail page, ExecMan shows all the charts that belong to the selected
group. ExecMan displays three charts in a line, by default. To select any other value than
three, use the Chart Count Per Line list box as highlighted in the figure below:
Note:
It is possible to create a chart group by selecting tests from the Chart Table list
and groups from the Chart Group Table list. After selected, click the Create
VC Execution Manager™ User Guide
V-2023.12-SP2
433
Chapter 11: Viewing and Analyzing Results
Multiple Charts on the Same Page
Feedback
Chart Group button. For details on how to create a chart group, see Creating a
Chart Group.
ExecMan enables you to display different saved charts in one figure. To display all charts
in a group in one chart, use the One Chart option from the Chart Count Per Line box. To
display all charts in a group in separate charts , select the Separate Chart option.
Note:
• x-axis should be the same: either session, date or time. If charts in a group
have different x-axis, the Chart Count Per Line box is disabled.
• y-axis can be different, as ExecMan supports different y-axis in one chart.
The following figure shows all charts in a group are displayed in one chart:
This section consists of the following subsections:
• Creating a Chart Group
• Editing a Chart Group
• Deleting a Chart Group
Creating a Chart Group
To create a chart group, click the
button. The button invokes
the Configure Chart Group dialog box to input details, such as group name and group
charts. The following figure shows the Configure Chart Group dialog box:
VC Execution Manager™ User Guide
V-2023.12-SP2
434
Chapter 11: Viewing and Analyzing Results
Multiple Charts on the Same Page
Feedback
The Configure Chart Group dialog box consists of the following fields:
• Group Name: Specifies the unique name for the chart group. If the group name
already exists, ExecMan overwrites its previous settings. This is a mandatory field.
• Available Charts: Lists all the charts that can be added to the current group.
• Selected Charts: Lists all the charts that are selected from the Available Charts for
including in the current group. It is mandatory to add a chart in this list.
• Add Chart: Enables you to select one or more charts from the Available Charts list for
adding in the Selected Charts list.
• Remove Chart: Enables you to remove one or more charts from the Selected Charts
list for removing them from the chart group. These removed charts are added back to
the Available Charts list. You might add them back to the Selected Charts list using
the Add Chart button.
• Move Up/Move Down: Enables you to move a chart up or down in the Selected
Charts list. These buttons help to decide the display order of the charts.
Editing a Chart Group
ExecMan enables you to edit a chart group, that is, to add, remove, and sort a chart from
the chart group. For this, ExecMan provides the
button. This button is
disabled by default. To enable this button, select a chart group that you need to edit and
then, click the Edit Chart Group button.
VC Execution Manager™ User Guide
V-2023.12-SP2
435
Feedback
Chapter 11: Viewing and Analyzing Results
Selecting and Deselecting Rows
The Edit Chart Group button invokes the Configure Chart Group dialog box to modify
details, such as group name and group charts. To see the details on the Configure Chart
Group dialog box, see Creating a Chart Group.
If you edit a group name in the Configure Chart Group dialog box, ExecMan creates a
new chart group with the same details as provided for the previous group name.
Deleting a Chart Group
ExecMan enables you to delete a chart and a chart group. To delete a chart or a chart
group, select the chart or chart group, and click the
button.
Selecting and Deselecting Rows
ExecMan enables you to select all rows including hidden rows in the sessions table, build
table, tests/groups table using the Select All
table, use the Deselect All
button.
button. To deselect all rows in the
When the Select All button is clicked for a sessions table, all session IDs of the requested
project/configuration are stored in the requested session. On the other hand, when the
Select All button is clicked for a build table, all builds for the given session are selected
and stored in the requested session.
When the Select All button is selected for tests/groups tables, all the tests/group under
the requested sessions/builds are selected. This selection gets propagated from the
parent build/group/test to its children builds/groups/tests. If build X is selected, all the
groups/tests under build X is selected when Select All is clicked.
VC Execution Manager™ User Guide
V-2023.12-SP2
436
Chapter 11: Viewing and Analyzing Results
Selecting and Deselecting Rows
Feedback
Consider the following figure in which all projects/configurations in the alu_uvm session
are selected when Select All is clicked:
When Deselect All is clicked, all projects/configurations in all 33 pages are deselected as
shown here:
VC Execution Manager™ User Guide
V-2023.12-SP2
437
Chapter 11: Viewing and Analyzing Results
Viewing Results From all Sessions and Configurations
Feedback
Viewing Results From all Sessions and Configurations
ExecMan enables you to show results for all sessions and configurations of current project
in one page. Also, it allows you to show results for all sessions of current configuration in
one page.
To show the details of results for all sessions of current configuration in one page, click the
Results button on the Session page. Following is the figure that shows the Results button
on the session page:
When the Results button is clicked, the following results page is displayed:
VC Execution Manager™ User Guide
V-2023.12-SP2
438
Chapter 11: Viewing and Analyzing Results
Viewing Results From all Sessions and Configurations
Feedback
To show results for all sessions and configurations of current project in one page, click the
Results button on the Configuration page. Following is the figure that shows the Results
button on the Configuration page:
When the Results button is clicked, the following results page is displayed:
VC Execution Manager™ User Guide
V-2023.12-SP2
439
Chapter 11: Viewing and Analyzing Results
Filtering Results
Feedback
Filtering Results
The Show Filter Fields feature allows filtering the contents of a results table. This feature
also allows creating filters, saving and deleting filters, and applying filters.
The Show Filter Fields feature is available on the following pages:
• Sessions
• Builds
• Builds/Test Groups
• Test Results
• All Test Results
To see the filtering options, select the Show Filter Fields check box.
This section consists of the following subsections:
• Creating Filters
• Saving and Deleting Filters
• Applying Filters
VC Execution Manager™ User Guide
V-2023.12-SP2
440
Chapter 11: Viewing and Analyzing Results
Filtering Results
Feedback
Creating Filters
To create a filter, perform the following steps:
1. Select an appropriate parameter key and operator and enter the parameter value.
2. Select suitable options from the following:
◦ For the query to be visible only to you, select the Private check box.
Note:
If you do not select the Private check box, then the query is public and it
is visible to all the users.
◦ For the query to be shared across all the projects, select the Global check box.
Note:
If you do not select the Global check box, then query can be used only
within the current project.
◦ If the input text is case-sensitive, select the Case Sensitive check box.
◦ If the input text is treated as a regular expression, select the Regex check box.
Saving and Deleting Filters
To save the filter in the database, click Save.
To delete a filter, select the filter from the drop-down list and click Delete.
Note:
If you modify the filter name, it cannot be deleted. You must reselect the filter
from the Filter drop-down list to delete it.
Applying Filters
Applying an Unsaved Filter
Create a filter based on the available parameters and click Apply Filters without saving.
Applying a Saved Filter
To apply a saved filter, select the filter from the Filter drop-down list and click Apply
Filters.
VC Execution Manager™ User Guide
V-2023.12-SP2
441
Chapter 11: Viewing and Analyzing Results
Viewing Log Files
Feedback
Viewing Log Files
Execution Manager generates log files for each regression run. To view the log file, click
the log link in the Log File column for the test run log you want to see. The log file shows
all the errors which match with the error patterns (error patterns are defined in the error
specification file or in the eman configuration file). By default, all the predefined patterns
are displayed from the log file.
Note:
If a run log is not available, ExecMan displays a spool log if it is available.
Figure 58
Default Log File
You can further filter the error patterns displayed in the log file using the Status and
Custom Status filters.
VC Execution Manager™ User Guide
V-2023.12-SP2
442
Chapter 11: Viewing and Analyzing Results
Adding Comments
Feedback
1. To set the required status filter, select the required field, that is fail, warn, or pass in
the Status filter. To choose multiple fields, hold the Ctrl key and click to select the
required field.
2. To set the required custom status, click to select the field in the Custom status filter.
To choose multiple fields, hold the Ctrl key and click to select the required field.
3. Click the Reload button to load the page. Select the Auto Reload check box to
automatically refresh the log file.
You can further refine the display of the information in the log file using the Num of
matches and Line context fields. Select a number in the Num of matches drop-down list
to limit the search result number.
To choose the number of lines that should be displayed after the matched pattern, select a
number in the Line context drop-down list.
Select the View File check box to view the whole log file. This file displays all the
information of a regression run, including the simulation report.
Adding Comments
ExecMan enables you to add comments to sessions, builds, or tests, if required for your
future reference. To add a comment, perform the following steps:
1. In the Comments column, click the Click to add a comment link.
2. Add your comment and either click outside the field or press the Enter key to save the
comment.
VC Execution Manager™ User Guide
V-2023.12-SP2
443
Chapter 11: Viewing and Analyzing Results
Adding Comments
Feedback
To edit an existing comment, click the text or the Edit button and make the required
changes. To remove a comment, delete the text and either click outside the field or
press the Enter key.
Figure 59
Adding Comments
You can add comments for selected tests together using the Bulk Edit check box. For this,
perform the following steps:
1. Select the tests for which you want to add comments.
2. Select the Bulk Edit check box as shown in the following figure:
Figure 60
Bulk Edit
VC Execution Manager™ User Guide
V-2023.12-SP2
444
Chapter 11: Viewing and Analyzing Results
Saving Results to a CSV File
Feedback
3. Select the Click to add a comment link for a test and specify your comment and press
Enter (see the Comment column in the following figure):
Figure 61
The Comment Column
Note:
If you select a test group, for example test_add_sub in Figure 61 and
click Bulk Edit, all tests associated with the test group are selected. In
addition, if you specify a comment to a test group, that comment is added
to the associated tests. If an associated test already has any comment, that
comment is overwritten by the comment specified using Bulk Edit.
Saving Results to a CSV File
To export the builds or test results to a .csv file (which can be opened in Excel or other
spreadsheet applications) click the Save as CSV link provided above the top-right corner
of the table.
ExecMan provides two sub-links for the Save as CSV link, all and selected, on every
page of the Web UI. The all sub-link saves all items and their associated items available
on a page of the Web UI even when they are not selected for saving. The selected sublink saves only the items and their associated items that are selected for saving.
To select all items, select the checkbox next to the Name field as highlighted in the
following figure:
VC Execution Manager™ User Guide
V-2023.12-SP2
445
Chapter 11: Viewing and Analyzing Results
Emailing the Results Page Link
Feedback
If you select a build in the build page, its associated tests within the build are saved at the
same time. If the all sub-link of the Save as CSV link is clicked, then all builds and their
associated tests in the build page are saved. If the selected sub-link of the Save as CSV
link is clicked, then only the selected build and its associated tests are saved (see the
figure below):
This feature is applicable for all views: hierarchical, flat, and tree.
Emailing the Results Page Link
To send an email with the link of the results page, click the Email link provided above the
top-right corner of the table. Your default email tool is used to send the email and you can
add other text before sending it. Following is a sample email:
The results page for the session can be viewed by the recipient of the email by clicking the
link.
VC Execution Manager™ User Guide
V-2023.12-SP2
446
Chapter 11: Viewing and Analyzing Results
Comparing Sessions
Feedback
Comparing Sessions
In the sessions page, select the check-boxes to select any two sessions that you intend to
compare. After selecting the sessions, click the Compare Session button provided at the
top of the table.
Figure 62
Comparing Sessions
When you click the Compare Session button, the comparison results of the sessions are
displayed, as shown in Figure 63. All the custom fields are considered for comparison. You
can select the required Compare value from the Compare drop down list.
Figure 63
Comparison of Sessions
You can perform the following types of comparisons:
VC Execution Manager™ User Guide
V-2023.12-SP2
447
Chapter 11: Viewing and Analyzing Results
Deleting Sessions
Feedback
Note the following choices from the drop down list:
• Different Status: Only those tests would appear in the page where the status of the
test in the first session is not equal to the status of the test in the second session.
• Failed in First session: Only the tests failed in the first session would appear in the
comparison page.
• Failed in Second session: Only the tests failed in the second session would appear in
the comparison page.
• All Tests: Compares all tests from both of the sessions. This results in a union of tests
from both sessions.
Note:
For more information about comparing sessions, click the Legends link
provided at the bottom-left corner of each page.
Deleting Sessions
You might want to delete redundant sessions or unwanted sessions from the regression
run data. To delete the sessions, in the sessions page, select the check boxes to select
one or more sessions that you want to delete. After selecting the sessions, click the Delete
Session button provided at the top of the table.
A confirmation dialog box opens. Click Yes to delete all the selected sessions.
Figure 64
Deleting Sessions
VC Execution Manager™ User Guide
V-2023.12-SP2
448
Chapter 11: Viewing and Analyzing Results
Categorizing the Status
Feedback
Categorizing the Status
Execution Manager automatically categorizes the tests run status in the UI. You can
access these categories from the results view page as categorization is done for all
tests. You can view categorization for the full list of tests of a build or for a specific
category (pass/fail/warn/assert/unknown). Click the number for which you want to see the
categorization.
Click the aggregated number to see the categorized view. Clicking the number in the Total
column shows the categorized view for all tests, whereas clicking the number in the F (fail)
column shows only failed categories.
This categorized view shows two columns. The first column shows the category and
second column shows the number of tests in that category.
Click the category to see all the tests in a specific category. This also provides you access
to the log files, if it is preset.
VC Execution Manager™ User Guide
V-2023.12-SP2
449
Chapter 11: Viewing and Analyzing Results
Viewing Test Status in a URG Dashboard
Feedback
Viewing Test Status in a URG Dashboard
To view the test status in URG, pass the -plan option in the eman command line, which
registers the pass fail results of tests back to the urgReport.
Syntax:
% eman -regr_config <my_config.emc> -plan <plan.hvp> -merge_dir
<mergedir>
VC Execution Manager™ User Guide
V-2023.12-SP2
450
Chapter 11: Viewing and Analyzing Results
Viewing the URG Report From the Session Detail Page
Feedback
Browse to the userdata.html file located in the emanMergedir/merged/urgReport/
directory to view the report. A report similar to Figure 65 is displayed with the tests and its
status:
Figure 65
User Data
Viewing the URG Report From the Session Detail Page
When you click the Test Trend
icon to show the trend chart for a session, it shows
session names on its x-axis. To view the details of a session, click the session name and
ExecMan displays its Session Detail page as follows:
VC Execution Manager™ User Guide
V-2023.12-SP2
451
Chapter 11: Viewing and Analyzing Results
Viewing the URG Report From the Session Detail Page
Feedback
In the Session Detail page, ExecMan provides a link to the URG report as highlighted
below:
To display the following URG report for a session, click the urgReport link:
VC Execution Manager™ User Guide
V-2023.12-SP2
452
Chapter 11: Viewing and Analyzing Results
Viewing the URG Report From the Session Detail Page
Feedback
ExecMan displays the URG report in the same tab, by default. To display the report in a
new tab, perform the following steps:
1. Click the Settings tab on the top-right side of the Session Detail page to display the
following settings:
2. Select the In a new tab page option from the Open URG report list box.
3. Click Reset.
VC Execution Manager™ User Guide
V-2023.12-SP2
453
Feedback
12
Retrieving Information From the Database
Database views are intended to be used as an interface for third- party applications to
retrieve data from the ExecMan database. This section defines the read-only views into
the execution manager database and describes the fields available in each view.
You can access the database views by any application capable of querying an SQL
database. These applications include custom tools written in Perl, Python, Java, and so on
and off-the shelf tools such as JasperReports, JetSQL, MySQL Workbench.
To the SQL application they appear just as any other table in the DB except that the
views are read-only, that is, you cannot INSERT, UPDATE, DELETE, or ALTER data. The
applications accessing these views should use the built-in user-id emanread(the password
remains the same, emanread).
Though you cannot use views to change data in the DB, you can use a set of SQL
functionality against these views, including selecting a subset of columns, filtering with
WHERE, sorting and grouping with ORDER BY and GROUP BY, and JOIN with other
views to create new views.
Most of the fields in the database views are intended for all users. However, some fields
are used only for the purpose of JOINing views to other views. Those fields are internal
unique ID fields and all end with the string “_id”. Applications should only use those _id
fields for JOINing and not for any other purpose. For example, as an external reference
to the records returned by the views. This is because the IDs of the view records might
change in future. Though those _id fields might change, they always remains selfconsistent at any moment in time so they are always safe for JOINs.
The following are the different views available with ExecMan:
• testcase_result_vw
• custom_result_vw
• feature_vw
• feature_attribute_vw
• metric_vw
• feature_core_vw
• sess_vw
VC Execution Manager™ User Guide
V-2023.12-SP2
454
Chapter 12: Retrieving Information From the Database
testcase_result_vw
Feedback
• sess_att_vw
• Usage Example
• Limitation - JOINed Tables
• Implementation Example
testcase_result_vw
The testcase_result_vw view is used to access the low level data that each test has
returned and the details of individual test runs. Typically, you can use this view to get a list
of all tests run for a session, or a list of results for a single test across multiple sessions.
Name
Type
Comment
result_id
Int
Unique ID for this testcase result. Used to JOIN to
project_name
String
Name of the project
config_name
String
Name of the config
scope_name
string
Full hierarchical name of the test
build_name
String
Name of the build associated with this test
session_name
String
Name of the session that this test result is a member of
host_name
String
Name of the host where this test ran
path
String
Path to the directory where this test ran
start_time
Datetime
When this test started
end_time
Datetime
When this test completed
run_time
Int
Wall clock runtime for this test in seconds
random_seed
Int
Random seed for this test
status_name
String
Test result in terms of user-defined status code
status
String
Test result in standard {pass, warn, fail, unknown} domain
custom_result_vw
Sample Query
The following query returns the runtime consumed by tests over a range of time.
VC Execution Manager™ User Guide
V-2023.12-SP2
455
Chapter 12: Retrieving Information From the Database
custom_result_vw
Feedback
mysql> SELECT scope_name, sum(run_time) AS total_run_time
-> FROM testcase_result_vw
-> WHERE (project_name = 'myproj') and (config_name = 'gen_data')
and (start_time > '2014-06-06') and (start_time < '2015-08-22')
-> GROUP BY scope_name
-> ORDER BY scope_name;
+-------------------+----------------+
| scope_name
| total_run_time |
+-------------------+----------------+
| default/add
|
5361 |
| default/add_b2b
|
6511 |
| default/add_sub
|
6219 |
| default/dev_brick
|
7063 |
| default/dev_jtag
|
6535 |
| default/dev_pwrdn
|
6533 |
| default/dev_pwrup
|
7153 |
| default/mmu_flush
|
6692 |
| default/mmu_int
|
6354 |
| default/mmu_pdx
|
6151 |
| default/mmu_r2r
|
6486 |
| default/mmu_reset
|
6081 |
| default/sub1
|
6334 |
| default/sub_b2b
|
7313 |
+-------------------+----------------+
14 rows in set (0.03 sec)
custom_result_vw
The custom_result_vw: provides custom results associated with each test. This table
should be JOINed to testcase_result_vw via result_id, After per attribute, to access
the custom results associated with test cases.
Name
Type
Comment
result_id
Int
Reference to testcase_vw.result_id
name
String
Name of this custom result
value
String
Value of this custom result
Sample Query
Thecustom_result_vwview cannot be used a standalone database view. Usually
it is JOINed with another table such as testcase_result_vw. This query binds
testcase_result_vw with custom_result_vw so that a user-defined result called
'baselist' is included.
mysql> SELECT tr.scope_name, cr.value AS baselist, tr.session_name
-> FROM testcase_result_vw tr
VC Execution Manager™ User Guide
V-2023.12-SP2
456
Chapter 12: Retrieving Information From the Database
feature_vw
Feedback
-> LEFT JOIN custom_result_vw cr ON ((tr.result_id = cr.result_id)
and (cr.name = 'baselist'))
-> WHERE (tr.project_name = 'deleteme') and (tr.config_name =
'gen_data') and (tr.session_name = 'd_05')
-> ORDER BY scope_name;
+-------------------+----------+--------------+
| scope_name
| baselist | session_name |
+-------------------+----------+--------------+
| default/add
|
add |
d_05 |
| default/add_b2b
|
add |
d_05 |
| default/add_sub
|
add |
d_05 |
| default/dev_brick |
dev |
d_05 |
| default/dev_jtag
|
dev |
d_05 |
| default/dev_pwrdn |
dev |
d_05 |
| default/dev_pwrup |
dev |
d_05 |
| default/mmu_flush |
mmu |
d_05 |
| default/mmu_int
|
mmu |
d_05 |
| default/mmu_pdx
|
mmu |
d_05 |
| default/mmu_r2r
|
mmu |
d_05 |
| default/mmu_reset |
mmu |
d_05 |
| default/sub1
|
sub |
d_05 |
| default/sub_b2b
|
sub |
d_05 |
+-------------------+----------+--------------+
14 rows in set (0.01 sec)
feature_vw
The feature_vw: database view provides details of a feature’s score associated with a
session.
Name
Type
Comment
project_name
String
Name of the project
config_name
String
Name of the config
session_name
string
Name of the session that this test result is a member
of
session_id
Int
Unique id per session, use to JOIN to
config_id
Int
Unique ID associated with config_name. Used for
JOINing
feature_name
String
Full hierarchical name of this feature
scope_id
Int
Internal Unique ID for this feature. Used only for
JOINing to other views
VC Execution Manager™ User Guide
V-2023.12-SP2
feature_attribute_vw
457
Chapter 12: Retrieving Information From the Database
feature_vw
Feedback
Name
Type
Comment
parent_id
Int
Unique ID of this feature’s parent (Null for nodes of
type ‘plan’). Used only for selecting on this same
table’s scope_id
plan_result_id
Int
Internal plan result ID, used only for JOINing to
scope_type
String
Type of the scope in the range {plan, feature,
measure}
feature_id
String
Unique stable ID for this feature. Used for tying to
external databases. This is one _id field that it is fine
for applications to use externally.
owner
String
Name of feature owner
description
String
Description of this feature
weight
String
Weight of how this feature affects its parent score.
Default is 1.0
score
Real
Overall aggregate score of Synopsys built-in
coverage metrics
line_score
Real
Line coverage score
line_covered
Int
Number of lines covered
line_coverable
Int
Number of lines that could be covered
line_goalstat
Boolean
1 if goal satisfied, 0 otherwise, NULL of no goal
cond_score
Real
Condition coverage score
cond_covered
Int
Number of conditions covered
cond_coverable
Int
Number of conditions that could be covered
cond_goalstat
Boolean
1 if goal satisfied, 0 otherwise, NULL of no goal
fsm_score
Real
FSM coverage score
fsm_covered
Int
Number of FSMs covered
fsm_coverable
Int
Number of FSMs that could be covered
fsm_goalstat
Bool
1 if goal satisfied, 0 otherwise, NULL of no goal
toggle_score
Real
toggle coverage score
VC Execution Manager™ User Guide
V-2023.12-SP2
feature_attribute_vw
458
Chapter 12: Retrieving Information From the Database
feature_vw
Feedback
Name
Type
Comment
toggle_covered
Int
Number of toggles covered
toggle_coverable
Int
Number of toggle that could be covered
toggle_goalstat
Bool
1 if goal satisfied, 0 otherwise, NULL of no goal
branch_score
Real
branch coverage score
branch_covered
Int
Number of branches covered
branch_coverable
Int
Number of branches that could be covered
branch_goalstat
Bool
1 if the goal is satisfied, 0 otherwise, NULL of no goal
assert_score
Real
assert coverage score
assert_covered
Int
Number of asserts covered
assert_coverable
Int
Number of asserts that could be covered
assert_goalstat
Bool
1 if goal satisfied, 0 otherwise, NULL of no goal
group_score
Real
Group coverage score
group_covered
Int
Number of group covered
group_coverable
Int
Number of group that could be covered
group_goalstat
Bool
1 if goal satisfied, 0 otherwise, NULL of no goal
test_percent_sc
ore
Real
Percentage of passing tests
test
Int
Number of test results
test_goalstat
Bool
1 of test_percent_score meets goal, 0 if not, NULL
if no goal
test_pass
Int
Number of passing tests
test_warn
Int
Number of warning tests
test_fail
Int
Number of failing tests
test_assert
Int
Number of asserting tests
test_unknown
Int
Number of tests with unknown results
VC Execution Manager™ User Guide
V-2023.12-SP2
459
Chapter 12: Retrieving Information From the Database
feature_attribute_vw
Feedback
Sample Query
This query produces the list of all features within a given session where line_score is
less than 80%.
mysql> SELECT project_name, config_name, feature_name, line_score
-> FROM feature_vw
-> WHERE (line_score < 0.8) and (project_name = 'test_prj') and
(config_name = 'cfg_test') and (session_name = 'session_1');
+--------------+-------------+--------------+-------------------+
| project_name | config_name | feature_name | line_score
|
+--------------+-------------+--------------+-------------------+
| test_prj
| cfg_test
| /P1
| 0.586206896551724 |
| test_prj
| cfg_test
| /P1/F1
| 0.5
|
| test_prj
| cfg_test
| /P1/F1/F1_1 | 0.478260869565217 |
+--------------+-------------+--------------+-------------------+
3 rows in set (0.07 sec)
feature_attribute_vw
The feature_attribute_vw: view provides attributes associated with features. This table
should be JOINed to feature_vw or feature_core_vw via scope_id, After per attribute,
to access the other attributes associated with features.
Note:
The feature_vw view described previously already joins in the attributes owner,
description, and weight.
Name
Type
Comment
config_id
Int
Used for JOINing to feature_vw
plan_result_id
Int
Reference to unique session/scope record. Used
only for JOINing to feature_vw
att_name
String
Name of this attribute
value
String
Value of this attribute
Sample Query
The feature_attribute_vw cannot be used independently and should be JOINed
to feature_vw. For example, this query joins the user-defined attribute bw_mode to
feature_vw:
mysql> SELECT fv.feature_name, fav.value AS bw_mode
-> FROM feature_vw fv
-> LEFT JOIN feature_attribute_vw fav
VC Execution Manager™ User Guide
V-2023.12-SP2
460
Chapter 12: Retrieving Information From the Database
metric_vw
Feedback
-> ON ((fv.plan_result_id = fav.plan_result_id) and (fv.config_id
= fav.config_id) and (fav.att_name = 'bw_mode'))
-> WHERE ((fav.value * 1) > 7) and (session_name = 'b_2') and
(length(fv.feature_name) < 40)
-> LIMIT 10;
+----------------------------------------+---------+
| feature_name
| bw_mode |
+----------------------------------------+---------+
| /giant/subber_top_5/giant_sub1/f1/f1.1 | 9
|
| /giant/subber_top_4/giant_sub1/f1/f1.1 | 9
|
| /giant/subber_top_1/giant_sub1/f1
| 9
|
| /giant/subber_top_7/giant_sub1/f1/f1.1 | 9
|
| /giant/subber_top_8/giant_sub1/f1/f1.1 | 9
|
| /giant/subber_top_9/giant_sub1/f1/f1.1 | 9
|
| /giant/subber_top/giant_sub1/f1/f1.1
| 9
|
| /giant/subber_top_4/giant_sub1/f1
| 9
|
| /giant/subber_top_8/giant_sub1/f1
| 9
|
| /giant/subber_top_3/giant_sub1/f1
| 9
|
+----------------------------------------+---------+
metric_vw
The metric_vw view is used to append HVP metrics to either feature_vw or
feature_core_vw.
Name
Type
Comment
config_id
Int
Used for JOINing to feature_vw
plan_result_id
Int
Reference to unique session/scope record. Used
only for JOINing to feature_vw
metric_name
String
Name of this metric
score
Double
Basic score for this metric. For percentage
metrics this is a value between 0.0 and 1.0. For
integer and enum metrics this value should be
cast to an integer value.
covered
Int
Number of objects covered. Only used for
metrics of type ratio
coverable
Int
Total number of objects. Only used for ratio
metrics. For ratio metrics, score = (covered /
coverable)
goalstat
Bool
True of goal has been satisfied, false otherwise
VC Execution Manager™ User Guide
V-2023.12-SP2
461
Chapter 12: Retrieving Information From the Database
feature_core_vw
Feedback
Sample Query
Similar to many of the auxiliary views, metric_vw is useful mainly JOINed to another view.
In this case, it is JOINed to feature_vw. In this example, it is joined to a user-defined
metric called grp_assert:
mysql> SELECT fv.feature_name, mv.score as grp_assert_score
-> FROM feature_vw fv
-> LEFT JOIN metric_vw mv ON ((fv.plan_result_id =
mv.plan_result_id) and (mv.metric_name = 'grp_assert'))
-> WHERE session_name = 'd_08';
+-------------------+------------------+
| feature_name
| grp_assert_score |
+-------------------+------------------+
| /june23/tests/g1
|
NULL |
| /june23/tests
|
NULL |
| /june23/tests/g2
|
NULL |
| /june23/f1/f1.1
|
0.5 |
| /june23/F2/F2.1
|
NULL |
| /june23/f1/failer |
NULL |
| /june23/code
|
NULL |
| /june23/F2
|
NULL |
| /june23/f1
|
0.5 |
| /june23
|
0.75 |
+-------------------+------------------+
10 rows in set (0.46 sec)
feature_core_vw
The feature_core_vw view displays the sub-set of feature_vw. The feature_vw is
built upon feature_core_vw, metric_vw, and feature_attribute_vw. You can use
feature_core_vw when you want the higher performance provided by not needing
to JOIN to metric and attributes that you do not need. Also useful if you encounter the
MySQL table join limitation. (See Limitation - JOINed Tables).
Name
Type
Comment
project_name
String
Name of the project
config_name
String
Name of the config
session_name
string
Name of the session that this test result is a member
of
session_id
Int
Unique id per session, use to JOIN to
config_id
Int
Unique ID associated with config_name. Used for
JOINing
VC Execution Manager™ User Guide
V-2023.12-SP2
feature_attribute_vw
462
Chapter 12: Retrieving Information From the Database
feature_core_vw
Feedback
Name
Type
Comment
feature_name
String
Full hierarchical name of this feature
scope_id
Int
Internal Unique ID for this feature. Used only for
JOINing to other views
parent_id
Int
Unique ID of this feature’s parent (Null for nodes of
type ‘plan’). Used only for selecting on this same
table’s scope_id
plan_result_id
int
Internal plan result ID, used only for JOINing to
scope_type
String
Type of the scope in the range {plan, feature,
measure}
feature_id
String
Unique stable ID for this feature. Used for tying to
external databases. This is one _id field that it is fine
for applications to use externally.
feature_attribute_vw
Sample Queries
Following are the queries that are JOINed with feature_vw, except with
feature_core_vw. These queries return the same results. However, since they do not rely
on any fields in feature_vw and not in the feature_core_vw view, they execute faster:
mysql> SELECT fv.feature_name, fav.value AS bw_mode
-> FROM feature_core_vw fv
-> LEFT JOIN feature_attribute_vw fav
-> ON ((fv.plan_result_id = fav.plan_result_id) and (fv.config_id
= fav.config_id) and (fav.att_name = 'bw_mode'))
-> WHERE ((fav.value * 1) > 7) and (session_name = 'b_2') and
(length(fv.feature_name) < 40)
-> LIMIT 10;
+----------------------------------------+---------+
| feature_name
| bw_mode |
+----------------------------------------+---------+
| /giant/subber_top_5/giant_sub1/f1/f1.1 |
9 |
| /giant/subber_top_4/giant_sub1/f1/f1.1 |
9 |
| /giant/subber_top_1/giant_sub1/f1
|
9 |
| /giant/subber_top_7/giant_sub1/f1/f1.1 |
9 |
| /giant/subber_top_8/giant_sub1/f1/f1.1 |
9 |
| /giant/subber_top_9/giant_sub1/f1/f1.1 |
9 |
| /giant/subber_top/giant_sub1/f1/f1.1
|
9 |
| /giant/subber_top_4/giant_sub1/f1
|
9 |
| /giant/subber_top_8/giant_sub1/f1
|
9 |
| /giant/subber_top_3/giant_sub1/f1
|
9 |
+----------------------------------------+---------+
10 rows in set (0.03 sec)
mysql> SELECT fv.feature_name, mv.score as grp_assert_score
VC Execution Manager™ User Guide
V-2023.12-SP2
463
Chapter 12: Retrieving Information From the Database
sess_vw
Feedback
-> FROM feature_core_vw fv
-> LEFT JOIN metric_vw mv ON ((fv.plan_result_id =
mv.plan_result_id) and (mv.metric_name = 'grp_assert'))
-> WHERE session_name = 'd_08';
+-------------------+------------------+
| feature_name
| grp_assert_score |
+-------------------+------------------+
| /june23/tests/g1
|
NULL |
| /june23/tests
|
NULL |
| /june23/tests/g2
|
NULL |
| /june23/f1/f1.1
|
0.5 |
| /june23/F2/F2.1
|
NULL |
| /june23/f1/failer |
NULL |
| /june23/code
|
NULL |
| /june23/F2
|
NULL |
| /june23/f1
|
0.5 |
| /june23
|
0.75 |
+-------------------+------------------+
10 rows in set (0.00 sec)
sess_vw
The sess_vw: view provides the details of the sessions.
Name
Type
Comment
session_id
Int
Unique ID for this test case result. Used only to JOIN to
project_name
String
Name of the project
config_name
String
Name of the config
session_name
String
Name of the session that this test result is a member of
user_name
String
UserID who ran this session
work_dir
String
Path to the directory where this test ran
log_dir
String
Where logs are stored
start_time
Datetime
When this session started
end_time
Datetime
When this session completed
npass
Int
Number of passing tests
nwarn
Int
Number of warning tests
nfail
Int
Number of failing tests
VC Execution Manager™ User Guide
V-2023.12-SP2
sess_att_vw
464
Chapter 12: Retrieving Information From the Database
sess_att_vw
Feedback
Name
Type
Comment
nassert
Int
Number of assert tests
nunknown
Int
Number of unknown tests
nrunning
Int
Number of running tests
ntests
Int
Total tests
valid
bool
True of this session not dropped. Normally, queries should
filter on valid=1 to omit dropped sessions.
Sample Query
The following query returns a list of the ten most recent sessions in project proj_A that
exceed 3 failures:
mysql> SELECT session_name, start_time, nfailed
-> FROM sess_vw
-> WHERE (project_name = 'proj_A') and (nfailed > 3)
-> ORDER BY start_time DESC
-> LIMIT 10;
+--------------+---------------------+---------+
| session_name | start_time
| nfailed |
+--------------+---------------------+---------+
| series_1_49 | 2015-07-02 21:38:08 |
4 |
| series_1_46 | 2015-07-02 21:36:06 |
4 |
| series_1_45 | 2015-07-02 21:35:25 |
4 |
| series_1_44 | 2015-07-02 21:34:45 |
4 |
| series_1_41 | 2015-07-02 21:32:44 |
4 |
| series_1_39 | 2015-07-02 21:31:24 |
4 |
| series_1_36 | 2015-07-02 21:29:22 |
4 |
| series_1_34 | 2015-07-02 21:28:02 |
4 |
| series_1_31 | 2015-07-02 21:26:01 |
4 |
| series_1_30 | 2015-07-02 21:25:21 |
4 |
+--------------+---------------------+---------+
10 rows in set (0.00 sec)
sess_att_vw
The sess_att_vw: view displays the attributes associated with sessions. This table
should be JOINed to sess_vw via session_id, after per attribute, to access the other
attributes associated with sessions.
Name
VC Execution Manager™ User Guide
V-2023.12-SP2
Type
Comment
465
Feedback
Chapter 12: Retrieving Information From the Database
Usage Example
session_id
Int
Reference to unique session record. Used only
for JOINing to sess_vw
name
String
Name of this attribute
value
String
Value of this attribute
Sample Query
The sess_att_vw view is useful when JOINed to sess_vw. This query generates a list of
sessions in Proj_A that have less than 11 passes and were run after 9:30pm:
mysql> SELECT s.session_name, s.npass, s.nfailed, sa.value as
design_version
-> FROM sess_vw s
-> LEFT JOIN sess_att_vw sa ON (s.session_id = sa.session_id)
and (sa.name = 'design_version')
-> WHERE (s.project_name = 'Proj_A') and (s.npass < 11) and
(s.start_time > '2015-07-02 21:30:00');
+--------------+-------+---------+----------------+
| session_name | npass | nfailed | design_version |
+--------------+-------+---------+----------------+
| series_1_39 | 10
| 4
|
R-1.23.45 |
| series_1_41 | 10
| 4
|
R-1.23.45 |
| series_1_44 | 10
| 4
|
R-1.23.45 |
| series_1_45 | 10
| 4
|
R-1.23.45 |
| series_1_46 | 10
| 4
|
R-1.23.45 |
| series_1_49 | 10
| 4
|
R-1.23.45 |
+--------------+-------+---------+----------------+
6 rows in set (0.00 sec)
Usage Example
Both core view APIs consist of a base view and a variable view and they are normally
used in conjunction.
Data type
Base view
Variable view
Test results
testcase_result_vw
custom_result_vw
Annotated Verification plan
feature_vw
feature_attribute_vw
VC Execution Manager™ User Guide
V-2023.12-SP2
466
Chapter 12: Retrieving Information From the Database
Usage Example
Feedback
The variable table is created because of the following reasons:
• Not all projects collect the same type of data. One project might collect a
cycles_per_second result and another project might collect a mpeg_quality attribute.
Not only is it difficult to collect the set union of all possible project data, requiring all
projects to use a DB table with the set union of all data values would be inefficient.
• This provides you the ability to freely extend the types of data gathered for a project.
There is no need to request an enhancement to ExecMan to collect a new type of data
and the extensions can be done quickly and easily.
Basic Queries
Views can be used in SQL SELECT statements similar to any other table in the database.
You can use WHERE expressions to filter the data (you probably always use a WHERE
clause to limit the results to a specific project and/or session). You might also use GROUP
BY and ORDER BY to collate and sort data.
Consider the following unqualified query, such as:
SELECT project_name, config_name, scope_name, start_time, status
FROM testcase_result_vw
This query displays the entire contents of the database’s test results for every project,
every configuration, every session. Normally, you want to filter / group / or otherwise trim
the data returned by testcase_result_vew.
For example, the following query produces the test pass/fail results and runtime for a
single session:
SELECT scope_name, status_name, run_time
FROM testcase_result_vw t WHERE session_name =
'session_usera_20150113_125515'
ORDER BY scope_name;
The result is as follows:
scope_name
status_name
run_time
b1/heidi_1000072176
success
1
b1/heidi_1000150304
fatal
1
b1/heidi_1000539733
success
0
b1/heidi_1000579754
success
1
b1/heidi_1000983015
success
0
VC Execution Manager™ User Guide
V-2023.12-SP2
467
Feedback
Chapter 12: Retrieving Information From the Database
Usage Example
b1/heidi_1001894920
deadlock
1
b1/heidi_1002232991
video_glitch
0
b1/heidi_100260569
success
1
...
...
...
If you want to see only failing results, you can filter it as follows:
SELECT scope_name, status_name, run_time
FROM testcase_result_vw t WHERE session_name =
'session_usera_20150113_125515'
and status = 'fail'
ORDER BY scope_name;
The following table shows the failed-only test results:
scope_name
status_name
run_time
b1/heidi_1000150304
fatal
1
b1/heidi_1001894920
deadlock
1
b1/heidi_1003194715
encrypt_leak
0
b1/heidi_1003535230
deadlock
0
b1/heidi_1003905873
encrypt_leak
1
b1/heidi_100390662
encrypt_leak
0
b1/heidi_1004110130
fatal
1
b1/heidi_1006854155
deadlock
1
...
...
...
Following is an example to get the test result counts for the same session:
SELECT status_name, count(*) as count
FROM testcase_result_vw t WHERE session_name =
'session_usera_20150113_125515'
GROUP BY status_name;
The result is as follows:
status_name
count
VC Execution Manager™ User Guide
V-2023.12-SP2
468
Chapter 12: Retrieving Information From the Database
Usage Example
deadlock
1999
encrypt_leak
2027
fatal
1878
pass
1
queue_jam
4071
success
7943
video_glitch
2082
Feedback
The previous query organizes the test results by the user-defined error code. If you want
to see the results in a basic pass/fail form, you can change the query to group by status
instead of status_name as follows:
SELECT status, count(*) as count
FROM testcase_result_vw t WHERE session_name =
'session_usera_20150113_125515'
GROUP BY status;
The result is as follows:
status
count
fail
5904
pass
7944
warn
6153
Querying Extended Project-Specific Data
As previously mentioned, you can add any amount of project specific information to the
ExecMan database via the eman testapi post command with the –c option, using the
following command:
% eman testapi post -t "my_build/$test" -s $stat -save $test.log -S NOW
-c "cps:42" -c "qual:9.09"
VC Execution Manager™ User Guide
V-2023.12-SP2
469
Feedback
Chapter 12: Retrieving Information From the Database
Usage Example
This causes two values to be stored in the database for $test: cps and qual. If you
want to generate a result set including cps, use the SQL JOIN construct to join the
custom_result_vw to the base table as follows:
SELECT scope_name, status, cr_cps.value AS cps
FROM testcase_result_vw t
LEFT JOIN custom_result_vw cr_cps ON ((cr_cps.result_id = t.result_id)
and (cr_cps.name = 'cps'))
WHERE session_name = 'mc_20000'
The result is as follows:
scope_name
status
cps
b1/heidi_1542907012
fail
42
b1/heidi_420664962
fail
42
b1/heidi_870242027
fail
42
b1/heidi_1351146616
fail
42
b1/heidi_3364136285
fail
42
b1/heidi_2220753925
fail
42
b1/heidi_1252800628
fail
42
...
...
...
You can extend this technique to add any number of project-specific results, JOIN the
custom_result_vw after per result. Following is the same query with qual added:
SELECT scope_name, status, cr_cps.value AS cps, cr_qual.value as qual
FROM (testcase_result_vw t
LEFT JOIN custom_result_vw cr_cps ON ((cr_cps.result_id = t.result_id)
and (cr_cps.name = 'cps')))
LEFT JOIN custom_result_vw cr_qual ON ((cr_qual.result_id =
t.result_id) and (cr_qual.name = 'qual'))
WHERE session_name = 'mc_20000'
A new column appears for qual, as shown in the following table:
scope_name
status
cps
qual
b1/heidi_1542907012
fail
42
9.09
b1/heidi_420664962
fail
42
9.09
VC Execution Manager™ User Guide
V-2023.12-SP2
470
Feedback
Chapter 12: Retrieving Information From the Database
Usage Example
scope_name
status
cps
qual
b1/heidi_870242027
fail
42
9.09
b1/heidi_1351146616
fail
42
9.09
b1/heidi_3364136285
fail
42
9.09
b1/heidi_2220753925
fail
42
9.09
b1/heidi_1252800628
fail
42
9.09
...
...
...
...
You can form these JOIN queries manually or write a script that takes a list of projectspecific result names and dynamically generates the JOIN query at runtime.
PERL Example
The following is an example of PERL program that accesses data via the DB API. It shows
how to attach to the eman DB and then query its data via the API as described in this
section. This example application reads the annotated verification data attached to an
eman session and then reports that data in an intended hierarchical report.
#!/usr/bin/perl
# Reads a session's annotated plan data and reconstructs the hierarchy
# as an indented list
#
# Usage: perl -w feat_hier_reporter.pl <session name>
#
use strict;
use warnings;
use DBI;
# MySQL database configurations
my $dsn = "dbi:mysql:emandb:vgitwm"; # Host is vgitwm
my $username = "emanread"; my $password = 'emanread';
DB
# installed eman
# get user's input links
my $sessionName = $ARGV[0];
if (! length($sessionName)) {
print "Error: you must provide a session name .$sessionName.\n";
print "Usage: perl -w feat_hier_reporter.pl <session name> \n";
exit 1;
VC Execution Manager™ User Guide
V-2023.12-SP2
471
Chapter 12: Retrieving Information From the Database
Usage Example
Feedback
}
print "Reporting feature hierarchy for $sessionName\n";
# connect to MySQL database
my %attr = (PrintError=>0,RaiseError=>1 );
my $dbh = DBI->connect($dsn,$username,$password,\%attr);
# look up proj and config this assumes that session names are globally
unique. If not
# then this script needs to be modified to require that the user provide
project and config
# too on the command line.
my $sidSql = "SELECT project_name, config_name FROM session_vw WHERE
session_name = ?";
my $sidStmt = $dbh->prepare($sidSql);
$sidStmt->execute($sessionName);
my @sidRow = $sidStmt->fetchrow_array();
my ($projectName, $configName) = @sidRow;
$sidStmt->finish();
if (! defined $projectName) {
print "Error: Could not find session $sessionName, exiting\n";
exit 1;
}
# get root scope. it is the one where parentID IS NULL
my $frSql = "SELECT scope_id FROM feature_vw WHERE (project_name = ?) and
(config_name = ?) and (session_name = ?) and (parent_id IS NULL)";
my $frStmt = $dbh->prepare($frSql);
$frStmt->execute($projectName, $configName, $sessionName);
my @frRow = $frStmt->fetchrow_array();
my ($rootScopeID) = @frRow;
$frStmt->finish();
if (! defined $rootScopeID) {
print "Error: Could not find root scope for plan for ($projectName,
$configName, $sessionName), exiting\n";
exit 1;
}
# header
my $outStr = sprintf "%30s %7s %7s %7s %4s\n", 'Feature name', 'Line',
'Group', 'Test', 'Fail';
print "\n\n" . $outStr;
VC Execution Manager™ User Guide
V-2023.12-SP2
472
Chapter 12: Retrieving Information From the Database
Usage Example
Feedback
$outStr = sprintf "%30s %7s %7s %7s %4s\n",
'------------------------------', '-------', '-------', '-------',
'----';
print $outStr;
# report tree recursively
reportTree($rootScopeID, '');
exit 0;
# --------------------# END OF MAIN
# --------------------# reportTree - Reports all feature nodes beneath $scopeID. Since this
# is a hierarchical report, $indentStr is uset to prefix each line in the
# report.
# This subroutine also relies on the following global variables:
#
($projectName, $configName, $sessionName)
sub reportTree {
my ($scopeID, $indentStr) = @_;
# get the relevant data for $scopeID. In this case we are just
reporting feature name, line score,
# group score, test score, and tests failing
my $frSql = "SELECT feature_name, line_score * 100.0, group_score
* 100.0, test_percent_score * 100.0, test_fail FROM feature_vw WHERE
(project_name = ?) and (config_name = ?) and (session_name = ?) and
(scope_id = ?)";
my $frStmt = $dbh->prepare($frSql);
$frStmt->execute($projectName, $configName, $sessionName, $scopeID);
my @frRow = $frStmt->fetchrow_array();
my ($featureName, $lineScore, $groupScore, $testScore, $testFail) =
@frRow;
$frStmt->finish();
if (! defined $featureName) {
print "Error: could not retrieve feature_vw row for (proj,
config, sess, scopeID) ($projectName, $configName, $sessionName,
$scopeID)\n";
exit 2;
}
# format a feature string that is intented, but a fixed width so
score columns align
my $firstStr = $indentStr . $featureName;
# pad string on the right to be fixed width of 30 chars
# my $desiredLength = 30;
VC Execution Manager™ User Guide
V-2023.12-SP2
473
Feedback
Chapter 12: Retrieving Information From the Database
Usage Example
# my $padLen = $desiredLength - length($firstStr);
my $outStr = sprintf "%-30s %6.2f%% %6.2f%% %6.2f%% %4d\n",
$firstStr, $lineScore, $groupScore, $testScore, $testFail;
print $outStr;
# now find children and recursively descend
my $chSql = "SELECT scope_id FROM feature_vw WHERE (project_name = ?)
and (config_name = ?) and (session_name = ?) and (parent_id = ?)";
my $chStmt = $dbh->prepare($chSql);
$chStmt->execute($projectName, $configName, $sessionName, $scopeID);
while (my @chRow = $chStmt->fetchrow_array()) {
my ($childScopeID) = @chRow;
if (defined $childScopeID) {
reportTree($childScopeID, $indentStr . '
}
} # while @chRow
} #
');
$chStmt->finish();
reportTree
Creating Custom Database Views
You can create custom views based on the building blocks provided in the eman DB view
API. By installing your database views, you can publish site-specific interfaces to your
eman database that can be used by other members of your team.
This section describes a few custom views that are available in $EMAN_HOME/examples/
db_api. To install these views, you can execute the following command from your shell:
$EMAN_HOME/amd64/mysql/bin/mysql -h $yourHostName -uroot
-p$yourRootPassword -D emandb <
$EMAN_HOME/examples/db_api/customer_api_example.sql
session_vw
The session_vw view is similar to sess_vw, except that any new user-defined session
attributes are added. It is defined as:
DROP VIEW IF EXISTS session_vw;
CREATE VIEW session_vw AS
SELECT sv.project_name, sv.config_name,
sv.user_name, sat_lsf_job_name.value AS lsf_job_name,
sat_design_version.value AS design_version, sat_testlist.value AS
testlist,
sat_owner.value AS owner, sv.start_time, sv.end_time,
sv.session_name,
VC Execution Manager™ User Guide
V-2023.12-SP2
474
Chapter 12: Retrieving Information From the Database
Usage Example
Feedback
((sv.npass / sv.ntests) * 100.0) AS pass_rate,
sv.npass AS pass_test, sv.nwarn as warn_test, sv.nfailed as fail_test,
sv.nunknown as unknown_test, sv.ntests AS total_test,
'placeholder' AS vplan
FROM
((((sess_vw sv
LEFT JOIN sess_att_vw sat_lsf_job_name ON ((sat_lsf_job_name.session_id
= sv.session_id) and (sat_lsf_job_name.name = 'lsf_job_name')))
LEFT JOIN sess_att_vw sat_design_version ON
((sat_design_version.session_id = sv.session_id) and
(sat_design_version.name = 'design_version')))
LEFT JOIN sess_att_vw sat_testlist ON ((sat_testlist.session_id =
sv.session_id) and (sat_testlist.name = 'testlist')))
LEFT JOIN sess_att_vw sat_owner ON ((sat_owner.session_id =
sv.session_id) and (sat_owner.name = 'owner')))
This view contains all of the fields in sess_vw and then adds the following fields:
• lsf_job_name
• design_version
• testlist
• owner
It also renames some of the sess_vw fields via the SQL AS operator.
The following table provides the columns enabled by session_vw:
Name
Type
Comment
project_name
String
Name of the project
config_name
String
Name of the config
session_name
String
Name of the session that this test result is a member of
start_time
Datetime
When this session started
end_time
Datetime
When this session completed
pass_test
Int
Number of passing tests
warn_test
Int
Number of warning tests
fail_test
Int
Number of failing tests
unknown_test
Int
Number of unknown tests
pass_rate
real
Percentage of tests that have a status of “pass”
VC Execution Manager™ User Guide
V-2023.12-SP2
475
Chapter 12: Retrieving Information From the Database
Usage Example
lsf_job_name
string
Identifier of LSF job
user_name
String
User name
design_version
String
Version of design being regressed
owner
String
Owner of this test list
testlist
String
Name of this test list
total_test
Int
Total tests
vplan
String
Pointer to verification plan data
Feedback
testcase_vw
The testcase_vw view is an enhancement of the testcase_result_vw view with three
additional custom results: baselist, owner, and error_message.
DROP VIEW IF EXISTS testcase_vw;
CREATE VIEW testcase_vw AS
SELECT trv.project_name, trv.config_name, trv.session_name,
trv.scope_name AS testname, trv.status,
trv.status_name, cv_first_error.value AS error_message,
cv_baselist.value AS baselist, cv_owner.value AS owner,
trv.random_seed AS seed, trv.start_time, trv.end_time, trv.run_time,
trv.path
FROM ((testcase_result_vw trv
LEFT JOIN custom_result_vw cv_first_error ON ((trv.result_id =
cv_first_error.result_id) and (cv_first_error.name = 'first_error')))
LEFT JOIN custom_result_vw cv_baselist ON ((trv.result_id =
cv_baselist.result_id) and (cv_baselist.name = 'baselist')))
LEFT JOIN custom_result_vw cv_owner ON ((trv.result_id =
cv_owner.result_id) and (cv_owner.name = 'owner'));
Note that this view filters some of the default fields in testcase_vw. The following table
provides the description of the columns available in testcase_vw.
Name
Type
Comment
project_name
String
Name of the project
config_name
String
Name of the config
testname
string
Full hierarchical name of the test
session_name
String
Name of the session that this test result is a member of
error_message
String
First error message encountered
VC Execution Manager™ User Guide
V-2023.12-SP2
476
Chapter 12: Retrieving Information From the Database
Limitation - JOINed Tables
Feedback
Name
Type
Comment
baselist
String
Base test list name
owner
String
Owner of this test list
path
String
Path to the directory where this test ran
start_time
Datetime
When this test started
end_time
Datetime
When this test completed
run_time
Int
Wall clock runtime for this test in seconds
seed
Int
Random seed for this test
status_name
String
Test result in terms of user-defined status code
status
String
Test result in standard {pass, warn, fail, unknown} domain
Limitation - JOINed Tables
The database servers generally have a limitation on the number of base tables that are
JOINed together. For example, MySQL has a limit of 61 tables.
As these views are already comprised of JOINed tables, it is possible to hit this limit by
joining views to each other. For example, feature_vw is comprised of about 45 table joins.
To overcome this limitation, you can organize your application to split a single query
into multiple queries. Alternatively, you can build views that are more precise for your
application. For example, most applications do not need all 50 fields provided by
feature_vw, so instead you can construct a custom view based on feature_core_vw
(which is only 6 tables JOINed) with enough instances of feature_attribute_vw and
metric_vw to get all the fields that you need.
VC Execution Manager™ User Guide
V-2023.12-SP2
477
Chapter 12: Retrieving Information From the Database
Implementation Example
Feedback
Implementation Example
Figure 66 illustrates how the views are layered on top of base tables and can be used to
prevent the application from needing to understand the base table organization. Following
is an example of how testcase_result_vw is implemented from joining the base tables:
Figure 66
Example
VC Execution Manager™ User Guide
V-2023.12-SP2
478
Feedback
13
Integration With VC Formal
This chapter discusses how to integrate VC Formal with VC Execution Manager. This
chapter also explains various options that are required for a seamless integration of VC
Formal with ExecMan.
This chapter consists of the following sections:
• VC Formal Runs as Builds
• Rerun Options for VC Formal Checks
• Property Types for VC Formal
• Build Status for VC Formal Runs
• Merge Coverage for VC Formal
• UNR Flow With ExecMan VCF Plugin
VC Formal Runs as Builds
To integrate VC Formal with ExecMan, define a VC Formal run as a build in your EMC file.
Run this EMC file with the eman command as follows:
eman eman -regr_config <users’_emc_file>.emc -local_host
ExecMan provides default configurations in the ExecMan VCF plugin that contains
vcf.emc and other necessary files to integrate VC Formal. You may extend from the
eman_base_vcf build defined in the vcf.emc file to include default configurations. To
include the ExecMan VCF plugin, specify the plugin name explicitly in the plugins block in
your EMC file. Also, define a variable named, user_script in your vcf build definition for
plugin to launch your formal check run script. This variable is referenced in VCF plugin’s
wrapper tcl as EMAN_VAR_user_script.
Note:
Properties are automatically registered in the ExecMan database as tests under
the build.
Example 3 and Example 4 show a sample of users' EMC file and vcf.emc respectively.
VC Execution Manager™ User Guide
V-2023.12-SP2
479
Chapter 13: Integration With VC Formal
VC Formal Runs as Builds
Example 3
Feedback
Users ' EMC file
config_name: formal
plugins:
- vcf
variables:
- current_dir: $PWD
builds:
- name: VCF_FPV
variables:
-user_script: $current_dir/traffic.tcl
-vcf_args: XXX is passed to the vcs command line
extends: eman_base_vcf
Note:
Note that plugins and user_script are mandatory options. Any variable
added under user_script is available in users’ script via the environment
variable, EMAN_VAR_<var_name>.
Example 4
vcf.emc
env:
- EMAN_EXPORT_ENV: 1
- EMAN_DONT_CHECK_SIMV: 1
builds:
- options:
status_priority: log_file
- name: eman_base_vcf
run_cmd: vcf -f ${EMAN_HOME}/plugins/vcf/master_vcf.tcl -batch
-output_log_file $$EMAN_LOG_FILE -session
$${EMAN_SESSION_NAME}_$${EMAN_BUILD_NAME}
$$EMAN_VAR_vcf_args
custom_cmd: ${EMAN_HOME}/plugins/vcf/parse_property_status.sh
variables:
- vcf_args: ' '
log_file: eman_vcf.log
dynamic_test: yes
abstract: yes
error_patterns:
- /${EMAN_HOME}/plugins/vcf/vcf.eme
interactive_debug_actions:
- vcf_restore: vcf -verdi -restore -session
$${EMAN_SESSION_NAME}_$${EMAN_BUILD_NAME}
columns_layout:
- name: vcf
table: builds,tests
columns:
name,status,ntests,npass,nfailed,nwarn,start_time,log_file,test_trend,hi
story,cmdline,comment,action
VC Execution Manager™ User Guide
V-2023.12-SP2
480
Feedback
Chapter 13: Integration With VC Formal
Rerun Options for VC Formal Checks
Note:
Note that EMAN_EXPORT_ENV exports all global environment defined in a current
session. Also, it exports all local variables defined in test/build in the current test
environment as EMAN_VAR_<variable_name>.
Rerun Options for VC Formal Checks
As a VC Formal run is defined as a build, no compilation-related rerun options are
available for the VC Formal run.
Here are the rerun options available for VC Formal checks:
For details on these rerun options, see Rerunning Regressions.
Property Types for VC Formal
ExecMan provides property types for VC Formal in the ExecMan database. These
property types are listed in the table below.
Property Type
Status Type
Status Value
EMPTY
Fail
-
NOT_RUN
Warn
0
VC Execution Manager™ User Guide
V-2023.12-SP2
481
Feedback
Chapter 13: Integration With VC Formal
Build Status for VC Formal Runs
Property Type
Status Type
Status Value
CHECKING
Warn
1
INCONCLUSIVE
Warn
2
PROVEN
Pass
3
FALSIFIED
Fail
4
COVERED
Pass
5
UNCOVERED
Fail
6
VACUOUS
Fail
7
NONACTIVATED
Fail
11
DETECTED
Pass
12
NONDETECTED
Fail
13
NONPROPAGATED
Fail
14
NONFORMALCORE
Fail
15
COND-PROVEN
Fail
16
COND-FALSIFIED
Fail
17
CONFLICT
Fail
18
PREPARING
Warn
99
Build Status for VC Formal Runs
The build status of VC Formal Runs depends on the status of its properties. If the status
of VC Formal property is pass, then the status of VC Formal build is Pass, otherwise, its
status is Fail.
If there are multiple VC Formal runs in one session, ExecMan aggregates their results and
shows them under the Summary column on the Session page, as shown below:
VC Execution Manager™ User Guide
V-2023.12-SP2
482
Chapter 13: Integration With VC Formal
Merge Coverage for VC Formal
Feedback
Merge Coverage for VC Formal
A VC Formal run can have its own VDB and can be merged with other VDBs. By default,
merge coverage is disabled. To enable coverage, use $EMAN_CM_DIR as the VDB name in
their TCL script so that ExecMan can automatically find it and merge it with other VDBs if
-merge_dir is used. Here are the commands:
set vdb_name $::env(EMAN_CM_DIR)
save_covdb -name $vdb_name -cov assert+cover
If ExecMan finds a VC Formal build VDB, it adds the VDB to the merge list. If it does not
find a build VDB, it skips merging for the current build.
If the status of a VC Formal build is warn or pass, ExecMan merges the build. A VC
Formal build is marked as warn, if any property check fails.
UNR Flow With ExecMan VCF Plugin
Both VCS and VC Formal are defined as a ExecMan build. Once VCS merge is
completed, ExecMan VCF runs VC formal FCA check on VCS merge results and
generates an exclusion file or a plan file. The generated exclusion file or plan file is saved
to an ExecMan session depot using the eman data save command in the custom_cmd
build. To save merge results into a session depot and to load coverage and apply
exclusion/plan file, use -save_merged_vdb.
The following figure shows the UNR flow with ExecMan VCF plugin:
VC Execution Manager™ User Guide
V-2023.12-SP2
483
Chapter 13: Integration With VC Formal
UNR Flow With ExecMan VCF Plugin
Feedback
Other formal checks tasks, such as FRV/FPV, run in parallel. To see how to configure
FCA/FPV, see the example at the following location:
$EMAN_HOME/examples/vc_formal/vcs_fca_fpv
VC Execution Manager™ User Guide
V-2023.12-SP2
484
Feedback
14
Integration With Redmine
This chapter discusses how to integrate VC Execution Manager with Redmine. This
chapter also explains various options that are required for a seamless integration of
ExecMan with Redmine.
This chapter consists of the following sections:
• Installing the Redmine Template
• Configuring the Redmine Server
• Creating New Tickets
• GUI Updates
Installing the Redmine Template
The Redmine template is available as part of ExecMan build. It is available at the following
location:
$EMAN_HOME/examples/ui_customization/redmine/redmine.emd
To install this Redmine template to your database, use the following command:
$ eman admin register_custom_template -t
$EMAN_HOME/examples/ui_customization/redmine/redmine.emd -a
where, -a indicates that the template is applied to all projects. To apply the template to
only one project, use -a -p <project_name>.
Note:
If the template is applied only to one project, the Redmine Api_Key and
Redmine project columns are not displayed in the Projects table and you
cannot specify them at the project level. However, these can be specified at the
configuration level. For details on these columns, see the Projects Page.
Alternatively, you can include this Redmine template in another template that also
specifies redmine_options, using the following command:
$ eman admin register_custom_template -t other_template.emd -a
VC Execution Manager™ User Guide
V-2023.12-SP2
485
Chapter 14: Integration With Redmine
Configuring the Redmine Server
Feedback
where, the content of other_template.emd is as follows:
- name: other
- include:
- $EMAN_HOME/examples/ui_customization/redmine/redmine.emd
- scripts:
- my_redmine_options.js
...
...
...
Configuring the Redmine Server
To configure the Redmine server, ExecMan provides the following three ways:
• The redmine.emd Template
• The synopsys_eman.setup File
• The eman admin add_redmine Command
The redmine.emd Template
The recommended way to configure the redmine server and options is to include the
redmine.emd template provided by ExecMan along with a .js file specifying the options.
The options specified in the .js file take precedence over the options in the setup file.
Here is an example of the redmine.emd template:
# Give it a name; must be unique for Eman database.
- name: My_Redmine
# Include the redmine template.
- include:
- ${EMAN_HOME}/examples/ui_customization/redmine/redmine.emd
# Include addition script customizing the redmine options.
- scripts:
- my_redmine_options.js
Here is an example of the my_redmine_options.js template:
_redmine_options = {
'url': 'http://vg-redmine-vm:8080',
'api_key': 'a7f1a957195201f4811dad64fddb3c4200f299de',
'project': 'Test 1234',
'status_list': {
'NEW': {'colors': ['lightgrey', 'black'], 'open_indicator': 10,
'display_name': 'NEW', 'copy': true},
VC Execution Manager™ User Guide
V-2023.12-SP2
486
Chapter 14: Integration With Redmine
Creating New Tickets
Feedback
'IN PROGRESS': {'colors': ['yellow', 'black'], 'open_indicator': 5,
'display_name': 'IN-PROGR.','copy': true},
'RESOLVED': {'colors': ['green', 'white'], 'open_indicator': 20,
'display_name': 'RESOLV.','copy': false},
'FEEDBACK': {'colors': ['orange', 'black'], 'open_indicator': 0,
'display_name': 'FEEDBCK','copy': true},
'CLOSED': {'colors': ['darkgreen', 'white'], 'open_indicator': 25,
'display_name': 'CLOSED', 'copy': false},
'REJECTED': {'colors': ['lightblue', 'black'], 'open_indicator': 15,
'display_name': 'REJECT', 'copy': false}
}
};
The synopsys_eman.setup File
The Redmine server can be configured in the bug_tracking section of the
synopsys_eman.setup file. Here is an example of the synopsys_eman.setup file:
bug_tracking:
- redmine: redmine1
url: http://vg-redmine-vm:8080
api_key: a7f1a957195201f4811dad64fddb3c4200f299de
version: 2.4
redmine_projects: mtk_demo
If more than one project is specified in redmine_projects, only the first project is
considered.
The eman admin add_redmine command
To configure the Redmine server, use the following command:
eman admin add_redmine [-h] [-n NAME] [-a API_KEY]
Optional arguments:
-h, --help: Shows this help message and exit
-n NAME, -name NAME: Redmine server
-a API_KEY, -api_key API_KEY: API access key
Creating New Tickets
You might create a new ticket for selected results (builds, groups, and tests). A new ticket
id is allotted to the ticket and is saved in the database. In the Results page, a new button
VC Execution Manager™ User Guide
V-2023.12-SP2
487
Chapter 14: Integration With Redmine
GUI Updates
Feedback
New is added to create a new ticket. For details, see Results Page. Alternatively, use the
following:
- buttons:
- redmine_create_ticket:
- text: New
- style:
- icon-img: redmine_icon.png
- icon-size: 15px
- tooltip: Redmine - Create New Issue
- tables:
- builds
- groups
- tests
- function: redmine_button_new_ticket
- inputs:
- name
- session
- scope
- redmine_ticket_ids
- redmine_tickets_status
GUI Updates
When ExecMan is integrated with the Redmine server, a new column or a button is added
to the following pages:
• Results Page
• Projects Page
• Configs Page
• Sessions Page
Results Page
In the Results page (builds, groups, tests), the following four new buttons and two new
columns are added:
• Buttons
◦ New: Creates new tickets for selected results (builds, groups, tests).
◦ Add Link: Links selected results with a ticket to specify.
◦ Remove Link: Removes links of selected results.
◦ Sync: Updates tickets status for all tickets in this session.
VC Execution Manager™ User Guide
V-2023.12-SP2
488
Chapter 14: Integration With Redmine
GUI Updates
Feedback
• Columns
◦ Redmine Tickets: Displays all tickets and their status
◦ Redmine Status: Shows only one of the status.
The following figure shows these buttons and columns in the Results table:
Note:
You can filter the Results table either by ticket ID or ticket status using the
Show Filter Fields check box.
Projects Page
In the Projects page, the following two new columns are added:
• Redmine Api_Key shows currently used key. Click the value of this column to specify
other keys for a project.
• Redmine Project shows currently used project.Click the value of this column to specify
other projects.
The following figure shows these columns in the Projects page:
VC Execution Manager™ User Guide
V-2023.12-SP2
489
Chapter 14: Integration With Redmine
GUI Updates
Feedback
Configs Page
In the Configs page, the following two new columns are added:
• Redmine Api_Key shows currently used key. Click the value of this column to specify
other keys for a project.
• Redmine Project shows currently used project.Click the value of this column to specify
other projects. The following figure shows the Configs page:
Sessions Page
In the Sessions page, a new column, Redmine Sync, is added to show the last sync
performed for this session. Also, the following buttons are added:
• Sync updates ticket status for all sessions of a configuration.
• Copy copies tickets from one session to another.
The following figure shows the Sessions page:
VC Execution Manager™ User Guide
V-2023.12-SP2
490
Feedback
15
Integration With ICO
Intelligent Coverage Optimization (ICO) enhances constraint random verification efficiency
by improving stimuli quality using constraint biasing. ICO enables you to efficiently
diversify constraint random stimuli generation while learning distribution history and
machine learning, and thereby, helps to achieve faster functional coverage closure.
ExecMan provides a simple user interface to enable constraint biasing per build or set of
builds on regression level.
This chapter discusses how to integrate VC Execution Manager with Intelligent Coverage
Optimization (ICO). This chapter consists of the following sections:
• Enabling and Disabling Constraint Biasing
• Passing ICO Options to Simv
• Setting Batch Size
• Storing ICO Information
• Rerunning Regression Option for ICO
• Viewing ICO Report
Enabling and Disabling Constraint Biasing
To enable constraint biasing in ExecMan, add the ico_options variable in the .emc file.
The ico_options field can be set in the following ways:
• Builds block: Set for all builds in the Builds block.
• Per build: Under specific Builds block.
Note:
The settings specified for the ico_options field in the Builds block override
the settings specified per build.
To disable constraint biasing in ExecMan, add the -disable switch to the ico_options
variable in the .emc file. Alternatively, to disable constraint biasing in ExecMan, do not
provide the ico_options variable in the .emc file.
VC Execution Manager™ User Guide
V-2023.12-SP2
491
Chapter 15: Integration With ICO
Passing ICO Options to Simv
Feedback
Consider the following example that shows the ico_options field in the Buildsblock:
builds:
- options:
ico_options: +ntb_solver_bias_mode = 1033
- name: bld1
run_cmd: ./comp.csh
simv_location: ./simv
run_dir: $current_dir/rundir
- name: bld2
run_cmd: ./comp2.csh
simv_location: ./simv2
run_dir: $current_dir/rundir2
ico_options: -disable
In the example, the tests that use the build bld1, are executed with the biasing option
(+ntb_solver_bias_mode=1033) set in the builds block. On the other hand, the tests that
use the build bld2, are executed without the biasing option set in the builds block, as the
build bld2 overrides the builds block options with -disable.
Passing ICO Options to Simv
When tests are executed with run_cmd in the .emc file, add the $$EMAN_ICO_OPTS runtime
variable to the simv command line.
Setting Batch Size
Batch size controls the number of ICO records to accumulate before they are merged, and
can be used to lower the merging rate. Note that only after merging a record, it is used to
constraint the next test running after it.
To set the batch size for ICO records, use the following environment variable:
setenv EMAN_ICO_BATCH_SIZE <number_of_records>
The default value of this environment variable is 1.
Storing ICO Information
ExecMan stores information related to constraint biasing in the spool session directory.
Deletion of this information follows the database clean up policy.
VC Execution Manager™ User Guide
V-2023.12-SP2
492
Chapter 15: Integration With ICO
Rerunning Regression Option for ICO
Feedback
Rerunning Regression Option for ICO
When constraint biasing is enabled, the Rerun/Debug Rerun dialog box displays the
Reuse Constraint Biasing checkbox. To select the Reuse Constraint Biasing checkbox,
perform the following steps:
1. In theRerun/Debug Rerundialog box, select Rerun typeas Rerun With Debug.
2. In Rerun options, select Reuse Constraint Biasing and click Yes, as shown in the
following figure:
When the Reuse Constraint Biasing checkbox is selected, ExecMan runs biasing
using results from the original session. This checkbox is selected by default. When this
checkbox is not selected, ExecMan regenerates biasing based on rerun session results.
Viewing ICO Report
ExecMan provides a link per build to show the Constraints Biasingreport generated by
ICO. The report shows data on coverage and diversity scores to help you to improve their
constraints. In the Buildstable, the Ico Reportcolumn is added that contains a link to the
ICO report as shown below:
VC Execution Manager™ User Guide
V-2023.12-SP2
493
Chapter 15: Integration With ICO
Viewing ICO Report
Feedback
When you click crgReport in the Ico Report column, the following report is displayed:
This report provides the information on per class instance and class scores.
VC Execution Manager™ User Guide
V-2023.12-SP2
494
Feedback
16
Integration with Regression Debug Automation
(RDA)
The RDA integration with VC ExecMan feature minimizes your efforts required to enable
RDA for ExecMan. You can now check an RDA report from ExecMan or from RDA. The
RDA integration with VC ExecMan supports the following:
• RDA binning results
• RDA Debug Facilitator
• RDA debug engines (DUTRCA and TBRCA)
The following figure displays the flow of RDA integration with ExecMan feature:
Figure 67
RDA Integration with ExecMan Flow
This chapter includes the following topics:
• Loading RDA in ExecMan
• Enabling RDA Binning
• Enabling Debug Facilitator/RCA
• Reference Finder
VC Execution Manager™ User Guide
V-2023.12-SP2
495
Chapter 16: Integration with Regression Debug Automation (RDA)
Loading RDA in ExecMan
Feedback
Loading RDA in ExecMan
You need to use RDA plugin to load RDA in ExecMan. To invoke the RDA plugin, perform
the following steps:
1. Add RDA plugin to synopsys_eman.setup using the following command, and you must
replace <VERDI_HOME> with the actual Verdi installation path instead of $VERDI_HOME:
plugins:
- rda: <VERDI_HOME>/platform/linux64/bin/rcaIntgrFlow/python38/
rca_plugin.so
Note:
While invoking RDA plugin, you are recommended to use the same version
of Verdi and ExecMan.
2. Load the RDA plugin in your .emc file.
plugins:
- rda
3. Register a load RDA report template using the following command:
eman admin register_custom_template -t $VERDI_HOME/share/autoRCA/
python38/etc/vms/web_template/load_rda_report.emd -a
The Open RDA report button is added to the ExecMan GUI.
VC Execution Manager™ User Guide
V-2023.12-SP2
496
Chapter 16: Integration with Regression Debug Automation (RDA)
Enabling RDA Binning
Feedback
When you run the eman -gui command, select a session, and click the Open RDA report
button, the RCA Manager window opens as shown in the following figure:
Figure 68
Loading RDA in ExecMan
Enabling RDA Binning
RDA binning is always enabled in the RDA plugin.
Enabling Debug Facilitator/RCA
You need to define the debug engines Debug Facilitator and DUTRCA, and enable them
for the error patterns that need to be analyzed by these debug engines.
Debug facilitator is defined by default; you need to include DF.emc as shown in the
following command:
include:
- $VERDI_HOME/share/autoRCA/python38/etc/vms/engine_template/DF.emc
However, you need to define DUTRCA as shown in the following commands:
debug_engines :
- name: DUTRCA
cmd: $current_dir/dutrca_debug_engine_cmd.sh
log_file: $${EMAN_TEST_NAME}_dutrca_debug_engine.log
run_dir: $current_dir/DUTRCA/$$EMAN_TEST_PATH
custom_values:
REF_CL_WORK_DIR: $$EMAN_REF_FIND_CL_WORK_DIR
DUTRCA_CONFIG: $current_dir/dutrca.yaml
VC Execution Manager™ User Guide
V-2023.12-SP2
497
Chapter 16: Integration with Regression Debug Automation (RDA)
Enabling Debug Facilitator/RCA
Feedback
TARGET_SCOPE: minsoc_tb_top.minsoc_top_0
REPORT_PATH: $current_dir/DUTRCA/$$EMAN_TEST_PATH/dutrca_report.xml
After defining the debug engines, enable them for the specific error
patterns. In the following example, DF and DUTRCA are enabled for
the uvm_error error pattern:
error_patterns:
- name: uvm_error
pattern:
(?P<Type>UVM_ERROR)\s+.*\s+\[(?P<Code>\S+)\]\s+(?P<Description>.*)
base_status: fail
custom_status: uvm_error
priority: 0
debug_rerun_count: 1
debug_engines: DF DUTRCA
You need to create your scripts based on your environment.
Example:
dutrca_debug_engine_cmd.sh
#!/bin/sh
TARGET_BUILD_DIR=$EMAN_COMPILE_DIR
TARGET_TEST_DIR=$TARGET_BUILD_DIR/${EMAN_TEST_NAME}_debug
REF_BUILD_DIR=$EMAN_TOP_RUN_DIR/reference_finder/$EMAN_REF_FIND_ID/${EMAN
_REF_FIND_CL}_build_debug
REF_TEST_DIR=$REF_BUILD_DIR/${EMAN_TEST_NAME}_debug
# Set up env var used in dutrca.yaml
export TARGET_SIMV_DAIDIR=$TARGET_BUILD_DIR/simv.daidir
export TARGET_WAVEFORM=$TARGET_TEST_DIR/inter.fsdb
export TARGET_SIM_LOG=$EMAN_DEBUG_LOG_FILE
export REF_SIMV_DAIDIR=$REF_BUILD_DIR/simv.daidir
export REF_WAVEFORM=$REF_TEST_DIR/novas.fsdb
export REF_SIM_LOG=$REF_TEST_DIR/sim.log
DUTRCA_CONFIG=$EMAN_EXECUTION_DIR/dutrca.yaml
autorca -cfg $DUTRCA_CONFIG -work rca.work_dir
if [ $? -eq 0 ]; then
echo "DUTRCA succeeded"
else
echo "DUTRCA failed"
fi
Example:
dutrca.yaml
dutrca:
## 1: auto mode, 2: manual mode, 3: auto + manual mode ##
mode: 1
# default is 3
## set fail/pass case to debug ##
VC Execution Manager™ User Guide
V-2023.12-SP2
498
Chapter 16: Integration with Regression Debug Automation (RDA)
Reference Finder
Feedback
target_simv_daidir:
$TARGET_SIMV_DAIDIR
# [full path], required
field
target_waveform:
$TARGET_WAVEFORM # [full path], required field
target_sim_log:
$TARGET_SIM_LOG
#
[full path], required field for “auto mode”
#original log: case2/0705_TB_0705_DUT/run.log
reference_simv_daidir: $REF_SIMV_DAIDIR
# [full path], required
field
reference_waveform:
$REF_WAVEFORM
# [full path], required field
reference_sim_log:
$REF_SIM_LOG
# [full path],
required field for “auto mode”
design_based_root_cause: true # [true/false], required field
target_scope: $TARGET_SCOPE #minsoc_tb_top.minsoc_top_0 # [full
scope], required field
max_signal_depth: 3
# default is "3"
slack_time: 0ns
# default is "0ns"
time_bound: auto
# default is "auto"
enable_transaction_diff: True
Reference Finder
The ExecMan feature, Reference Finder, allows connecting ExecMan to any source
control. For any failed test, the feature allows finding the latest changelist in which this test
passed and uses it as a reference test.
VC Execution Manager™ User Guide
V-2023.12-SP2
499
Chapter 16: Integration with Regression Debug Automation (RDA)
Reference Finder
Feedback
The following figure displays the flow that it follows for DUTRCA:
Figure 69
Reference Finder Flow
The Target for DUTRCA is generated using the following command in the Regular Debug
Test: debug_run_cmd
The Reference for DUTRCA is generated using the following command in the Reference
Debug Test: ref_debug_run_cmd
The debug engine DUTRCA needs a reference, so you need to define a reference finder
for a build. You can define a reference finder by adding the following scripts to your
ExecMan configuration file:
• init
[Optional] Specifies a script or command to initialize the reference finder. If this
command is defined, it is executed only once when you start using the reference finder.
• list_cls
[Required] Specifies a script or command to get the list of changelist IDs. If this
command is defined, it is executed once at the beginning to allow loading these
changelists later. After the script is executed, its log file is parsed for getting the
changelist IDs.
VC Execution Manager™ User Guide
V-2023.12-SP2
500
Chapter 16: Integration with Regression Debug Automation (RDA)
Reference Finder
Feedback
• load_cl
[Required] Specifies a script or command that defines how to load a specific changelist.
It is called every time a changelist is required.
Defining Commands to Rebuild/Rerun simv
You can define the following commands required for debug engines and reference finders:
• debug_run_xxx for debug engines rebuild/rerun
• ref_run_xxx for reference finders
Example:
builds:
- name: build1
run_cmd
: echo 'pureEMAN';
ln -s $source_dir/* . ; ./compile.csh"
debug_run_cmd: echo 'GenDF'
;
source_dir=$${EMAN_BUILD_VERSION_DIR}/0705; ln -s
$source_dir/* . ; ./compile.csh"
ref_run_cmd : echo 'FindRef' ;
source_dir=$${EMAN_BUILD_VERSION_DIR}/0705; ln -s
$source_dir/* . ; ./compile.csh <options>"
run_dir
: $current_dir/eman_out/$${EMAN_SESSION_NAME}
debug_run_dir:
$current_dir/eman_out/$${EMAN_SESSION_NAME}/debug_facilitator
ref_run_dir :
$current_dir/eman_out/$${EMAN_SESSION_NAME}/$${EMAN_REF_BUILD_CL}
simv_location: $${EMAN_COMPILE_DIR}/simv
Example:
p4_list_cls.sh
#!/bin/sh
# Extract “Root” from “p4 client” command
p4_root=$(p4 client -o | grep '^Root:' | awk -F':' '{print $2}' | tr -d
'\t')
if [ -n “$p4_root” ]; then
p4 changes -s submitted | grep -o “^Change [0-9]*” | awk '{print
“changelist " $2}' | tac
Example:
env:
- TEST_SRC_ROOT: $TEST_ROOT
variables:
- current_dir: $PWD
- source_dir: $${EMAN_REF_FIND_CL_WORK_DIR}/0705
VC Execution Manager™ User Guide
V-2023.12-SP2
501
Chapter 16: Integration with Regression Debug Automation (RDA)
Reference Finder
Feedback
builds:
- name:
build
run_cmd:
ln -s $source_dir/* .; ./compile.csh
run_dir:
$current_dir/eman_out/$${EMAN_SESSION_NAME}/$${EMAN_BUILD_NAME}
simv_location:
$${EMAN_COMPILE_DIR}/simv
debug_run_cmd:
ln -s $source_dir/* .; ./compile.csh
#ref_run_cmd:
<same as run_cmd>
ref_run_dir:
$${EMAN_REF_FIND_WORK_DIR}/$${EMAN_REF_FIND_CL}_build
#ref_debug__run_cmd: <same as debug_run_cmd>
ref_debug_run_dir:
$${EMAN_REF_FIND_WORK_DIR}/$${EMAN_REF_FIND_CL}_build_debug
reference_finder:
p4_rf
tests:
- name:
eth_test
build:
build
run_cmd:
cp -rs
$TEST_SRC_ROOT/regression/$${EMAN_TESTCASE}/case0/* . ; ./run_sim.py
$${EMAN_SIMV}
debug_run_cmd: cp -rs
$TEST_SRC_ROOT/regression/$${EMAN_TESTCASE}/case0/* . ; ./run_sim.py
$${EMAN_SIMV}
debug_log_file: $${EMAN_RUN_DIR}/sim.log
#ref_run_cmd:
<same as run_cmd>
#ref_debug_run_cmd: <same as debug_run_cmd>
reference_finder:
- name: p4_rf
list_cls: $current_dir/p4_list_cls.sh
load_cl: $current_dir/p4_load_cl.sh
no_ref_work_dir: $TEST_SRC_ROOT/p4_client
Example:
p4_load_cl.sh
#!/bin/sh
ROOT_DIR=$(realpath “${BASH_SOURCE%/*}”)
if [ -z $EMAN_REF_FIND_WORK_DIR ]; then
echo “EMAN_REF_FIND_WORK_DIR is empty. Skip loading cl"
exit 1
fi
if [ -z $EMAN_REF_FIND_CL ]; then
echo “EMAN_REF_FIND_CL is empty. Skip loading cl”
exit 1
fi
mkdir -p $EMAN_REF_FIND_WORK_DIR/${EMAN_REF_FIND_CL}
find_cl_dir=`realpath $EMAN_REF_FIND_WORK_DIR/${EMAN_REF_FIND_CL}`
VC Execution Manager™ User Guide
V-2023.12-SP2
502
Chapter 16: Integration with Regression Debug Automation (RDA)
Reference Finder
Feedback
echo “find_cl_dir:$find_cl_dir”
cd $find_cl_dir
P4CLIENT_SUFFIX=`echo $find_cl_dir | md5sum | awk '{print $1}'`
export P4CLIENT=”labRDA_${USER}_${P4CLIENT_SUFFIX}”
echo “P4CLIENT:$P4CLIENT”
rm -rf $P4CONFIG
echo “P4PORT=$P4PORT”
> $P4CONFIG
echo “P4CLIENT=$P4CLIENT” >> $P4CONFIG
source $ROOT_DIR/create_template
p4 client -i < p4_client_templete
p4 sync -f ...@$EMAN_REF_FIND_CL
VC Execution Manager™ User Guide
V-2023.12-SP2
503
Feedback
A
Structure of the ExecMan Configuration File
This chapter provides information about the blocks, variables, options, keywords, and tags
that you can define in an ExecMan configuration file. Note that you must adhere to the
order of placement and inclusion of these arguments as described in this chapter.
Note:
The items listed in bold font are mandatory in the configuration file.
init
Include theinit:block to run custom commands before starting the regression
builds.
run_cmd:
Command line to run before the build starts
timeout:
Timeout for the init run_cmd. The default is 60
secs.
disable:
Use this option to disable the init block. The
default is None. The accepted value is either is true
or false.
error_patterns:
Allows you to specify a list of error patterns or error pattern files.
config_name:
Takes the name of a configuration run.
include:
Allows to include other configuration definition in a parent configuration file.
import:
Imports and merges another configuration into this configuration file.
env:
Enables to list the environment variables that should be set before calling Execution
Manager.
variables:
Enables to define the user-defined variables for convenience when defining tests
and builds.
grid_setup_file:
To specify the file containing the grid options.
rules_file:
Use the rules_file keyword in the regression configuration file to call (invoke) the
rules file.
builds:
A configuration can have multiple builds for different compile arguments, and each
test can pick the build that needs to be used.
VC Execution Manager™ User Guide
V-2023.12-SP2
504
Appendix A: Structure of the ExecMan Configuration File
builds:
builds:
Feedback
-options:
You can specify various options in the builds
block under the -options block to customize the
execution behavior. o) nodes: To specify the
number of parallel runs for builds.o) build: To
mention whether to execute all builds ('all') or only
to build specific blocks that have tests associated
with them ('test_dependency').o) timeout: To
specify the timeout value in seconds for running
builds. o) status_priority: When you set
status_priority: exit_status, it gives priority
to the exit status. When you set status_priority:
log_file, it gives priority to the log file.o)
grid_opt: To mark all the builds with grid_opts
defined in the grid_setup_file o) custom_cmd:
To run any post-processing command or script
after executing run_cmd. o) debug_custom_cmd:
To run any post- processing command or script
after executing debug_run_cmd in the debug rerun
phase.o) run_dependency: To set or change the
run dependency for a build. The dependent job is
submitted to the grid based on the status of the
parent build.o) run_dependency_scriptInstead
of using the job submission status to set the
dependency for a build, you can also specify a
script.
name:
The name of a build. VC Execution Manager uses
this name in the report.
variables:
To specify the list of variables that are specific to
the scope of an individual build.
env:
List of environment variables that are specific to the
scope of an individual build.
run_cmd:
To specify a compile script or a compile command
line.
simv_location:
To specify a path to the simulation executable.
run_dir:
To specify the directory from where the build’s
run_cmd should be executed.
debug_run_cmd:
To specify the debug command or script for
recompiling the design during the debug rerun
phase.
debug_run_dir:
To specify the directory from where debug_run_cmd
must be executed.
debug_simv_location:
To specify the path to the simulation executable
generated during the debug rerun.
VC Execution Manager™ User Guide
V-2023.12-SP2
505
Appendix A: Structure of the ExecMan Configuration File
builds:
tests:
Feedback
debug_log_file:
To specify the log file that should be used to
determine the build status.
cleanup:
To specify files or directories that should be deleted
after a build is run.
timeout:
To specify the run timeout value for individual tests.
The default is 1800 seconds.
save:
To specify files or directories that should be saved
in cvsdepot.
extends:
Inherit all the tags of a build block using the extends
option.
merged_vdb:
To specify the name of a merged vdb that the build
should be associated with.
urg_options:
To specify urg_options for a merged vdb.
log_file:
To specify the log file for a build.
grid_opt:
To mark the individual build with grid_opts defined
in grid_setup_file. This overrides grid_opt
defined in the build options.
debug_grid_opt:
To mark debug_run_cmd of an individual build
with grid_opts defined in grid_setup_file. To
override both grid_opt defined in the build_block
and grid_opt defined in the build options for
debug_run_cmd.
custom_cmd:
To run any post-processing command or script after
executing run_cmd. This overrides the custom_cmd
specified in the build options.
debug_custom_cmd:
To run any post-processing command or script after
executing debug_run_cmd. This option overrides
the debug_custom_cmd specified in the build
options.
error_patterns:
To specify error patterns for individual builds.
group:
To define the groups and subgroups for a build in a
regression
priority
To define or set the priority for builds.
The tests block describes how to run each test. You can include multiple test
configurations in the tests: block.
VC Execution Manager™ User Guide
V-2023.12-SP2
506
Feedback
Appendix A: Structure of the ExecMan Configuration File
tests:
-options:
You can specify various options in the tests
block under the -options block to customize the
execution behavior. o) nodes: To specify the
number of parallel runs for the tests.timeout: To
specify the timeout value in seconds for running
tests. o) save: To save the files specified in
the individual test definition only when a test
fails (‘on failure’).o) debug_rerun_count: To
select the number of failing tests to be rerun
from each failure category (positive integer
for 'n' number of tests, string 'all' for all tests,
'<n>/build' to select 'n' tests from each build for
every failure category).o) custom_cmd: To run
any post-processing command or script after the
test executiono) debug_custom_cmd: To run
any post-processing command or script after
the test execution in the debug rerun phase.o)
run_dependency: To set or change the run
dependency for a test. The dependent job is
submitted to the grid based on the status of the
parent test.o) run_dependency_script Instead
of using the job submission status to set the
dependency for a test, you can also specify a script
using run_dependency_script.o) flat_priority: To
run tests based on the priority set, irrespective of
the builds that these tests belong to.
name:
To specify a name for a test case.
build:
To specify the names of the builds defined in the
configuration file. Use a comma separated list to
specify multiple builds.
variables:
To specify the local variables for the test block.
env:
To specify the local environment variables for the
local test block.
run_cmd:
To specify the command line to run the test case.
script:
deprecated
arguments:
deprecated
comp_simv:
Simv location if not specified in the build block.
cleanup:
To specify the files or directories that should be
deleted after a test is run.
save:
To specify the files or directories that should be
saved in cvsdepot.
debug_run_cmd:
To run the test case in the debug-rerun mode.
VC Execution Manager™ User Guide
V-2023.12-SP2
507
Feedback
Appendix A: Structure of the ExecMan Configuration File
tests:
debug_script:
deprecated
debug_args:
deprecated
debug_run_dir:
To specify the directory from where debug_run_cmd
must be executed.
debug_log_file:
To specify the log file for extracting the test status
during the debug-rerun mode.
extends:
Inherit all the tags of a test block using the extends
option.
tags:
To specify a list of tags for a test. Use a comma
separated list to specify multiple tags.
seeds:
To specify the seeds manually.
smoke:
To mark a test as a smoke test.
timeout:
To specify the timeout for test. The default is 1800
sec.
count:
If a test is a random test, then the test is executed
“n” times specified for count:.
initial_seed:
To specify the seed number from which random
seeding should start.
test_file:
To specify a file that contains a list of test names.
run_dir:
To specify the directory from where the test’s
run_cmd should be executed.
log_file:
By default, the tests produce log file with the name
<test_name>.log. You can override this behavior
by specifying the name of your custom log file.
merge:
To merge coverage results after the test is run. The
default is yes.
grid_opt:
To mark the individual test with grid_opts defined
in the grid_setup_file. This option overrides the
grid_opt defined in the test options.
debug_grid_opt:
To mark debug_run_cmd of an individual test
with grid_opts defined in grid_setup_file.
This overrides both grid_opt defined in the test
options.To override both grid_opt defined in the
test_block and grid_opt defined in the test
options for debug_run_cmd.
VC Execution Manager™ User Guide
V-2023.12-SP2
508
Appendix A: Structure of the ExecMan Configuration File
merge_options:
Feedback
custom_cmd:
To run any post-processing command or script
after executing run_cmd. This option overrides the
custom_cmd specified in the test options.
debug_custom_cmd:
To run any post-processing command or script
after the test execution in debug rerun phase. This
option overrides the debug_custom_cmd specified
in the test options.
group:
To define test group and subgroups in a regression.
error_patterns:
To define the error patterns that enables you to
determine the status of an individual test.
priority
To define or set the priority for tests.
Options for merging.
timeout:
To specify the timeout of an individual merge
command. The default is 3600 sec.For
-disable_merge_server specifies the overall
merge timeout value. Default: 1800 sec.May be
disabled by -disable_all_timeouts switch.
grid_opt:
To specify the grid where URG commands run. If
the value is not set, the default value of grid_opts
is taken.For -disable_merge_server: Specifies
grid options for parallel merge.
parallel_urg:
This option is valid for -disable_merge_server
only.nodes: Number of nodes for parallel
merge.machine_list: File name containing the list
of machines
show_intermediate_resul
ts:
To perform i.ncremental merges as individual
simulations are finished. Default: 1. When set to 0,
all merges are performed after all simulations are
finished.
show_individual_build_mer To automatically define merge per each build and
ges:
show it in GUI. Default: 0.
parallel_merge:
<Number>. Specify number of splits per build to
run in parallel. When it is 0 or 1, no parallelization is
done. Default: 0.
batch_size:
<Number>. Minimal number of runtime VDBs to be
merged as part of a URG command. If there are
some remaining VDBs, they are merged after all
simulations of this build are done. Default: 10.
skip_failed_vdb:
Do not fail a URG command in case of a failure of
an individual VDB merge. Default: 0.
VC Execution Manager™ User Guide
V-2023.12-SP2
509
Appendix A: Structure of the ExecMan Configuration File
no_text_report:
end
Feedback
Set the value to 1 to disable the report generation in
text format. The default value is 0.
Note:
When the value is set to 1, the useful test list
generation is automatically disabled as it relies
on the text format.
Include the end: block to run custom commands at the very end of a session. It
enables generating custom reports or updating custom databases.
run_cmd:
To specify a compile script or a compile command
line.
timeout:
To specify the run timeout value for end run_cmd.
The default is 60 seconds.
disable:
To disable the end block. The accepted value is
either true or false.
VC Execution Manager™ User Guide
V-2023.12-SP2
510
Feedback
B
Serverless Mode
Installing ExecMan and running regressions without a server (also, called as the
serverless mode) enables you to run regressions without installing the database server
and the Web server. In this mode, it is not required to run the post installation script or
tasks. VC Execution Manager automatically detects the absence of servers and runs
regressions in the serverless mode; thus, enabling you to run eman even when the DB
server is down or not accessible.
This chapter consists of the following sections:
• Installing the Software Package Without the Database Server
• Command-Line Options for the Serverless Mode
• Viewing Static Regression Run Reports
Installing the Software Package Without the Database Server
ExecMan can either be installed by the IT team or an individual group. ExecMan supports
modular installation, in which the IT team controls the installation of ExecMan and the
general users can directly access the installation. The general users can source the
sourceme_serverless.csh or sourceme_serverless.sh file and run ExecMan.
To avoid the IT team getting involved in installation and maintenance of the ExecMan
software, individual groups who use ExecMan for regression run can also manage
installation by themselves.
The serverless installation enables you to do the following:
• Handle multiple runs as a single user. That is, although you can execute multiple runs,
the runs are independent of each other. The data for each run is isolated and stored
separately as there is no centralized database.
• Interface to display data in CSV or HVP format so that you can annotate plans.
VC Execution Manager™ User Guide
V-2023.12-SP2
511
Appendix B: Serverless Mode
Installing the Software Package Without the Database Server
Feedback
To install VC Execution Manager in the serverless mode, as an administrator, perform the
following steps:
► Download the Execution Manager tar file and use Synopsys Installer to install the
software package. See section Installing VC Execution Manager in the Serverless
Mode.
As an end-user (general user) or a CAD administrator, multiple users can reference a
single installation of ExecMan using the following steps:
1. Set the EMAN_HOME environment variable using the following command:
% setenv EMAN_HOME <ExecMan installation path>/VMS
2. Edit the synopsys_eman.setup file to define your run environment. For information on
how to edit the setup file, see section Modifying the Setup File.
3. Run the sourceme script to start using Execution Manager:
source $EMAN_HOME/bin/sourceme_serverless.csh
(or sourceme_serverless.sh)
Installing VC Execution Manager in the Serverless Mode
You do not need to use the special administrator account for installing VC Execution
Manager in the serverless mode. To install VC Execution Manager using the bundled
software in the GUI mode, perform the following steps:
Alternatively, you can use the batch mode as mentioned in the section Installing VC
Execution Manager in the Database Server Mode to install the software.
1. Change to the top-level directory of the CD or unpacked tar file and run the installer.
You can use the following command to invoke the installer GUI:
./installer gui
2. The installation wizard appears, as shown in the following figure. On the wizard, click
Start.
VC Execution Manager™ User Guide
V-2023.12-SP2
512
Appendix B: Serverless Mode
Installing the Software Package Without the Database Server
Feedback
Figure 70
3. Enter the Site ID Number, Site Administrator, and Contact Information in the
following figure and click Next.
4. Enter the path of the source directory containing the EST or CD/DVD_ROM ExecMan
product files and click Done. Click Next and select the software version.
5. Select Execution Manager (STAND-ALONE) and click Next.
6. If required, you can unselect the products that do not need platform-independent
package and click Next.
7. Select the platforms on which you want to install the software and click Next.
VC Execution Manager™ User Guide
V-2023.12-SP2
513
Appendix B: Serverless Mode
Installing the Software Package Without the Database Server
Feedback
8. Verify the selected information and then click Accept, Install to begin installation, as
shown in the following figure:
9. Wait while the installation completes and then click Finish to exit the installer.
After the installation is complete, run the sourceme_serverless.csh file using the
following command and use eman for regression runs:
% source ./VMS/bin/sourceme_serverless.csh
(or sourceme_serverless.sh)
or
Alternatively, to run ExecMan, set EMAN_HOME and add it to the system PATH, as shown
in the following commands:
% setenv EMAN_HOME=/remote/machinea/usera/eman_serverless_install/VMSset
path= ( $EMAN_HOME/bin $path)
VC Execution Manager™ User Guide
V-2023.12-SP2
514
Appendix B: Serverless Mode
Installing the Software Package Without the Database Server
Feedback
Note:
It is not required to run the post installation script in the serverless mode
installation.
Customizing the Setup File
You can provide the setup data through the $EMAN_HOME/admin/synopsys_eman.setup
file or the EMAN_SETUP_FILE environment variable. If EMAN_SETUP_FILE is set, ExecMan
reads the spool and depot paths that are found in the file pointed to by EMAN_SETUP_FILE.
Otherwise, $HOME/eman_data/depot and $HOME/eman_data/spool are as the default
directories in the serverless run.
The grid settings are either read from EMAN_SETUP_FILE or from $EMAN_HOME/admin/
synopsys_eman.setup. Note that grid_setup_file is not supported in the serverless
installation.
Accessing Regression Run Data
In the serverless runs, $HOME/eman_data is set as the default root directory and includes
the following directories:
• depot — is the depot directory. The $HOME/eman_data/depot directory is default.
Regression run data, session report and session setup file and other serverless run
specific files are saved in this directory
• spool — is the default global spool scratch directory. The $HOME/eman_data/spool
directory is default. In case of regression failure, all compile and run logs are saved in
spool.
You can also use the EMAN_SETUP_FILE environment variable with the eman setup file and
change the location of depot and spool. Specify the location where you want to create the
depot and spool in the synopsys_eman.setup file.
Note:
To access the log files, you must have write permissions to the $HOME directory
or the depot and spool directories that are specified in the file pointed to by
EMAN_SETUP_FILE.
Viewing Reports
Execution Manager generates static HTML reports at the end of each regression run from
which you can view results. The static reports are generated at certain intervals and you
can access these static reports at:
$HOME/eman_data/depot/cvsdepot/index.html
For more information about viewing the static reports, see section Viewing Static
Regression Run Reports.
VC Execution Manager™ User Guide
V-2023.12-SP2
515
Appendix B: Serverless Mode
Command-Line Options for the Serverless Mode
Feedback
Command-Line Options for the Serverless Mode
You can execute the eman command line and its options using the following syntax:
% eman –regr_config <file> [options]
Where,[options] are eman options, which can contain spaces or start with a hyphen.
Note:
While specifying a comma separated arguments to any of the eman options,
there should be no space after the comma.
The eman commands that are specific to the database server operations do not function in
this mode and therefore, only the following eman command options work in the serverless
mode:
• eman -regr_config
• eman testapi start/run/post/stop/shutdown
• eman report
• eman data dump -list_projects | -list_configs | -list_sessions |
-list_saved_files
• eman project show -all
• eman -get_cvs_depot
• eman version info
eman -project <project> -config <config> -session_name <session>
-get_report_path
The following are the limitations with this functionality:
• The data generated from the installation run is confined to its run and cannot be
merged with the centralized DB when a DB server is installed.
The data views that are supported with MySQL are not available in the serverless
mode.
Following eman options are specific to the Serverless mode:
• -serverless
Usage: -serverless
Option to enable a serverless regression run. In the serverless mode, VC Execution
Manager runs even if the database and Web servers are not functioning. When servers
VC Execution Manager™ User Guide
V-2023.12-SP2
516
Appendix B: Serverless Mode
Viewing Static Regression Run Reports
Feedback
are not available, ExecMan auto detects the absence of the servers and runs in the
serverless mode.
When servers are present and if you want to forcefully run in serverless mode, use the
-serverless option. If you provide the -serverless option on an installation that is
already serverless, this option is redundant and ignored.
To run a regression in the serverless mode, use the following command:
% eman -regr_config basic.emc -loca_host -serverless
• -no_serverless
Usage: -no_serverless
Option to disable a serverless regression run. In the no serverless mode, VC Execution
Manager does not run if the database and Web servers are not functioning. When
servers are not available, ExecMan does not detect the absence of the servers and
disables the auto serverless mode switch. To forcefully disable the auto serverless
mode, use the -no_serverless option.
To run a regression in the -no_serverless mode, use the following command:
% eman -regr_config basic.emc -loca_host -no_serverless
Viewing Static Regression Run Reports
VC Execution Manager generates static HTML reports at the end of each regression run
in the serverless runs from which you can view results. The static reports are generated at
certain intervals and you can access these static reports at:
$HOME/eman_data/depot/cvsdepot/index.html
For information about installing ExecMan in the serverless mode, see section Installing the
Software Package Without the Database Server.
The static reports of all the sessions are saved in the depot and you can access the
reports by viewing its respective index.html file in a Web browser. Each time you open
VC Execution Manager™ User Guide
V-2023.12-SP2
517
Appendix B: Serverless Mode
Viewing Static Regression Run Reports
Feedback
an index.html file, it lists all the existing reports and the files that are linked. A sample
static regression run report is as shown in the following figure:
Figure 71
Sample Static Report
Note that Static Report is displayed in the top-right corner to indicate that the report is
generated in the serverless mode.
Alternatively, you can use the following eman command to see the location of a report of a
certain session:
% eman -project <project> -config <config> -session_name <session>
-get_report_path
Viewing Static Reports in the Verdi Coverage GUI
You can also access the static reports in Verdi Coverage without running a regression.
Click the Tools menu and then click Open Tests Browser to view the static report. If no
session is run previously either using Verdi or in the batch mode, Verdi Coverage issues
an error message stating that no report is available. Otherwise, it will open the sessions
report for the current user.
If you run tests in Verdi Coverage using the Run Tests option from the Tools menu, the
static report opens during the regression run automatically.
VC Execution Manager™ User Guide
V-2023.12-SP2
518
Appendix B: Serverless Mode
Viewing Static Regression Run Reports
Feedback
Note:
The buttons to interact with the ExecMan server and Save to New session
functionalities are disabled in the serverless mode.
Migrating Session Data Generated in the Serverless Mode to the
MySQL Server
In the serverless mode, all the generated session data in each session are saved to a
folder in the serverless depot:
$HOME/eman_data/depot/cvsdepot/<user>/<project>/<config>/<session>
To consolidate data from different sessions in the serverless mode, VC Execution Manager
provides an interface to migrate the scattered data into a centralized MySQL database
server. The eman data migrate command enables you to migrate such data.
The eman data migrate command enables you to consolidate the data generated in
different sessions into a single MySQL server. The MySQL server is the database attached
to the current ExecMan instance.
To specify the serverless sessions that need to be migrated, use the following eman data
migrate command:
% eman data migrate -user <user> [ -project <project> [-config <config>
[-session <session1,session2,…>] ] ] -serverless
ExecMan filters the sessions from the serverless depot, according to the filter specified in
this command.
You can also specify the serverless sessions that need to be migrated using the session
path, as shown in the following command:
% eman data migrate -cvsdepot <path1,path2,…>
Data Migration Command Lines
This section details the various command lines you can use to migrate data in the
serverless mode in various scenarios.
Syntax 1:
To migrate all the serverless sessions to the target server, provide the root of the
serverless depot to the -cvsdepot option, as shown in the following command:
% eman data migrate -cvsdepot $HOME/eman_data/depot
The session data is migrated to the current instance of ExecMan server, by default.
VC Execution Manager™ User Guide
V-2023.12-SP2
519
Appendix B: Serverless Mode
Viewing Static Regression Run Reports
Feedback
Syntax 2:
To migrate the serverless sessions from different location to the target server, provide a list
of comma separated paths to -cvsdepot
The path can be any parent folder that includes sessions in its folder:
% eman data migrate -cvsdepot <path1>,<path2>
Syntax 3:
To rename a session in the target server, include the -dup_session -rename option. All
the listed sessions will be renamed to the <original_name>_1 name format. You can also
overwrite or merge the sessions in the target server.
% eman data migrate -cvsdepot <path1>,<path2> -dup_session rename
Syntax 4:
To change the project in which the target session resides in, include the -target_project
project_x, as shown in the following command. All the listed sessions will be renamed to
<original_name>_2 and will be created in project_x.
% eman data migrate -cvsdepot <path1>,<path2> -dup_session rename
-target_project project_x
You can also use the -target_config config_x option to change the config in which the
target session resides in:
eman data migrate -cvsdepot <path1>,<path2> -dup_session rename
-target_config config_x
Syntax 5:
To specify sessions with user/project/config/session use the following command line. Add
-serverless to search the serverless depot in the current ExecMan instance.
% eman data migrate -user <user> -project <project> -config <config>
-serverless
% eman data migrate -user <user> -project <project> -config <config>
-session <session_1>,<session_2>,<session_3> -serverless
You can also use the dup_session and target_project, target_config,
target_session options with this command to rename or copy the sessions.
Syntax 6:
For two sessions with common test cases, using the -dup_test overwrite option
considers the source test case as the final test case. The -dup_test ignore option is
used by default, which considers the target test case as the final test case.
% eman data migrate -user <user> -project <project> -config <config>
-session <session_1> -dup_session merge -dup_test overwrite
VC Execution Manager™ User Guide
V-2023.12-SP2
520
Feedback
C
Troubleshooting Issues
This chapter provides information about how to debug and resolve some of the common
ExecMan installation and operation issues, in the following sections:
• Troubleshooting Installation Issues
• Troubleshooting Common Issues
• Troubleshooting Configuration File Issues
Troubleshooting Installation Issues
You might encounter installation issues while installing ExecMan executable and
performing post installation tasks. The following section describes some of the known
installation issues and methods to troubleshoot them.
ERROR: Syscheck 'FAILED’
Cause: In case the current machine where ExecMan is installed does not meet the
machine requirements, the syscheck fails and displays a message similar to the following:
Reason(s):
ERROR: Port '8000' is Not Free.
ERROR: Port '3306' is Not Free.
ERROR: bin/mysqld_safe is already running in this machine.
ERROR: bin/mysqld is already running in this machine.
ERROR: bin/manage is already running in this machine.
ExecMan needs a dedicated machine for successful installation
.......................................................
INFO: Syscheck failed. Unable to proceed with post-installation.
Fix: ExecMan needs a dedicated machine for running servers. If the ports on the machine
are already being used by some other processes, the syscheck fails. Either stop those
conflicting processes or try to install it on a different machine.
ERROR: Installation failed
Cause: Installation has finished, but with errors.
VC Execution Manager™ User Guide
V-2023.12-SP2
521
Appendix C: Troubleshooting Issues
Troubleshooting Common Issues
Feedback
Fix: For information about the cause of the error, see the installation log in <installdir>/
install.log.
If a report is similar to the following messages:
• "ERROR: Port '8000' is Not Free.'
• 'ERROR: bin/mysqld is already running in this machine'
Then, the platform is not correct and the machine does not meet the prerequisites for
installing Execution Manager. Switch to another machine and run the commands given
in install.log.
The command would be similar to the following:
<install_dir>/VMS/bin/post_install
If the ERROR displayed is for any other reason, such as unavailable third party
software, contact Synopsys support at vcs_support@synopsys.com and attach the
install.log file.
Troubleshooting Common Issues
Facing Issues While Launching ExecMan
Cause: The .running hidden file may still be available in the eman_run_dir directory.
ExecMan gives the following error:
Error: Execution Manager is already running in
run_dir: /
remote/testcases/TC24/9001341501_9001342000/9001341862/eman_scripts
Info : use -top_run_dir <dir> option to run on a different run directory.
Info : If the last run exited abnormally, please cleanup the above
run_dir and try again.
Fix: When an ExecMan process is terminated using CTRL+C, the .running hidden
file may still be available in the eman_run_dir directory. Before using the same
eman_run_dir directory, remove the .running file from the directory or point to the
eman_run_dir directory to another location using -top_run_dir <directory>.
VC Execution Manager™ User Guide
V-2023.12-SP2
522
Appendix C: Troubleshooting Issues
Troubleshooting Common Issues
Feedback
LSF/SGE farms fail to launch jobs
Cause: If the options submitted to the submit_opts argument in the grid settings of the
synopsys_eman.setup file are not valid or if the hosts specified are not reachable, a
message similar to the following is displayed:
Error-[EMAN-GRD-JOBSUB-FAIL] Job submit failure
Job could not be submitted on 'SGE' compute farm.
Reason: Farm configuration error.
Please check the file
"/slowfs/vgrman1/nightly_data/eman2017.03/spool/usera/test_demo/test_co
nf/session_usera_20151208_212215/logs/master.vgintsb.3406.err" for more
information about the error
Fix: Fix the grid settings provided with submit_opts or provide valid hosts. You can also
try to submit the grid command manually after with the provided options from the terminal
to see if the command works fine without Execution Manager.
Saved files do not appear in GUI
Cause: Generally, the GUI is run as a different user, that is, GUI is run with the user id of
the person who installs the tar file. If you do not have permission to view the saved files,
then the saved files do not appear in GUI. The saved files also do not appear in GUI if the
GUI machine has not mounted the cvsdepot correctly.
Fix: Check the file permissions with reference to the user who installed the tar file and try
to login to the machine. Also, check if the files in cvsdepot are viewable.
Tests do not return expected pass/fail results
Cause: The tests might not return the expected pass/fails results in one of the following
scenarios:
• No matching error pattern
• Multiple error pattern matches
Fix: Check the error patterns to see if there are inaccurate patterns. Additionally, check if
there are multiple matches. In case of multiple matches, reset the priorities accordingly as
ExecMan considers only the pattern with the highest priority.
VC Execution Manager™ User Guide
V-2023.12-SP2
523
Feedback
Appendix C: Troubleshooting Issues
Troubleshooting Configuration File Issues
Cannot find results in GUI
You might not find the regression run results in GUI in one of the following scenarios:
• Cause1: Logged in as a different user
Fix1: Check the user name in the Web browser and the user who executed the
regression as both users have to be same.
• Cause2: Regression run is executed in the serverless mode
Fix2: Regression run executed in the serverless mode cannot be viewed in a dynamic
Web UI as the results are saved in static HTML reports.
• Cause3: Web server or database server terminated abnormally
Fix3: Check if the Web server and the database server are running fine.
Troubleshooting Configuration File Issues
Troubleshooting issues in the ExecMan configuration file is quite varied. When you
encounter a problem with regression runs, turn-on the -keep_spool argument in the eman
command line, as shown in the following command:
% eman -regr_config <my_config>.emc -local_host -keep_spool
• The -keep_spool argument prevents the deletion of the spool log files that are created
when eman is running. You can use these spool log files to debug the situation.
When a build fails, the status is shown as fail. No tests are run for that build and the tests
status is shown as Not_Run. Navigate to build and click the
column, as shown in the following figure:
icon under the Action
A detailed page is displayed with the session details along with a link to the spool log file.
VC Execution Manager™ User Guide
V-2023.12-SP2
524
Appendix C: Troubleshooting Issues
Troubleshooting Configuration File Issues
Feedback
Click the <spool_log>.log file to view the spool log details.
To troubleshoot an issue, search the string, EMAN_STATUS_VALUE. ExecMan returns the
value of EMAN_STATUS_VALUE as zero on successful completion of a run. It returns a
non-zero value upon failure. The following figure shows a sample spool log file, in which
EMAN_STATUS_VALUE is 1. This indicates a failure, follow the lines above the string to see
the error details and fix the issue.
Figure 72
VC Execution Manager™ User Guide
V-2023.12-SP2
525
Appendix C: Troubleshooting Issues
Troubleshooting Configuration File Issues
Feedback
General Error Messages
The following are some of the general messages that you might see in the spool log files:
command not found:
This message is issued when there is any invalid command specified in the configuration
file or in any of the script files that are specifie d in the configuration file.
no such file or directory:
This message is issued whenever ExecMan encounters non-existing directories. Create
the file/ directory or set the correct file/directory.
file does not exist:
This message is issued whenever any file or a script is missing. Rename the file or create
a file with the same name.
unexpected EOF/unexpected end of file:
This message is issued when there is an invalid character that is not recognized by the
shell or if there is a syntax error in the configuration file.
no log file found:
In this scenario, the build is passed and test status is no_log_file_found. This
message is issued as ExecMan fails to search for certain patterns in the regression log file
to determine the pass/fail status.
extraction failed:
In this scenario, the build is passed and test status is no_log_file_found. This message
is issued because of an invalid directory mentioned in the configuration file.
old_log_file_found:
In this scenario, the build is passed and test status is no_log_file_found. This
message is issued as ExecMan finds a log file that belongs to an older run.
unable_to_load_log_file:
In this scenario, the build is passed and test status is no_error_spec_found. This
message is issued as ExecMan is unable to open or read the log file.
unable_to_load_error_spec:
In this scenario, the build is passed and test status is no_error_spec_found. This
message is issued as ExecMan is unable to open or read the error_spec file.
VC Execution Manager™ User Guide
V-2023.12-SP2
526
Appendix C: Troubleshooting Issues
Troubleshooting Configuration File Issues
Feedback
no_error_spec_found:
In this scenario, the build is passed and test status is no_error_spec_found. This
message is issued as ExecMan fails to find the error_spec file.
no_patterns_define:
This message is issued as ExecMan is unable to find any pattern from the error_spec
file.
no_pattern_match_found:
In this scenario, the build is passed and test status is no_error_spec_found. This
message is issued as ExecMan cannot match any status in the given log file.
VC Execution Manager™ User Guide
V-2023.12-SP2
527
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )