sub getBinDir { my $self = shift; if ( not exists $self->{'binDir'} ) { warn "Object member binDir not set"; return ""; } $self->{'binDir'} = shift if @_; print "Returning binDir.\n"; return $self->{'binDir'}; } #### sub copyCtestBinaries { my $self = shift; my $binDir = $self->getBinDir(); if ( $binDir eq '' ) { warn "Could not set up C test binary area: $!\n"; print "Received " . $self->getBinDir() . " for binDir.\n"; return; } $binDir = $binDir . "\/*"; print "BinDir = $binDir.\n"; my $appBin = $self->app1() . "/bin"; print "AppDir = $appBin.\n"; `cp $binDir $appBin`; } #### sub new { my $class = shift; # Pass the command line to the base class. my $self = $class->SUPER::new(@_); # Set OS specific defaults. $self->{'binDir'} = 'bin/solaris'; bless ($self, $class); return $self; }