#!/usr/bin/perl -w
# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package
#
# Copyright 2001-2013 by Wilson Snyder. This program is free software;
# you can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
use strict;
use Test;
BEGIN { plan tests => 5 }
BEGIN { require "t/test_utils.pl"; }
use SystemC::Netlist;
ok(1);
my $nl = new SystemC::Netlist ();
ok($nl);
my $v = $nl->sc_version() || "undef";
print "Version: $v\n";
my $nv = $nl->sc_numeric_version() || "undef";
print "Numeric Version: $nv\n";
$nl->read_file (filename=>'example/ExMod.sp',
strip_autos=>1);
ok($nl);
$nl->read_file (filename=>'example/ExModSub.sp',
strip_autos=>1);
ok($nl);
$nl->link();
$nl->autos();
$nl->lint();
ok($nl);