Commit 1797b426 authored by twanvl's avatar twanvl

more testing stuff

parent df4aa241
......@@ -54,8 +54,9 @@ sub test_stylesheet {
# Write script
my $script = "$tempname.mse-script";
mkdir("cards-out");
file_set_contents($script, "write_image_file(set.cards[0],file:\"cards-out/$basename.png\");1");
file_set_contents($script, "write_image_file(set.cards[0],file:\"cards-out/blank-$basename.png\");1");
# Run!
run_script_test($script, $setname);
# Cleanup
......@@ -63,6 +64,8 @@ sub test_stylesheet {
unlink($script);
unlink("$tempname.out");
print "\n";
# TODO: Compare the card against the expected output?
}
my $package_dir = "../../data";
......
......@@ -8,7 +8,7 @@ use strict;
use File::Basename;
# -----------------------------------------------------------------------------
# Utilities for testing scripts
# Invoking Magic Set Editor
# -----------------------------------------------------------------------------
# Find magicseteditor executable
......@@ -43,6 +43,10 @@ sub run_script_test {
#my $expected = basename($script,".mse-script") . ".out.expected";
}
# -----------------------------------------------------------------------------
# Invoking Magic Set Editor
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Dummy sets
# -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment