gEDA-dev: Icarus Verilog return codes?

Evan Lavelle sa212+geda at cyconix.com
Fri Jan 26 11:39:01 EST 2007


Andrew Lentvorski wrote:
> Does Icarus Verilog do return codes?  I'm running a script, and when I 
> run iverilog I still seem to get an exit code of 0 even if it can't find 
> a file.

Works for me (v0.8.3):

evan 255 > rm wibble.v
evan 256 > iverilog wibble.v
wibble.v: No such file or directory
No top level modules, and no -s option.
evan 257 > echo $status
1
evan 258 > touch wibble.v
evan 259 > iverilog wibble.v
No top level modules, and no -s option.
evan 260 > echo $status
1
evan 261 > echo "module test;endmodule" > wibble.v
evan 262 > iverilog wibble.v
evan 263 > echo $status
0


More information about the geda-dev mailing list