From 5595a79c6c5c73203f55d3a759a7af921ed34c1a Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 22 Aug 2020 15:59:49 -0500 Subject: Improve test coverage of metadata keys --- tests/fixtures/0222-complete.installfile | 1 + tests/fixtures/0246-hostname-nonalnum.installfile | 5 +++++ tests/fixtures/0247-version-basic.installfile | 6 ++++++ tests/fixtures/0248-version-invalid.installfile | 6 ++++++ tests/fixtures/0249-bootloader-ppc.installfile | 7 +++++++ tests/fixtures/0250-bootloader-x86efi.installfile | 7 +++++++ tests/fixtures/0251-bootloader-x86bios.installfile | 7 +++++++ tests/fixtures/0252-bootloader-alpha.installfile | 7 +++++++ 8 files changed, 46 insertions(+) create mode 100644 tests/fixtures/0246-hostname-nonalnum.installfile create mode 100644 tests/fixtures/0247-version-basic.installfile create mode 100644 tests/fixtures/0248-version-invalid.installfile create mode 100644 tests/fixtures/0249-bootloader-ppc.installfile create mode 100644 tests/fixtures/0250-bootloader-x86efi.installfile create mode 100644 tests/fixtures/0251-bootloader-x86bios.installfile create mode 100644 tests/fixtures/0252-bootloader-alpha.installfile (limited to 'tests/fixtures') diff --git a/tests/fixtures/0222-complete.installfile b/tests/fixtures/0222-complete.installfile index c82063f..0c54cbf 100644 --- a/tests/fixtures/0222-complete.installfile +++ b/tests/fixtures/0222-complete.installfile @@ -9,6 +9,7 @@ disklabel /dev/sda gpt partition /dev/sda 1 fill fs /dev/sda1 ext4 mount /dev/sda1 / +version current repository https://distfiles.adelielinux.org/adelie/current/system repository https://distfiles.adelielinux.org/adelie/current/user signingkey /etc/apk/keys/packages@adelielinux.org.pub diff --git a/tests/fixtures/0246-hostname-nonalnum.installfile b/tests/fixtures/0246-hostname-nonalnum.installfile new file mode 100644 index 0000000..49d9240 --- /dev/null +++ b/tests/fixtures/0246-hostname-nonalnum.installfile @@ -0,0 +1,5 @@ +network true +hostname -invalid-.foo.bar +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/fixtures/0247-version-basic.installfile b/tests/fixtures/0247-version-basic.installfile new file mode 100644 index 0000000..67c310f --- /dev/null +++ b/tests/fixtures/0247-version-basic.installfile @@ -0,0 +1,6 @@ +network false +hostname 123lonelycorgi.street +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +version 1.0 diff --git a/tests/fixtures/0248-version-invalid.installfile b/tests/fixtures/0248-version-invalid.installfile new file mode 100644 index 0000000..3f733cd --- /dev/null +++ b/tests/fixtures/0248-version-invalid.installfile @@ -0,0 +1,6 @@ +network false +hostname 123lonelycorgi.street +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +version !invalid diff --git a/tests/fixtures/0249-bootloader-ppc.installfile b/tests/fixtures/0249-bootloader-ppc.installfile new file mode 100644 index 0000000..3124cda --- /dev/null +++ b/tests/fixtures/0249-bootloader-ppc.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +arch ppc +bootloader yaboot diff --git a/tests/fixtures/0250-bootloader-x86efi.installfile b/tests/fixtures/0250-bootloader-x86efi.installfile new file mode 100644 index 0000000..bb18a9a --- /dev/null +++ b/tests/fixtures/0250-bootloader-x86efi.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +arch pmmx +bootloader grub-efi diff --git a/tests/fixtures/0251-bootloader-x86bios.installfile b/tests/fixtures/0251-bootloader-x86bios.installfile new file mode 100644 index 0000000..dbc461d --- /dev/null +++ b/tests/fixtures/0251-bootloader-x86bios.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +arch x86_64 +bootloader grub-bios diff --git a/tests/fixtures/0252-bootloader-alpha.installfile b/tests/fixtures/0252-bootloader-alpha.installfile new file mode 100644 index 0000000..d522901 --- /dev/null +++ b/tests/fixtures/0252-bootloader-alpha.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +arch alpha +bootloader aboot -- cgit v1.2.3-70-g09d2