summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 19:27:17 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 19:27:17 -0500
commit6d110a03892bf164826b27bd9f92ef396f36d1b3 (patch)
tree782695720242688b694e95a8c40dc708f5dfd6d3 /tests/fixtures
parente242f93977d28b8d645b53f28fe052071dcbf10d (diff)
downloadhorizon-6d110a03892bf164826b27bd9f92ef396f36d1b3.tar.gz
horizon-6d110a03892bf164826b27bd9f92ef396f36d1b3.tar.bz2
horizon-6d110a03892bf164826b27bd9f92ef396f36d1b3.tar.xz
horizon-6d110a03892bf164826b27bd9f92ef396f36d1b3.zip
tests: Now with 100% more automated testing
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/0001-basic.installfile5
-rw-r--r--tests/fixtures/0002-basic-commented.installfile17
-rw-r--r--tests/fixtures/0003-basic-whitespace.installfile7
-rw-r--r--tests/fixtures/0004-blank.installfile0
-rw-r--r--tests/fixtures/0005-only-comments.installfile1
-rw-r--r--tests/fixtures/0006-no-network.installfile4
-rw-r--r--tests/fixtures/0007-no-hostname.installfile4
-rw-r--r--tests/fixtures/0008-no-pkginstall.installfile4
-rw-r--r--tests/fixtures/0009-no-rootpw.installfile4
-rw-r--r--tests/fixtures/0010-no-mount.installfile4
-rw-r--r--tests/fixtures/0011-invalid-network.installfile5
-rw-r--r--tests/fixtures/0012-invalid-hostname.installfile5
-rw-r--r--tests/fixtures/0013-invalid-rootpw.installfile5
-rw-r--r--tests/fixtures/0014-invalid-mount.installfile5
-rw-r--r--tests/fixtures/0015-keys-without-values.installfile5
-rw-r--r--tests/fixtures/0016-invalid-key.installfile6
-rw-r--r--tests/fixtures/0017-line-too-long.installfile5
-rw-r--r--tests/fixtures/0018-duplicate-network.installfile6
-rw-r--r--tests/fixtures/0019-duplicate-hostname.installfile6
-rw-r--r--tests/fixtures/0020-duplicate-rootpw.installfile6
-rw-r--r--tests/fixtures/0021-duplicate-root-mount.installfile6
21 files changed, 110 insertions, 0 deletions
diff --git a/tests/fixtures/0001-basic.installfile b/tests/fixtures/0001-basic.installfile
new file mode 100644
index 0000000..a87b8f1
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0002-basic-commented.installfile b/tests/fixtures/0002-basic-commented.installfile
new file mode 100644
index 0000000..fd9a5e8
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0003-basic-whitespace.installfile b/tests/fixtures/0003-basic-whitespace.installfile
new file mode 100644
index 0000000..4754458
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0004-blank.installfile b/tests/fixtures/0004-blank.installfile
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/fixtures/0004-blank.installfile
diff --git a/tests/fixtures/0005-only-comments.installfile b/tests/fixtures/0005-only-comments.installfile
new file mode 100644
index 0000000..72985bf
--- /dev/null
+++ b/tests/fixtures/0005-only-comments.installfile
@@ -0,0 +1 @@
+# This file is invalid, because it only contains comments.
diff --git a/tests/fixtures/0006-no-network.installfile b/tests/fixtures/0006-no-network.installfile
new file mode 100644
index 0000000..fcf0943
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0007-no-hostname.installfile b/tests/fixtures/0007-no-hostname.installfile
new file mode 100644
index 0000000..5e314e5
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0008-no-pkginstall.installfile b/tests/fixtures/0008-no-pkginstall.installfile
new file mode 100644
index 0000000..2751414
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0009-no-rootpw.installfile b/tests/fixtures/0009-no-rootpw.installfile
new file mode 100644
index 0000000..d15d6b1
--- /dev/null
+++ b/tests/fixtures/0009-no-rootpw.installfile
@@ -0,0 +1,4 @@
+network true
+hostname test.machine
+pkginstall adelie-base
+mount /dev/sda1 /
diff --git a/tests/fixtures/0010-no-mount.installfile b/tests/fixtures/0010-no-mount.installfile
new file mode 100644
index 0000000..99fc1da
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0011-invalid-network.installfile b/tests/fixtures/0011-invalid-network.installfile
new file mode 100644
index 0000000..77de188
--- /dev/null
+++ b/tests/fixtures/0011-invalid-network.installfile
@@ -0,0 +1,5 @@
+network ture
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
diff --git a/tests/fixtures/0012-invalid-hostname.installfile b/tests/fixtures/0012-invalid-hostname.installfile
new file mode 100644
index 0000000..6ea1fbc
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0013-invalid-rootpw.installfile b/tests/fixtures/0013-invalid-rootpw.installfile
new file mode 100644
index 0000000..aeeda68
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0014-invalid-mount.installfile b/tests/fixtures/0014-invalid-mount.installfile
new file mode 100644
index 0000000..cf3d44a
--- /dev/null
+++ b/tests/fixtures/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/fixtures/0015-keys-without-values.installfile b/tests/fixtures/0015-keys-without-values.installfile
new file mode 100644
index 0000000..7cb7aff
--- /dev/null
+++ b/tests/fixtures/0015-keys-without-values.installfile
@@ -0,0 +1,5 @@
+network
+hostname
+pkginstall
+rootpw
+mount
diff --git a/tests/fixtures/0016-invalid-key.installfile b/tests/fixtures/0016-invalid-key.installfile
new file mode 100644
index 0000000..9a7002e
--- /dev/null
+++ b/tests/fixtures/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
diff --git a/tests/fixtures/0017-line-too-long.installfile b/tests/fixtures/0017-line-too-long.installfile
new file mode 100644
index 0000000..f208b5f
--- /dev/null
+++ b/tests/fixtures/0017-line-too-long.installfile
@@ -0,0 +1,5 @@
+network true
+hostname test.machine
+pkginstall abiword abuild-doc adelie-base adelie-keys adelie-wallpapers alegreya alsa-utils anonymous-pro apk-tools-static at at-doc audacious audacious-dbg audacious-dev audacious-plugins audacious-plugins-dbg bash-binsh bash-doc bc bind-tools binutils-doc bsdwhois bubblewrap-nosuid build-tools calligra cargo checkbashisms chelf chrony clearsans cmd:mkfs.vfat cmd:wish command-not-found console-keymaps console-setup-doc consolekit2 consolekit2-dbg cryptsetup cups dash debianutils-which dejagnu dhcpcd dosfstools dracut dracut-doc dracut-lvm e2fsprogs e2fsprogs-doc easy-kernel-power8 easy-kernel-power8-modules ebgaramond emacs-nox essays1743 eudev-dev evince fantasque-sans-mono fastjar ffmpeg ffmpeg-doc ffmpeg-libs fifth-leg fira fira-code firefox-esr flex free42 fuse-exfat gcc-doc gcompat gdb git-doc git-email gnumeric gnupg gptfdisk grub grub-ieee1275 gutenprint gwenview hdparm heirloom-devtools hermit heuristica-otf htop hunkyfonts hunspell imagemagick iproute2 iproute2-doc iputils iso-codes jpegoptim kate-dbg kbd kbd-keymaps kcachegrind kde-graphics kde-gtk-config kde-system kde-utilities kdeplasma-addons kgpg khelpcenter klickety kmix kolourpaint konsole kpat krdc krita ksysguard-lang ktorrent ktorrent-doc kwin kwrite lame libedit-dbg libertine-fonts libreoffice-calc libx11-dbg lighttpd links linux-firmware-amdgpu linux-firmware-radeon linux-headers linux-pam-doc lm_sensors lmms lsof lvm2-doc lxqt-desktop lynx lz4 mac-fdisk make-doc marble mednaffe mesa-dbg mesa-demos mesa-demos-dbg mesa-dri-swrast meson minicom mkfontscale-doc modemmanager monoid montecarlo mozjs mtr mtr-gtk musl-dbg nano ncurses-terminfo netcat netifrc netifrc-doc netsurf nmap nmap-ncat node nvi oclock okteta okular opal-utils openjdk8 openrc openrc-doc openssh openssh-doc openssl oprofile oprofile-doc optipng otf-source-code-pro otf-source-sans-pro oxygen-icons5 papirus-icons parted parted-dev partitionmanager pciutils perl-app-licensecheck perl-json phonon-vlc php7 php7-curl php7-dom php7-json php7-openssl php7-simplexml pidgin pidgin-otr pigz pinentry-gtk pkgconf plasma-desktop plasma-desktop-doc postgresql procps-doc pulseaudio pulseaudio-alsa pulseaudio-dev purple-plugin-pack py3-docutils py3-lxml py3-mako py3-packaging py3-tox qastools qemu-riscv64 qemu-system-riscv64 qemu-user qpdfview qt-creator qt5-qtbase-dbg qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtpositioning qt5-qttools qt5-qtwebchannel quassel-client quassel-dbg rdesktop rpm2targz rsync ruby ruby-dbg ruby-irb rust s6-linux-init screen sg3_utils shadow-doc socat spectacle sqlite squashfs-tools ssmtp stdman strace systemsettings tcpdump tcpdump-doc texinfo the_silver_searcher thunderbird tigervnc tmux traceroute tree trigger-rally trojita ttc-iosevka ttf-dejavu ttf-liberation ttf-noto tzdata umbrello umbrello-doc urw-base35-fonts usbutils user-manager util-linux-doc utmps utmps-libs valgrind vimdiff vlc-plugins-lua vlc-pulse vlc-qt weechat weechat-python x11 x11vnc x264 xclip xf86-input-evdev xf86-video-ati xf86-video-ati-doc xf86-video-fbdev xfsprogs xfsprogs-doc xfwm4 xmlto xmoto xorg-fonts xorg-server xorg-server-xephyr xorg-server-xnest xorriso xterm youtube-dl zsh-doc
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
diff --git a/tests/fixtures/0018-duplicate-network.installfile b/tests/fixtures/0018-duplicate-network.installfile
new file mode 100644
index 0000000..bce490c
--- /dev/null
+++ b/tests/fixtures/0018-duplicate-network.installfile
@@ -0,0 +1,6 @@
+network true
+hostname test.machine
+pkginstall adelie-base
+network false
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
diff --git a/tests/fixtures/0019-duplicate-hostname.installfile b/tests/fixtures/0019-duplicate-hostname.installfile
new file mode 100644
index 0000000..ae7f199
--- /dev/null
+++ b/tests/fixtures/0019-duplicate-hostname.installfile
@@ -0,0 +1,6 @@
+network true
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+hostname foo.bar
diff --git a/tests/fixtures/0020-duplicate-rootpw.installfile b/tests/fixtures/0020-duplicate-rootpw.installfile
new file mode 100644
index 0000000..c3727d2
--- /dev/null
+++ b/tests/fixtures/0020-duplicate-rootpw.installfile
@@ -0,0 +1,6 @@
+network true
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
diff --git a/tests/fixtures/0021-duplicate-root-mount.installfile b/tests/fixtures/0021-duplicate-root-mount.installfile
new file mode 100644
index 0000000..0d009cd
--- /dev/null
+++ b/tests/fixtures/0021-duplicate-root-mount.installfile
@@ -0,0 +1,6 @@
+network true
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+mount /dev/sda2 /