diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/0001-basic.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0002-basic-commented.installfile | 17 | ||||
-rw-r--r-- | tests/scripts/0003-basic-whitespace.installfile | 7 | ||||
-rw-r--r-- | tests/scripts/0004-blank.installfile | 0 | ||||
-rw-r--r-- | tests/scripts/0005-only-comments.installfile | 1 | ||||
-rw-r--r-- | tests/scripts/0006-no-network.installfile | 4 | ||||
-rw-r--r-- | tests/scripts/0007-no-hostname.installfile | 4 | ||||
-rw-r--r-- | tests/scripts/0008-no-pkginstall.installfile | 4 | ||||
-rw-r--r-- | tests/scripts/0009-no-rootpw.installfile | 4 | ||||
-rw-r--r-- | tests/scripts/0010-no-mount.installfile | 4 | ||||
-rw-r--r-- | tests/scripts/0011-invalid-network.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0012-invalid-hostname.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0013-invalid-rootpw.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0014-invalid-mount.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0015-keys-without-values.installfile | 5 | ||||
-rw-r--r-- | tests/scripts/0016-invalid-key.installfile | 6 |
16 files changed, 81 insertions, 0 deletions
diff --git a/tests/scripts/0001-basic.installfile b/tests/scripts/0001-basic.installfile new file mode 100644 index 0000000..a87b8f1 --- /dev/null +++ b/tests/scripts/0001-basic.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0002-basic-commented.installfile b/tests/scripts/0002-basic-commented.installfile new file mode 100644 index 0000000..fd9a5e8 --- /dev/null +++ b/tests/scripts/0002-basic-commented.installfile @@ -0,0 +1,17 @@ +# This file contains comments. + +# And blank lines. +network true + +hostname test.machine +pkginstall adelie-base + +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ + + + + + + + +mount /dev/sda1 / diff --git a/tests/scripts/0003-basic-whitespace.installfile b/tests/scripts/0003-basic-whitespace.installfile new file mode 100644 index 0000000..4754458 --- /dev/null +++ b/tests/scripts/0003-basic-whitespace.installfile @@ -0,0 +1,7 @@ +# This file has whitespace everywhere before keys, and even on otherwise-empty lines. + network true + hostname test.machine +pkginstall adelie-base + rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ + + mount /dev/sda1 / diff --git a/tests/scripts/0004-blank.installfile b/tests/scripts/0004-blank.installfile new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/scripts/0004-blank.installfile diff --git a/tests/scripts/0005-only-comments.installfile b/tests/scripts/0005-only-comments.installfile new file mode 100644 index 0000000..72985bf --- /dev/null +++ b/tests/scripts/0005-only-comments.installfile @@ -0,0 +1 @@ +# This file is invalid, because it only contains comments. diff --git a/tests/scripts/0006-no-network.installfile b/tests/scripts/0006-no-network.installfile new file mode 100644 index 0000000..fcf0943 --- /dev/null +++ b/tests/scripts/0006-no-network.installfile @@ -0,0 +1,4 @@ +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0007-no-hostname.installfile b/tests/scripts/0007-no-hostname.installfile new file mode 100644 index 0000000..5e314e5 --- /dev/null +++ b/tests/scripts/0007-no-hostname.installfile @@ -0,0 +1,4 @@ +network true +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0008-no-pkginstall.installfile b/tests/scripts/0008-no-pkginstall.installfile new file mode 100644 index 0000000..2751414 --- /dev/null +++ b/tests/scripts/0008-no-pkginstall.installfile @@ -0,0 +1,4 @@ +network true +hostname test.machine +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0009-no-rootpw.installfile b/tests/scripts/0009-no-rootpw.installfile new file mode 100644 index 0000000..d15d6b1 --- /dev/null +++ b/tests/scripts/0009-no-rootpw.installfile @@ -0,0 +1,4 @@ +network true +hostname test.machine +pkginstall adelie-base +mount /dev/sda1 / diff --git a/tests/scripts/0010-no-mount.installfile b/tests/scripts/0010-no-mount.installfile new file mode 100644 index 0000000..99fc1da --- /dev/null +++ b/tests/scripts/0010-no-mount.installfile @@ -0,0 +1,4 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ diff --git a/tests/scripts/0011-invalid-network.installfile b/tests/scripts/0011-invalid-network.installfile new file mode 100644 index 0000000..f3f38cd --- /dev/null +++ b/tests/scripts/0011-invalid-network.installfile @@ -0,0 +1,5 @@ +network Yes +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0012-invalid-hostname.installfile b/tests/scripts/0012-invalid-hostname.installfile new file mode 100644 index 0000000..6ea1fbc --- /dev/null +++ b/tests/scripts/0012-invalid-hostname.installfile @@ -0,0 +1,5 @@ +network true +hostname This is not valid!!!! +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / diff --git a/tests/scripts/0013-invalid-rootpw.installfile b/tests/scripts/0013-invalid-rootpw.installfile new file mode 100644 index 0000000..aeeda68 --- /dev/null +++ b/tests/scripts/0013-invalid-rootpw.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $It's a password +mount /dev/sda1 / diff --git a/tests/scripts/0014-invalid-mount.installfile b/tests/scripts/0014-invalid-mount.installfile new file mode 100644 index 0000000..cf3d44a --- /dev/null +++ b/tests/scripts/0014-invalid-mount.installfile @@ -0,0 +1,5 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount / diff --git a/tests/scripts/0015-keys-without-values.installfile b/tests/scripts/0015-keys-without-values.installfile new file mode 100644 index 0000000..7cb7aff --- /dev/null +++ b/tests/scripts/0015-keys-without-values.installfile @@ -0,0 +1,5 @@ +network +hostname +pkginstall +rootpw +mount diff --git a/tests/scripts/0016-invalid-key.installfile b/tests/scripts/0016-invalid-key.installfile new file mode 100644 index 0000000..9a7002e --- /dev/null +++ b/tests/scripts/0016-invalid-key.installfile @@ -0,0 +1,6 @@ +network true +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +chat #adelie |