diff options
Diffstat (limited to 'testdata/modulecache-tests')
-rw-r--r-- | testdata/modulecache-tests/README.txt | 19 | ||||
-rw-r--r-- | testdata/modulecache-tests/mainsubsub.scad | 2 | ||||
-rw-r--r-- | testdata/modulecache-tests/mainusingerror.scad | 3 | ||||
-rw-r--r-- | testdata/modulecache-tests/moduleoverload.scad | 2 | ||||
-rw-r--r-- | testdata/modulecache-tests/mymodule-lib.scad | 2 | ||||
-rw-r--r-- | testdata/modulecache-tests/subdir/sub.scad | 5 | ||||
-rw-r--r-- | testdata/modulecache-tests/subdir/subsub.scad | 3 |
7 files changed, 34 insertions, 2 deletions
diff --git a/testdata/modulecache-tests/README.txt b/testdata/modulecache-tests/README.txt index 214acc5..3a123e7 100644 --- a/testdata/modulecache-tests/README.txt +++ b/testdata/modulecache-tests/README.txt @@ -124,3 +124,22 @@ o rm cascade*.scad o Verify that no rerendering was triggered (the 4 objects are still there) o ./cascade2.sh o Verify that everything reloads at once without flickering + +Test 15: Correct handling of compile errors in auto-reloaded modules +-------- +o Turn on Automatic Reload and Compile +o Open mainusingerror.scad +o Verify that you get: + - Compiling library '.../error.scad'. + - Parser error in line 3: syntax error + - WARNING: Failed to compile library '.../error.scad'. + - Main file should keep compiling +o Verify that the above doesn't repeat + +Test 16: Dependency tracking of underlying dependencies +-------- +o Turn on Automatic Reload and Compile +o Open mainsubsub.scad +o Verify that you see a red cylinder +o edit subdit/subsub.scad: Change color +o Verify that color changes diff --git a/testdata/modulecache-tests/mainsubsub.scad b/testdata/modulecache-tests/mainsubsub.scad new file mode 100644 index 0000000..b87af98 --- /dev/null +++ b/testdata/modulecache-tests/mainsubsub.scad @@ -0,0 +1,2 @@ +use <subdir/sub.scad> +sub(); diff --git a/testdata/modulecache-tests/mainusingerror.scad b/testdata/modulecache-tests/mainusingerror.scad new file mode 100644 index 0000000..626f4aa --- /dev/null +++ b/testdata/modulecache-tests/mainusingerror.scad @@ -0,0 +1,3 @@ +//mainusingerror.scad +echo(version()); +use <error.scad> diff --git a/testdata/modulecache-tests/moduleoverload.scad b/testdata/modulecache-tests/moduleoverload.scad index 1928715..f8ebc6a 100644 --- a/testdata/modulecache-tests/moduleoverload.scad +++ b/testdata/modulecache-tests/moduleoverload.scad @@ -1,7 +1,7 @@ use <mymodule-lib.scad> module mymodule() { - sphere(); + sphere(5); } mymodule(); diff --git a/testdata/modulecache-tests/mymodule-lib.scad b/testdata/modulecache-tests/mymodule-lib.scad index 9d68581..c6f30f7 100644 --- a/testdata/modulecache-tests/mymodule-lib.scad +++ b/testdata/modulecache-tests/mymodule-lib.scad @@ -1,3 +1,3 @@ module mymodule() { - cylinder(center=true); + cylinder(r=5, center=true); } diff --git a/testdata/modulecache-tests/subdir/sub.scad b/testdata/modulecache-tests/subdir/sub.scad new file mode 100644 index 0000000..bf0fc44 --- /dev/null +++ b/testdata/modulecache-tests/subdir/sub.scad @@ -0,0 +1,5 @@ +use <subsub.scad> + +module sub() { + subsub(); +} diff --git a/testdata/modulecache-tests/subdir/subsub.scad b/testdata/modulecache-tests/subdir/subsub.scad new file mode 100644 index 0000000..c79d608 --- /dev/null +++ b/testdata/modulecache-tests/subdir/subsub.scad @@ -0,0 +1,3 @@ +module subsub() { + color("red") cylinder(r = 10, h = 5); +} |