From 02a2ad393de6cbea726514226e3419db6517307c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 19 Oct 2019 21:35:27 -0500 Subject: hscript: Implement Firmware, and add tests --- tests/fixtures/0111-firmware-true.installfile | 6 ++++++ tests/fixtures/0112-firmware-false.installfile | 6 ++++++ tests/fixtures/0113-firmware-invalid.installfile | 7 +++++++ tests/fixtures/0114-firmware-duplicate.installfile | 7 +++++++ 4 files changed, 26 insertions(+) create mode 100644 tests/fixtures/0111-firmware-true.installfile create mode 100644 tests/fixtures/0112-firmware-false.installfile create mode 100644 tests/fixtures/0113-firmware-invalid.installfile create mode 100644 tests/fixtures/0114-firmware-duplicate.installfile (limited to 'tests/fixtures') diff --git a/tests/fixtures/0111-firmware-true.installfile b/tests/fixtures/0111-firmware-true.installfile new file mode 100644 index 0000000..a2d5ead --- /dev/null +++ b/tests/fixtures/0111-firmware-true.installfile @@ -0,0 +1,6 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +firmware true diff --git a/tests/fixtures/0112-firmware-false.installfile b/tests/fixtures/0112-firmware-false.installfile new file mode 100644 index 0000000..9abc556 --- /dev/null +++ b/tests/fixtures/0112-firmware-false.installfile @@ -0,0 +1,6 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +firmware false diff --git a/tests/fixtures/0113-firmware-invalid.installfile b/tests/fixtures/0113-firmware-invalid.installfile new file mode 100644 index 0000000..b823be1 --- /dev/null +++ b/tests/fixtures/0113-firmware-invalid.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +# Intentional misspelling +firmware fasle diff --git a/tests/fixtures/0114-firmware-duplicate.installfile b/tests/fixtures/0114-firmware-duplicate.installfile new file mode 100644 index 0000000..372c645 --- /dev/null +++ b/tests/fixtures/0114-firmware-duplicate.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +firmware false +firmware false -- cgit v1.2.3-70-g09d2