R4: Originality and licence audit
- docs/ASSET_PROVENANCE.md traces each of the 162 files under assets/ to
the script that generates it, or to its hand-written original (the app
icon's SVG). It's written by tools/provenance.gd, and the new
test_asset_provenance fails on a file with no rule, a rule naming a
generator that doesn't exist, or a stale document. The release package
and the .deb now ship it next to PROVENANCE.md (make dist-check and
make deb-check pass).
- Searched code, data, assets, docs and packaging for commercial game
names, characters, item and place names: none. The only matches are the
genre wording ("battle royale") and, in the DEVLOG, an open-source engine
another task uses. Item and place names are Tidewall's own (dock carbine,
fowling piece, tern chapel...).
- Licence notices: the Godot engine's licence and its third-party notices
(ENGINE-LICENSES.txt, generated from the engine) already ship in the
tarball and the .deb's copyright; there are no other libraries, addons or
fonts. CREDITS.md links the new trace.
- Name check for "Tidewall" noted on R7 (#66).
Closes #63
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
extends TestCase
|
||||
|
||||
## R4: every file under assets/ is traced to a generating script in this repository or
|
||||
## to an original hand-written source, and docs/ASSET_PROVENANCE.md lists them all.
|
||||
|
||||
const Provenance = preload("res://tools/provenance.gd")
|
||||
|
||||
|
||||
func test_every_asset_has_a_source_that_exists() -> void:
|
||||
var rows: Array[Array] = Provenance.rows()
|
||||
assert_true(rows.size() > 100, "assets/ was read (%d files)" % rows.size())
|
||||
var found: Array[String] = Provenance.problems_with(rows)
|
||||
assert_eq(found, [] as Array[String], "\n".join(found))
|
||||
|
||||
|
||||
func test_the_document_is_up_to_date() -> void:
|
||||
var written: String = FileAccess.get_file_as_string(Provenance.DOC)
|
||||
assert_eq(written, Provenance.render(), "regenerate with: tools/godot.sh --script res://tools/provenance.gd")
|
||||
|
||||
|
||||
func test_an_unknown_file_is_caught() -> void:
|
||||
var table: Array[Array] = [["audio/sample_pack.wav", "", ""], ["models/items/x.obj", "tools/models/nowhere.py", ""]]
|
||||
assert_eq(Provenance.problems_with(table).size(), 2)
|
||||
@@ -0,0 +1 @@
|
||||
uid://6mvjs0qd6apg
|
||||
Reference in New Issue
Block a user