@dads-framework/testing-native-linux-arm64-gnu 0.1.0 → 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/README.md +66 -1
- package/bin/dad-test +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,69 @@
|
|
|
1
1
|
# Dads Testing native runtime (Linux arm64, glibc)
|
|
2
2
|
|
|
3
3
|
This package contains the platform-native `dad-test` executable used by
|
|
4
|
-
`@dads-framework/testing` on Linux arm64 with glibc.
|
|
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.
|
package/bin/dad-test
CHANGED
|
Binary file
|