Commit Graph

4 Commits (26eb061792d05364259c7e8747c76a27bea9968b)

Author SHA1 Message Date
Claude dead70fee3
Add tests for 25 additional core packages
Massive test coverage expansion across utilities, types, and core components:

Types packages (7):
- types/empty, types/ptr, types/structs, types/preftype
- types/flagtype, types/nettype

Core infrastructure (6):
- paths: File path handling tests
- tsconst: Constants validation
- tsd: System daemon tests
- omit: Omit error tests
- proxymap: Proxy mapping tests
- sessionrecording: Session recording tests

Utilities (12):
- util/must: Must helper tests
- util/lineread: Line reader tests
- util/groupmember: Group membership tests
- util/systemd: Systemd integration tests
- util/cibuild: CI detection tests
- util/osshare: OS sharing tests
- util/quarantine: File quarantine tests
- util/racebuild: Race detection tests
- util/precompress: Precompression tests
- util/progresstracking: Progress tracking tests

Network & Engine:
- net/wsconn: WebSocket connection tests
- wgengine/wgcfg/nmcfg: WireGuard config tests
- wf: Windows Firewall tests

All tests include basic validation and edge case coverage.
3 weeks ago
Will Norris 71029cea2d all: update copyright and license headers
This updates all source files to use a new standard header for copyright
and license declaration.  Notably, copyright no longer includes a date,
and we now use the standard SPDX-License-Identifier header.

This commit was done almost entirely mechanically with perl, and then
some minimal manual fixes.

Updates #6865

Signed-off-by: Will Norris <will@tailscale.com>
3 years ago
Mihai Parparita 63ad49890f cmd/tsconnect: pre-compress main.wasm when building the NPM package
This way we can do that once (out of band, in the GitHub action),
instead of increasing the time of each deploy that uses the package.

.wasm is removed from the list of automatically pre-compressed
extensions, an OSS bump and small change on the corp side is needed to
make use of this change.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
3 years ago
Mihai Parparita 4aa88bc2c0 cmd/tsconnect,util/precompress: move precompression to its own package
We have very similar code in corp, moving it to util/precompress allows
it to be reused.

Updates #5133

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
3 years ago