From 47558ea71d523fb71307d394be4bfad8da4664d8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 12 Oct 2019 00:15:48 -0500 Subject: hscript: Parse 'mount' key, add tests to ensure --- tests/fixtures/0027-mount-invalid-dev.installfile | 5 +++++ tests/fixtures/0028-mount-non-absolute.installfile | 5 +++++ tests/fixtures/0029-mount-too-many.installfile | 5 +++++ tests/fixtures/0030-mount-too-few.installfile | 5 +++++ 4 files changed, 20 insertions(+) create mode 100644 tests/fixtures/0027-mount-invalid-dev.installfile create mode 100644 tests/fixtures/0028-mount-non-absolute.installfile create mode 100644 tests/fixtures/0029-mount-too-many.installfile create mode 100644 tests/fixtures/0030-mount-too-few.installfile (limited to 'tests/fixtures') diff --git a/tests/fixtures/0027-mount-invalid-dev.installfile b/tests/fixtures/0027-mount-invalid-dev.installfile new file mode 100644 index 0000000..22c65df --- /dev/null +++ b/tests/fixtures/0027-mount-invalid-dev.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount nonexistant / diff --git a/tests/fixtures/0028-mount-non-absolute.installfile b/tests/fixtures/0028-mount-non-absolute.installfile new file mode 100644 index 0000000..b7932ac --- /dev/null +++ b/tests/fixtures/0028-mount-non-absolute.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 usr diff --git a/tests/fixtures/0029-mount-too-many.installfile b/tests/fixtures/0029-mount-too-many.installfile new file mode 100644 index 0000000..6b1b221 --- /dev/null +++ b/tests/fixtures/0029-mount-too-many.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / relatime Cat diff --git a/tests/fixtures/0030-mount-too-few.installfile b/tests/fixtures/0030-mount-too-few.installfile new file mode 100644 index 0000000..0f11c37 --- /dev/null +++ b/tests/fixtures/0030-mount-too-few.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 -- cgit v1.2.3-70-g09d2