@@ -0,0 +1,29 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
|
||||
const license = readFileSync(new URL('../LICENSE', import.meta.url), 'utf8');
|
||||
const copyright = readFileSync(new URL('../COPYRIGHT', import.meta.url), 'utf8');
|
||||
const readme = readFileSync(new URL('../README.md', import.meta.url), 'utf8');
|
||||
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
||||
const deb = readFileSync(new URL('../packaging/build-deb.sh', import.meta.url), 'utf8');
|
||||
const harness = JSON.parse(readFileSync(new URL('../vendor/agent-harness/package.json', import.meta.url), 'utf8'));
|
||||
|
||||
test('Jarvis is released under AGPLv3 by HoneyPeer, LLC', () => {
|
||||
assert.match(license, /GNU AFFERO GENERAL PUBLIC LICENSE/);
|
||||
assert.match(license, /Version 3, 19 November 2007/);
|
||||
assert.match(license, /END OF TERMS AND CONDITIONS/);
|
||||
assert.match(copyright, /Copyright \(C\) 2026 HoneyPeer, LLC/);
|
||||
assert.match(copyright, /GNU Affero General Public License/);
|
||||
assert.equal(pkg.license, 'AGPL-3.0-or-later');
|
||||
assert.equal(pkg.author, 'HoneyPeer, LLC');
|
||||
assert.match(readme, /Copyright \(C\) 2026 HoneyPeer, LLC/);
|
||||
assert.match(readme, /GNU Affero General Public License v3/);
|
||||
assert.match(deb, /Maintainer: HoneyPeer, LLC/);
|
||||
assert.match(deb, /usr\/share\/doc\/jarvis-qvac\/copyright/);
|
||||
});
|
||||
|
||||
test('vendored agent-harness keeps its original MIT license', () => {
|
||||
assert.equal(harness.license, 'MIT');
|
||||
assert.match(copyright, /vendor\/agent-harness remains under its\noriginal MIT license/);
|
||||
});
|
||||
Reference in New Issue
Block a user