Files
santa/Testing/integration/BUILD
Nick Gregory 7530b8f5c1 Add E2E testing for usb (#1214)
* e2e test usb mounting

* no poweroff

* no start

* drive usb via sync server since its up

sudo santactl status

sudo?

* revert nostart/nopoweroff

* bump VMCLI minimum os version
2023-11-01 11:44:00 -04:00

45 lines
1.0 KiB
Python

load("//:helper.bzl", "run_command", "santa_unit_test")
package(default_visibility = ["//:santa_package_group"])
licenses(["notice"])
santa_unit_test(
name = "SNTExecTest",
srcs = [
"SNTExecTest.m",
],
data = [
"//Source/santad/testdata:binaryrules_testdata",
],
minimum_os_version = "11.0",
deps = [],
)
test_suite(
name = "integration_tests",
tests = [
":SNTExecTest",
],
)
run_command(
name = "install_profile",
cmd = "osascript $${BUILD_WORKSPACE_DIRECTORY}/Testing/integration/install_profile.scpt $${BUILD_WORKSPACE_DIRECTORY}/$$1",
)
run_command(
name = "allow_sysex",
cmd = "osascript $${BUILD_WORKSPACE_DIRECTORY}/Testing/integration/allow_sysex.scpt",
)
run_command(
name = "dismiss_santa_popup",
cmd = "osascript $${BUILD_WORKSPACE_DIRECTORY}/Testing/integration/dismiss_santa_popup.scpt",
)
run_command(
name = "dismiss_usb_popup",
cmd = "osascript $${BUILD_WORKSPACE_DIRECTORY}/Testing/integration/dismiss_usb_popup.scpt",
)