Skip to content
This repository
Browse code

Added test for circular includes

  • Loading branch information...
commit ebe59a0e4d10f1757ff0bd4c1cc6fe8fc2c2ee67 1 parent 85bc16f
Marius Kintel kintel authored
26 testdata/modulecache-tests/README.txt
@@ -5,13 +5,13 @@ Compile OpenSCAD in debug mode. This will give console output related to module
5 5 /path/to/used.scad: 0x103612f70
6 6 Module cache size: 1 modules
7 7
8   -Test1:
  8 +Test1: Basic cache
9 9 ------
10 10
11 11 o Open use.scad
12 12 o Compile twice (F5) - check that module reference is the same
13 13
14   -Test2:
  14 +Test2: Dependency tracking of USE
15 15 ------
16 16
17 17 o Open use.scad
@@ -19,42 +19,42 @@ o Compile (F5)
19 19 o touch used.scad
20 20 o Compile (F5) - check that the module reference changed
21 21
22   -Test3:
  22 +Test3: MCAD
23 23 ------
24 24
25 25 o Open use-mcad.scad
26 26 o Compile (F5)
27 27 o Check that you get a rounded box
28 28
29   -Test4:
  29 +Test4: USE Non-existing file
30 30 ------
31 31
32 32 o Open usenonexsistingfile.scad
33 33 o Compile (F5)
34 34 o Verify that you get: WARNING: Can't open 'use' file 'nofile.scad'.
35 35
36   -Test5:
  36 +Test5: Overload USEd module
37 37 ------
38 38
39 39 o Open moduleoverload.scad
40 40 o Compile (F5)
41 41 o Verify that you get a sphere rather than a cylinder
42 42
43   -Test6:
  43 +Test6: Recursive USE
44 44 ------
45 45
46 46 o Open recursivemain.scad
47 47 o Compile (F5)
48 48 o Verify that OpenSCAD won't hang or crash
49 49
50   -Test7:
  50 +Test7: Circular USE
51 51 ------
52 52
53 53 o Open circularmain.scad
54 54 o Compile (F5)
55 55 o Verify that OpenSCAD won't hang or crash
56 56
57   -Test8:
  57 +Test8: Dependency tracking of common file USEd by multiple modules
58 58 ------
59 59
60 60 o Open multiplemain.scad
@@ -64,7 +64,7 @@ o Edit multipleB.scad:
64 64 + cube(2.5*F(), center=true);
65 65 o Reload and Compile (F4) - verify that the cube got larger
66 66
67   -Test9:
  67 +Test9: Dependency tracking of file included from module
68 68 ------
69 69
70 70 o Open includefrommodule.scad
@@ -72,4 +72,10 @@ o Compile (F5) - Verify that you get a circular disc
72 72 o Edit radius.scad: Change RADIUS
73 73 o Compile (F5) - Verify that the disc changed size
74 74
75   -FIXME: Test circular include
  75 +Test9: Circular include
  76 +------
  77 +
  78 +o Open circularincludemain.scad
  79 +o Compile (F5)
  80 +o Verify that OpenSCAD won't hang or crash
  81 +
1  testdata/modulecache-tests/circularincludefirst.scad
... ... @@ -0,0 +1 @@
  1 +include <circularincludesecond.scad>
1  testdata/modulecache-tests/circularincludemain.scad
... ... @@ -0,0 +1 @@
  1 +include <circularincludefirst.scad>
1  testdata/modulecache-tests/circularincludesecond.scad
... ... @@ -0,0 +1 @@
  1 +include <circularincludefirst.scad>

0 comments on commit ebe59a0

Please sign in to comment.
Something went wrong with that request. Please try again.