mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-04 03:06:34 +08:00
add test dev framework
This commit is contained in:
parent
a0675cbf9c
commit
0772b3d159
@ -3,7 +3,6 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Slic3r::XS;
|
|
||||||
use Test::More;
|
use Test::More;
|
||||||
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
|
use IO::Uncompress::Unzip qw(unzip $UnzipError) ;
|
||||||
use Cwd qw(abs_path);
|
use Cwd qw(abs_path);
|
||||||
@ -11,6 +10,16 @@ use File::Basename qw(dirname);
|
|||||||
|
|
||||||
require Encode;
|
require Encode;
|
||||||
|
|
||||||
|
#plan skip_all => 'temporarily disabled';
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
use FindBin;
|
||||||
|
use lib "$FindBin::Bin/../../lib";
|
||||||
|
use local::lib "$FindBin::Bin/../../local-lib";
|
||||||
|
}
|
||||||
|
|
||||||
|
use Slic3r::XS;
|
||||||
|
|
||||||
# Removes '\n' and '\r\n' from a string.
|
# Removes '\n' and '\r\n' from a string.
|
||||||
sub clean {
|
sub clean {
|
||||||
my $text = shift;
|
my $text = shift;
|
||||||
@ -45,9 +54,6 @@ my $expected_relationships = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n"
|
|||||||
# Delete the created file.
|
# Delete the created file.
|
||||||
unlink($output_path);
|
unlink($output_path);
|
||||||
}
|
}
|
||||||
done_testing();
|
|
||||||
|
|
||||||
__END__
|
|
||||||
|
|
||||||
# Test 2: Check read metadata/ objects/ components/ build items w/o or with tansformation matrics.
|
# Test 2: Check read metadata/ objects/ components/ build items w/o or with tansformation matrics.
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user