Skip to content

Commit

Permalink
[TEST] prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldrin committed Oct 22, 2012
1 parent a9ff529 commit 401dedf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
8 changes: 4 additions & 4 deletions t/01-opencl-convenient.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use strict;
use warnings;
use 5.010;

use Test::More tests => 1;
use Test::More tests => 2;

use lib 't/lib/';

BEGIN { use_ok('OpenCL::Convenient') }
BEGIN { use_ok('OpenCL::Convenient::Testing') }


my $retval = OpenCL::Convenient::prepare('test');
my $retval = OpenCL::Convenient::Testing::prepare('testing');

is($retval, undef, 'OpenCL preparation finished');
is(ref $retval, 'OpenCL::Kernel', 'OpenCL preparation finished');
10 changes: 10 additions & 0 deletions t/lib/OpenCL/Convenient/Testing.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package OpenCL::Convenient::Testing;

use OpenCL::Convenient;

sub prepare
{
OpenCL::Convenient::prepare(@_);
}

1; # End of OpenCL::Convenient::Testing
4 changes: 4 additions & 0 deletions t/lib/auto/OpenCL/Convenient/Testing/testing.cl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__kernel void testing()
{
return;
}
4 changes: 0 additions & 4 deletions t/lib/auto/main/test.cl

This file was deleted.

0 comments on commit 401dedf

Please sign in to comment.