|
@@ -11,9 +11,11 @@ class TestPostScripts(infra.basetest.BRTest):
|
|
BR2_SYSTEM_BIN_SH_NONE=y
|
|
BR2_SYSTEM_BIN_SH_NONE=y
|
|
# BR2_PACKAGE_BUSYBOX is not set
|
|
# BR2_PACKAGE_BUSYBOX is not set
|
|
BR2_ROOTFS_POST_BUILD_SCRIPT="{}"
|
|
BR2_ROOTFS_POST_BUILD_SCRIPT="{}"
|
|
|
|
+ BR2_ROOTFS_POST_FAKEROOT_SCRIPT="{}"
|
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="{}"
|
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="{}"
|
|
BR2_ROOTFS_POST_SCRIPT_ARGS="foobar baz"
|
|
BR2_ROOTFS_POST_SCRIPT_ARGS="foobar baz"
|
|
""".format(infra.filepath("tests/core/post-build.sh"),
|
|
""".format(infra.filepath("tests/core/post-build.sh"),
|
|
|
|
+ infra.filepath("tests/core/post-fakeroot.sh"),
|
|
infra.filepath("tests/core/post-image.sh"))
|
|
infra.filepath("tests/core/post-image.sh"))
|
|
|
|
|
|
def check_post_log_file(self, path, what):
|
|
def check_post_log_file(self, path, what):
|
|
@@ -37,5 +39,7 @@ class TestPostScripts(infra.basetest.BRTest):
|
|
def test_run(self):
|
|
def test_run(self):
|
|
f = os.path.join(self.builddir, "build", "post-build.log")
|
|
f = os.path.join(self.builddir, "build", "post-build.log")
|
|
self.check_post_log_file(f, "target")
|
|
self.check_post_log_file(f, "target")
|
|
|
|
+ f = os.path.join(self.builddir, "build", "post-fakeroot.log")
|
|
|
|
+ self.check_post_log_file(f, "target")
|
|
f = os.path.join(self.builddir, "build", "post-image.log")
|
|
f = os.path.join(self.builddir, "build", "post-image.log")
|
|
self.check_post_log_file(f, "images")
|
|
self.check_post_log_file(f, "images")
|