diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-12-07 16:51:33 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-12-07 17:44:10 +1100 |
commit | 589623efd5361f5f3ee5a99013c2d11d96338e9f (patch) | |
tree | 986ab2de18b4b683cbcb3e3b13812c3bc974bded | |
parent | 0e0e223982f3bdc6a9a7160f10e4d3b96937e992 (diff) | |
download | talos-petitboot-589623efd5361f5f3ee5a99013c2d11d96338e9f.tar.gz talos-petitboot-589623efd5361f5f3ee5a99013c2d11d96338e9f.zip |
kboot parser: Add UUID and LABEL tests
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | devices/parser-tests/005/expected-output | 14 | ||||
-rw-r--r-- | devices/parser-tests/005/ps3da1/etc/kboot.conf | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/devices/parser-tests/005/expected-output b/devices/parser-tests/005/expected-output new file mode 100644 index 0000000..bfaccc8 --- /dev/null +++ b/devices/parser-tests/005/expected-output @@ -0,0 +1,14 @@ +[dev 0] id: /dev/ps3da1 +[dev 0] name: (null) +[dev 0] description: (null) +[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png +[opt 0] name: test_uuid +[opt 0] description: UUID=meep:/vmlinux +[opt 0] boot_image: devices/parser-tests/005/disk/by-uuid/meep/vmlinux +[opt 0] initrd: (null) +[opt 0] boot_args: (null) +[opt 1] name: test_label +[opt 1] description: LABEL=meep:/vmlinux +[opt 1] boot_image: devices/parser-tests/005/disk/by-label/meep/vmlinux +[opt 1] initrd: (null) +[opt 1] boot_args: (null) diff --git a/devices/parser-tests/005/ps3da1/etc/kboot.conf b/devices/parser-tests/005/ps3da1/etc/kboot.conf new file mode 100644 index 0000000..72b7db8 --- /dev/null +++ b/devices/parser-tests/005/ps3da1/etc/kboot.conf @@ -0,0 +1,6 @@ + +# test for LABEL= and UUID= lookups + +test_uuid='UUID=meep:/vmlinux' +test_label='LABEL=meep:/vmlinux' + |