@dads-framework/testing-native-linux-arm64-gnu 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +68 -2
- package/RUST_STANDARD_LIBRARY_NOTICES.html +8266 -0
- package/THIRD_PARTY_NOTICES.txt +5624 -0
- package/bin/dad-test +0 -0
- package/package.json +38 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bryton Cooper
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dads Testing native runtime (Linux arm64, glibc)
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package contains the platform-native `dad-test` executable used by
|
|
4
|
+
`@dads-framework/testing` on Linux arm64 with glibc.
|
|
5
|
+
|
|
6
|
+
## Try it
|
|
7
|
+
|
|
8
|
+
Use a POSIX shell and Node.js 22 or newer in an empty directory on Linux arm64 with glibc.
|
|
9
|
+
Normally, npm selects this runtime when you install
|
|
10
|
+
[`@dads-framework/testing`](../../core/README.md). Use this direct install
|
|
11
|
+
after the public release when optional dependencies are unavailable.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node -p 'process.platform + "-" + process.arch'
|
|
15
|
+
getconf GNU_LIBC_VERSION
|
|
16
|
+
npm init -y
|
|
17
|
+
npm install --save-dev @dads-framework/testing-native-linux-arm64-gnu
|
|
18
|
+
binary=$(node -p 'require.resolve("@dads-framework/testing-native-linux-arm64-gnu")')
|
|
19
|
+
printf '%s\n' "$binary"
|
|
20
|
+
test -x "$binary" && printf 'Executable found\n'
|
|
21
|
+
|
|
22
|
+
cat > dads.testing.json <<'JSON'
|
|
23
|
+
{
|
|
24
|
+
"schemaVersion": 1,
|
|
25
|
+
"workspace": { "root": ".", "fullFallback": { "taskIds": ["app:test"] } },
|
|
26
|
+
"projects": [{ "id": "app", "root": ".", "fallbackDependencies": [] }],
|
|
27
|
+
"tasks": [{
|
|
28
|
+
"id": "app:test",
|
|
29
|
+
"project": "app",
|
|
30
|
+
"kind": "test",
|
|
31
|
+
"execution": { "executable": "node", "args": ["--version"], "cwd": "." },
|
|
32
|
+
"dependsOn": [],
|
|
33
|
+
"impact": { "mode": "always" }
|
|
34
|
+
}]
|
|
35
|
+
}
|
|
36
|
+
JSON
|
|
37
|
+
node -p 'JSON.stringify({ schemaVersion: 1, operation: "plan", workspaceRoot: process.cwd(), all: true })' | "$binary"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The host check prints `linux-arm64` and a glibc version. The binary path ends in
|
|
41
|
+
`bin/dad-test`, followed by `Executable found` from the file check.
|
|
42
|
+
The native response contains `"ok":true` and a task with `"id":"app:test"`
|
|
43
|
+
and `"decision":"run"`. A plan shows which tasks would run.
|
|
44
|
+
|
|
45
|
+
In the repository, the
|
|
46
|
+
[native release workflow](../../../../.github/workflows/testing-native-release.yml)
|
|
47
|
+
packs this platform's package from `packages/testing/native/linux-arm64-gnu/`
|
|
48
|
+
and installs the tarball with the facade in a fresh `testing-consumer`
|
|
49
|
+
directory to check planning through the installed artifact.
|
|
50
|
+
|
|
51
|
+
## Commands
|
|
52
|
+
|
|
53
|
+
The native executable reads one JSON request from standard input. Set
|
|
54
|
+
`workspaceRoot` to an absolute directory containing `dads.testing.json`. It accepts
|
|
55
|
+
`plan` and `run` as the `operation` field. For the flag-based CLI, including
|
|
56
|
+
`init` and `explain`, use the
|
|
57
|
+
[testing facade](../../core/README.md#commands).
|
|
58
|
+
|
|
59
|
+
## What it refuses to do
|
|
60
|
+
|
|
61
|
+
This build supports Linux arm64 with glibc only. Use a glibc environment to run it on Linux.
|
|
62
|
+
|
|
63
|
+
## Contract
|
|
64
|
+
|
|
65
|
+
The executable returns a JSON response with `schemaVersion` and `ok`. On
|
|
66
|
+
success, `result.plan` describes task selection. An invalid request returns
|
|
67
|
+
`ok: false`, an `error` message, and exit code 1. Use the
|
|
68
|
+
[testing facade](../../core/README.md#contract) for the supported application
|
|
69
|
+
interface.
|