create PackageManifest.kt and get test working
This commit is contained in:
13
daemon/build.gradle.kts
Normal file
13
daemon/build.gradle.kts
Normal file
@@ -0,0 +1,13 @@
|
||||
plugins {
|
||||
id("buildsrc.convention.kotlin-jvm")
|
||||
kotlin("jvm")
|
||||
application
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":api"))
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = "app.hakurei.planterette.PlanteretteKt"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package app.hakurei.planterette
|
||||
|
||||
fun main() {
|
||||
|
||||
}
|
||||
124
daemon/src/test/resources/debian.json
Normal file
124
daemon/src/test/resources/debian.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"id": "org.debian",
|
||||
"path": "/bin/bash",
|
||||
"args": [
|
||||
"bash"
|
||||
],
|
||||
"enablements": 13,
|
||||
"session_bus": {
|
||||
"see": null,
|
||||
"talk": [
|
||||
"org.freedesktop.Notifications",
|
||||
"org.freedesktop.FileManager1",
|
||||
"org.freedesktop.ScreenSaver"
|
||||
],
|
||||
"own": null,
|
||||
"call": null,
|
||||
"broadcast": null,
|
||||
"filter": true
|
||||
},
|
||||
"system_bus": {
|
||||
"see": null,
|
||||
"talk": null,
|
||||
"own": null,
|
||||
"call": null,
|
||||
"broadcast": null,
|
||||
"filter": true
|
||||
},
|
||||
"username": "chronos",
|
||||
"shell": "/bin/bash",
|
||||
"data": "/tmp/chronos",
|
||||
"dir": "/.hakurei/home",
|
||||
"identity": 9,
|
||||
"groups": null,
|
||||
"container": {
|
||||
"hostname": "debian",
|
||||
"seccomp_flags": 0,
|
||||
"seccomp_presets": 0,
|
||||
"devel": true,
|
||||
"userns": true,
|
||||
"net": true,
|
||||
"tty": true,
|
||||
"multiarch": true,
|
||||
"env": null,
|
||||
"map_real_uid": true,
|
||||
"filesystem": [
|
||||
{
|
||||
"dst": "/boot",
|
||||
"src": "/mnt/debian/boot"
|
||||
},
|
||||
{
|
||||
"dst": "/home",
|
||||
"src": "/mnt/debian/home"
|
||||
},
|
||||
{
|
||||
"dst": "/media",
|
||||
"src": "/mnt/debian/media"
|
||||
},
|
||||
{
|
||||
"dst": "/mnt",
|
||||
"src": "/mnt/debian/mnt"
|
||||
},
|
||||
{
|
||||
"dst": "/opt",
|
||||
"src": "/mnt/debian/opt"
|
||||
},
|
||||
{
|
||||
"dst": "/root",
|
||||
"src": "/mnt/debian/root"
|
||||
},
|
||||
{
|
||||
"dst": "/srv",
|
||||
"src": "/mnt/debian/srv"
|
||||
},
|
||||
{
|
||||
"dst": "/usr",
|
||||
"src": "/mnt/debian/usr"
|
||||
},
|
||||
{
|
||||
"dst": "/var",
|
||||
"src": "/mnt/debian/var"
|
||||
},
|
||||
{
|
||||
"src": "/sys/block"
|
||||
},
|
||||
{
|
||||
"src": "/sys/bus"
|
||||
},
|
||||
{
|
||||
"src": "/sys/class"
|
||||
},
|
||||
{
|
||||
"src": "/sys/dev"
|
||||
},
|
||||
{
|
||||
"src": "/sys/devices"
|
||||
},
|
||||
{
|
||||
"src": "/dev/dri",
|
||||
"dev": true
|
||||
}
|
||||
],
|
||||
"symlink": [
|
||||
[
|
||||
"usr/bin",
|
||||
"/bin"
|
||||
],
|
||||
[
|
||||
"usr/lib",
|
||||
"/lib"
|
||||
],
|
||||
[
|
||||
"usr/lib64",
|
||||
"/lib64"
|
||||
],
|
||||
[
|
||||
"usr/sbin",
|
||||
"/sbin"
|
||||
]
|
||||
],
|
||||
"etc": "/mnt/debian/etc",
|
||||
"auto_etc": false,
|
||||
"cover": null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user