blob: 28d3aae6bb06cdf452d344205fd61b14e5f47675 [file] [log] [blame]
Leopold Schabela4516f92019-12-04 20:27:05 +00001sh_library(
2 name = "vm_deps",
Leopold Schabel5c80aca2019-10-22 15:48:58 +02003 data = [
Serge Bazanskidcb3a562020-02-03 13:44:44 +01004 "//core:image",
5 "//core:swtpm_data",
Serge Bazanski2fb13a82020-02-11 12:41:37 +01006 "//third_party/edk2:firmware",
Leopold Schabel83dc2852020-01-07 21:57:08 +01007 ],
Leopold Schabela4516f92019-12-04 20:27:05 +00008)
9
10sh_binary(
11 name = "launch",
12 srcs = ["launch.sh"],
13 deps = [":vm_deps"],
14)
15
16sh_library(
17 name = "test_deps",
18 data = [
19 ":launch",
Serge Bazanski2fb13a82020-02-11 12:41:37 +010020 "//third_party/kubernetes:kubectl",
Leopold Schabel5c80aca2019-10-22 15:48:58 +020021 ],
Leopold Schabel5c80aca2019-10-22 15:48:58 +020022)
Leopold Schabel383d4bb2019-11-14 22:53:58 +010023
24sh_test(
25 name = "test_boot",
26 size = "small",
27 srcs = ["test_boot.sh"],
Leopold Schabel7670e672019-11-15 13:49:53 +010028 # expects wants a pty, which do not exist in the sandbox
Leopold Schabel383d4bb2019-11-14 22:53:58 +010029 tags = ["local"],
Leopold Schabel83dc2852020-01-07 21:57:08 +010030 deps = [
31 ":test_deps",
32 ":vm_deps",
33 ],
Leopold Schabel383d4bb2019-11-14 22:53:58 +010034)