Commit 1797b426 authored by twanvl's avatar twanvl

more testing stuff

parent df4aa241
...@@ -54,8 +54,9 @@ sub test_stylesheet { ...@@ -54,8 +54,9 @@ sub test_stylesheet {
# Write script # Write script
my $script = "$tempname.mse-script"; my $script = "$tempname.mse-script";
mkdir("cards-out"); 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); run_script_test($script, $setname);
# Cleanup # Cleanup
...@@ -63,6 +64,8 @@ sub test_stylesheet { ...@@ -63,6 +64,8 @@ sub test_stylesheet {
unlink($script); unlink($script);
unlink("$tempname.out"); unlink("$tempname.out");
print "\n"; print "\n";
# TODO: Compare the card against the expected output?
} }
my $package_dir = "../../data"; my $package_dir = "../../data";
......
...@@ -8,7 +8,7 @@ use strict; ...@@ -8,7 +8,7 @@ use strict;
use File::Basename; use File::Basename;
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Utilities for testing scripts # Invoking Magic Set Editor
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Find magicseteditor executable # Find magicseteditor executable
...@@ -43,6 +43,10 @@ sub run_script_test { ...@@ -43,6 +43,10 @@ sub run_script_test {
#my $expected = basename($script,".mse-script") . ".out.expected"; #my $expected = basename($script,".mse-script") . ".out.expected";
} }
# -----------------------------------------------------------------------------
# Invoking Magic Set Editor
# -----------------------------------------------------------------------------
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Dummy sets # 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