[elbe-devel] [PATCH v2 3/4] tests: Add simple test for amd64 with grub
Olivier Dion
dion at linutronix.de
Mon Aug 17 15:34:28 CEST 2020
On Mon, 17 Aug 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
> On Mon, Aug 03, 2020 at 12:39:59PM -0400, Olivier Dion wrote:
>> Signed-off-by: Olivier Dion <dion at linutronix.de>
>> Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
>
>
> mmm... i dont remember reviewing this.
> Might due to vacation :D
>
> see below...
>
>
>
>> ---
>> tests/simple-amd64-with-grub-tighten.xml | 66 ++++++++++++++++++++++++
>> 1 file changed, 66 insertions(+)
>> create mode 100644 tests/simple-amd64-with-grub-tighten.xml
>>
>> diff --git a/tests/simple-amd64-with-grub-tighten.xml b/tests/simple-amd64-with-grub-tighten.xml
>> new file mode 100644
>> index 00000000..b9bacb0d
>> --- /dev/null
>> +++ b/tests/simple-amd64-with-grub-tighten.xml
>> @@ -0,0 +1,66 @@
>> +<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe"
>> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> + created="2009-05-20T08:50:56" revision="6"
>> + xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
>> +
>> + <project>
>> + <name>simple-amd64-with-grub-tighten</name>
>> + <version>1.0</version>
>> + <suite>buster</suite>
>> + <buildtype>amd64</buildtype>
>> +
>> + <description>
>> + Testing amd64 with grub and tighten packages
>> + </description>
>> +
>> + <mirror>
>> + <primary_host>ftp.de.debian.org</primary_host>
>> + <primary_path>/debian</primary_path>
>> + <primary_proto>http</primary_proto>
>> + </mirror>
>> +
>> + </project>
>> +
>> + <target>
>> + <hostname>amd64-buster</hostname>
>> + <domain>elbe-ci</domain>
>> + <passwd>root</passwd>
>> + <console>ttyS0,115200</console>
>> + <debootstrapvariant>minbase</debootstrapvariant>
>> +
>> + <images>
>> + <gpthd>
>> + <name>sda.img</name>
>> + <size>2000MiB</size>
>> + <grub-install />
>> + <partition>
>> + <size>remain</size>
>> + <label>rfs</label>
>> + </partition>
>> + </gpthd>
>> + </images>
>> +
>> + <fstab>
>> + <bylabel>
>> + <label>rfs</label>
>> + <mountpoint>/</mountpoint>
>> + <fs><type>ext4</type></fs>
>> + </bylabel>
>> + </fstab>
>> +
>> + <pkg-list>
>> + <pkg>busybox-static</pkg>
>> + </pkg-list>
>> +
>> + <tighten />
>> + <install-recommends />
>> +
>> + <finetuning>
>> + <file dst="/etc/hosts" append="true" encoding="plain">
>> + 192.168.0.165 mydomain mydomain-host
>> + </file>
>
> What is this supposed to do ?
>
Nothing. Just testing the file command.
>> + <cp path="/etc/bash.bashrc">/root/.bashrc</cp>
>> + <artifact>/etc/host</artifact>
>
> /etc/host ? not /etc/hosts ?
> why is it an artifact ?
Yeah I have a patch for that. It's /etc/hosts and it's for testing the
artifact command.
We could also just do all finetuning in a specific simple-*.xml and
avoid using it in other tests.
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list