use Test2::V0 -no_srand => 1;
use Module::Build::FFI;

subtest 'ffi_dlext' => sub {

  ok(
    Module::Build::FFI->ffi_dlext,
    'true value',
  );

  note "ffi_dlext = @{[ Module::Build::FFI->ffi_dlext ]}";

};

subtest 'share_dir' => sub {

  note "inc=$_" for @INC;

  my $dir = Module::Build::FFI->_share_dir;

  ok -d $dir, "dir exists";
  note "dir = $dir";

  ok -f "$dir/include/ffi_util.h", "ffi_util exists";

};

done_testing;
