require 'spec_helper'

# Test DTrace commmands

# Print version
describe command('dtrace -V') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('dtrace: Sun D ') }
end

# List all probes
describe command('dtrace -l') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end

# List all probes provided by the syscall provider
describe command('dtrace -l -P syscall') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end

# Print all entry probes provided by the syscall provide
describe command('dtrace -l -n syscall:::entry') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end
require 'spec_helper'

# Test DTrace commmands

# Print version
describe command('/native/usr/sbin/dtrace -V') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('dtrace: Sun D ') }
end

# List all probes
describe command('/native/usr/sbin/dtrace -l') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end

# List all probes provided by the syscall provider
describe command('/native/usr/sbin/dtrace -l -P syscall') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end

# Print all entry probes provided by the syscall provide
describe command('/native/usr/sbin/dtrace -l -n syscall:::entry') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should contain('PROVIDER') }
end
Use full path to dtrace
Use full path to dtrace

The guest tools no longer add symlinks to /native binaries except
mdata- tools
