This is a collection of IFC files that are useful for testing IfcOpenShell.
Files that relate to an issue are prefixed with the corresponding issue number.
Files that are augmented with quantity data from IfcOpenShell are suffixed with --augmented.
The goal is to be able to run test conversions with the --validate option to discover geometry regressions. To augment a file with quantity data, run IfcConvert with --calculate-quantities:
./IfcConvert example.ifc example--augmented.ifc --calculate-quantities
Sometimes one element of a file legitimately produces what a regression check would otherwise flag, while the rest of the file must stay clean. Rather than accepting errors for the whole file, the expected outcome is authored into the file on that element: a property set named IfcOpenShellAccepted with one property per accepted finding. The property name is the finding code, its value an IfcText with the reason:
#11714=IFCPROPERTYSINGLEVALUE('NonManifold',$,IFCTEXT('The Body is a SurfaceModel of several IfcFacetedBreps that share edges ...'),$);
#11715=IFCPROPERTYSET('0djh5coNL84O0Mo$5IeMHc',#34,'IfcOpenShellAccepted',$,(#11714));
#11716=IFCRELDEFINESBYPROPERTIES('12ZRvPSaL7Ww0YNbYduoKr',#34,$,$,(#3281,#6910,#9996),#11715);
The set may also sit in a type object's HasPropertySets, in which case it covers every occurrence of that type. Finding codes: NonManifold, OpenMesh, InvertedWinding, FlippedEdges, NoGeometry, VolumeMismatch, AreaMismatch, MissingSubtraction, ElementError. A check that honours the set reports the matching finding as accepted, with the reason, and should report an acceptance whose finding no longer occurs, so that stale ones get removed. A file that carries such a set is --augmented, like one with authored quantities.
Files that are expected to log errors in IfcConvert are suffixed with --accept-errors. This is useful to state that there are known irregularities in a file, but that it still should be tested for segfaults. Examples are files that error in other viewers, or when other viewers don't agree on the geometry.
Files that are prone to timeout have the file extension .ifc_ to be able to easily exclude them from general regression testing.
It could be useful to tag the file name with the original issue type. This is not an exact science, as the issue type often changes with different versions of IfcOpenShell. Examples of common issue types:
--segfault--abort--timeout--no-geometry--wrong-geometry--missing-subtractions
To easily distinguish between files in a list, it is useful when the the IFC object type is tagged in the file name. E.g. 342--beam--segfault.ifc.