Datagen Syntax
Datagen is a program for creating regression test data
from data specifications. It reads specifications
from stdin and writes test records to stdout.
Compile listing appears in stderr.
This page explains the syntax for running datagen.
Normal syntax
datagen <input_source
>output_data
2>messages
-
Input_source is standard input stdin.
-
Output_data is standard output stdout.
-
Messages is standard error stderr.
You should see the message:
Result of compile = 0
...after a normal compile without errors.
Normal syntax - Suppress messages
datagen <input_source
>output_data
2>/dev/null
You should see only the output data.
Verbose syntax
datagen -v <input_source
>output_data
2>messages
Syntax to show internal record data
datagen -V <input_source
>output_data
2>messages
Debugging datagen input source
-
Edit datagen.y
-
Set YYDEBUG to 1
-
Edit Makefile.
-
Add the -d option to the compile options
for flex.
-
Rerun instpc to recompile datagen.
Removing Debugging Options
-
Edit datagen.y
-
Set YYDEBUG to 0
-
Edit Makefile.
-
Remove the -d option from the compile
options for flex.
-
Rerun instpc to recompile datagen.
Table of Contents
Record Definitions
Field Definitions
FAQ
Supporting Routines
Copying