mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix tests
This commit is contained in:
16
Makefile
16
Makefile
@@ -47,7 +47,7 @@ endif
|
|||||||
|
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
|
|
||||||
.PHONY: all metadata install clean format cli uis ui reflash deb $(IMAGE_TYPE) squashfs sudo wormhole wormhole-deb test
|
.PHONY: all metadata install clean format cli uis ui reflash deb $(IMAGE_TYPE) squashfs sudo wormhole wormhole-deb test test-core test-sdk test-container-runtime
|
||||||
|
|
||||||
all: $(ALL_TARGETS)
|
all: $(ALL_TARGETS)
|
||||||
|
|
||||||
@@ -89,10 +89,16 @@ clean:
|
|||||||
format:
|
format:
|
||||||
cd core && cargo +nightly fmt
|
cd core && cargo +nightly fmt
|
||||||
|
|
||||||
test: $(CORE_SRC) $(ENVIRONMENT_FILE)
|
test: | test-core test-sdk test-container-runtime
|
||||||
(cd core && cargo build --features=test && cargo test --features=test)
|
|
||||||
(cd sdk && make test)
|
test-core: $(CORE_SRC) $(ENVIRONMENT_FILE)
|
||||||
(cd container-runtime && npm ci && npm test)
|
cd core && cargo build --features=test && cargo test --features=test
|
||||||
|
|
||||||
|
test-sdk: $(shell git ls-files sdk) sdk/lib/osBindings
|
||||||
|
cd sdk && make test
|
||||||
|
|
||||||
|
test-container-runtime: container-runtime/node_modules $(shell git ls-files container-runtime/src) container-runtime/package.json container-runtime/tsconfig.json
|
||||||
|
cd container-runtime && npm test
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
cd core && ./install-cli.sh
|
cd core && ./install-cli.sh
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ exports[`transformConfigSpec transformConfigSpec(embassyPages) 1`] = `
|
|||||||
"required": false,
|
"required": false,
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"values": {
|
"values": {
|
||||||
"filebrowser": undefined,
|
"filebrowser": "filebrowser",
|
||||||
"nextcloud": undefined,
|
"nextcloud": "nextcloud",
|
||||||
},
|
},
|
||||||
"warning": null,
|
"warning": null,
|
||||||
},
|
},
|
||||||
@@ -192,8 +192,8 @@ exports[`transformConfigSpec transformConfigSpec(embassyPages) 1`] = `
|
|||||||
"required": false,
|
"required": false,
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"values": {
|
"values": {
|
||||||
"filebrowser": undefined,
|
"filebrowser": "filebrowser",
|
||||||
"nextcloud": undefined,
|
"nextcloud": "nextcloud",
|
||||||
},
|
},
|
||||||
"warning": null,
|
"warning": null,
|
||||||
},
|
},
|
||||||
|
|||||||
3
sdk/lib/osBindings/ApiState.ts
Normal file
3
sdk/lib/osBindings/ApiState.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type ApiState = "error" | "initializing" | "running"
|
||||||
3
sdk/lib/osBindings/EchoParams.ts
Normal file
3
sdk/lib/osBindings/EchoParams.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type EchoParams = { message: string }
|
||||||
@@ -15,6 +15,7 @@ export { AlpnInfo } from "./AlpnInfo"
|
|||||||
export { AnySignature } from "./AnySignature"
|
export { AnySignature } from "./AnySignature"
|
||||||
export { AnySigningKey } from "./AnySigningKey"
|
export { AnySigningKey } from "./AnySigningKey"
|
||||||
export { AnyVerifyingKey } from "./AnyVerifyingKey"
|
export { AnyVerifyingKey } from "./AnyVerifyingKey"
|
||||||
|
export { ApiState } from "./ApiState"
|
||||||
export { AttachParams } from "./AttachParams"
|
export { AttachParams } from "./AttachParams"
|
||||||
export { BackupProgress } from "./BackupProgress"
|
export { BackupProgress } from "./BackupProgress"
|
||||||
export { BackupTargetFS } from "./BackupTargetFS"
|
export { BackupTargetFS } from "./BackupTargetFS"
|
||||||
@@ -42,6 +43,7 @@ export { DepInfo } from "./DepInfo"
|
|||||||
export { Description } from "./Description"
|
export { Description } from "./Description"
|
||||||
export { DestroyOverlayedImageParams } from "./DestroyOverlayedImageParams"
|
export { DestroyOverlayedImageParams } from "./DestroyOverlayedImageParams"
|
||||||
export { Duration } from "./Duration"
|
export { Duration } from "./Duration"
|
||||||
|
export { EchoParams } from "./EchoParams"
|
||||||
export { EncryptedWire } from "./EncryptedWire"
|
export { EncryptedWire } from "./EncryptedWire"
|
||||||
export { ExecuteAction } from "./ExecuteAction"
|
export { ExecuteAction } from "./ExecuteAction"
|
||||||
export { ExportActionParams } from "./ExportActionParams"
|
export { ExportActionParams } from "./ExportActionParams"
|
||||||
|
|||||||
Reference in New Issue
Block a user