Skip to content

Run the tests in CI on all three systems; add the public fixture folder (#34, part of #33) - #62

Merged
mahach666 merged 12 commits into
feat/37-open-streamfrom
feat/33-34-ci-and-public-fixtures
Nov 20, 2026
Merged

mahach666 merged 12 commits into
feat/37-open-streamfrom
feat/33-34-ci-and-public-fixtures

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

What this does

#34 — CI on Linux and macOS (closes #34)

The build job's matrix becomes [windows-latest, ubuntu-latest, macos-latest]: build, test (both net8.0 and net10.0) and pack run on all three systems; the separate Linux build-only job is gone, since the full job covers it. The README sentence "Tests currently run on Windows" becomes "Tests run on Windows, Linux and macOS". Path handling, culture and line-ending differences are now exercised on every push and PR.

#33 — public fixture folder (infrastructure; the issue stays open for the drawings)

  • test-files/public/ is the home for committed redistributable test drawings. Its README states the rules: each file records its origin, the licence that allows redistribution in this MIT repository, and its contents, so tests can be written against it; files with a doubtful licence stay out, and the private-folder mechanism remains for larger local sets.
  • TestFiles.Roots() adds that folder to the search (next to DWGIO_TEST_FILES and test_files), so the first committed drawing immediately turns skipped fixture tests into real runs on all three CI systems.
  • docs/test-fixtures.md documents the new search order and links the folder README.

The issue stays open until at least one redistributable drawing per supported release is committed — creating valid DWGs from scratch or sourcing public-domain ones needs its own careful work (see the folder README's qualification rules).

Tests

Full suite unchanged and green (176 passed, 8 skipped — private fixtures plus the #37 fixture gate); the CI change itself is exercised by this PR's workflow run on all three runners.

dependabot Bot and others added 4 commits November 18, 2026 01:46
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.404
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…#34, #33)

The build job now runs build+test+pack on windows-latest,
ubuntu-latest and macos-latest for both target frameworks, replacing
the Linux build-only job; the README sentence about Windows-only
tests is updated.

test-files/public is the folder for committed redistributable test
drawings, with the origin and licence recorded next to each file;
TestFiles searches it alongside DWGIO_TEST_FILES and test_files.
The drawings themselves follow (#33 stays open until at least one
drawing per supported release is committed).
#39)

The fixed type codes come from libredwg's include/dwg.h and live in
the public DwgObjectTypes: the name and the entity-or-object flag of
every fixed code 0x01-0x52 plus the proxy codes. Wrong names are
corrected (0x21 is SHAPE, ELLIPSE is 0x23; VERTEX_0B is VERTEX_3D),
the missing ones are added (MINSERT, the seven DIMENSION variants,
POLYLINE_PFACE/MESH, SOLID, TRACE, REGION, BODY, TOLERANCE, the
table and control objects, LWPOLYLINE, PLACEHOLDER, VBA_PROJECT,
LAYOUT, PROXY_ENTITY/OBJECT), OLE2FRAME and LWPOLYLINE count as
entities, and class-defined codes (500+) are reported as Class_502
until the class list is decoded (#21).

DwgObjectInfo.TypeName, the JSON byType keys and the type counts of
dwgio inspect show the names. The README and docs/test-fixtures.md
temper the AC1018 claim: implemented, not yet verified on a real
drawing (#39).
docfx builds only docs/ and reports the file link outside its scope
as an error; the GitHub blob URL works everywhere.
Same as the fix on the CI/fixture PR: docfx builds only docs/ and
reports the out-of-scope file link as an error.
WriteObj replaced the MTL first and the OBJ second, so a failure of
the second move left the old OBJ naming the new MTL. Now the old MTL
is first renamed aside, the new MTL moves in, and the OBJ - which
names that MTL in its mtllib - moves in last; on a failure at either
move the old MTL steps back in (or a failed fresh export leaves no
MTL behind) and the previous pair survives together.

Tests inject both failures: the OBJ destination held open
exclusively (Windows file lock; on Unix the rename would succeed, so
the test skips there) and the old MTL held open, plus a
platform-independent destination-as-directory case for the fresh
export.
@mahach666
mahach666 merged commit e7d26ef into feat/37-open-stream Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant