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