Open jywarren opened 6 years ago
Also some good leads here:
Do you mean to mount a built image and run tests on it? What kind of tests do you have in mind?
Yeah, like, build an image, mount it, then run an automated test suite that confirms that a given script worked, so looking for things like:
Stuff like that - what do you think?
I think you are going to like what I found!
I noticed the end of the output of the image building process:
+ rspec --format documentation --color /workspace/builder/test
SD card image
exists
Partition table
has two partitions
has a boot-partition with a vfat filesystem
has a root-partition with a ext4 filesystem
Binary dpkg
is compiled for ARM architecture
/etc/fstab
has a vfat boot entry
has a ext4 root entry
Root filesystem
is based on debian
is debian version stretch
is a HypriotOS
has a HYPRIOT_OS= entry
has a HYPRIOT_OS_VERSION= entry
has a HYPRIOT_DEVICE= entry
has a HYPRIOT_IMAGE_VERSION= entry
is for architecure 'HYPRIOT_OS="HypriotOS/armhf"'
is for device 'HYPRIOT_DEVICE="Raspberry Pi"'
uses os-rootfs version 'HYPRIOT_OS_VERSION="v2.0.1"'
Finished in 40.25 seconds (files took 0.72588 seconds to load)
17 examples, 0 failures
Finished: SUCCESS
So this is already implemented using Ruby! :-)
It could be used to setup Travis, based on the included CircleCi configuration.
yay!!!!!
On Tue, Jul 24, 2018 at 1:42 PM Sebastian Silva notifications@github.com wrote:
The current tests are here https://github.com/publiclab/image-builder-rpi/tree/master/builder/test.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/image-builder-rpi/issues/3#issuecomment-407491644, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ9x9NdSBDrvjAthoPTTt35yxkfkLks5uJ1xtgaJpZM4Tugtx .
This site lists RPi as a continuous integration target... in wonder how it worked? (link seems broken...)
https://github.com/liuliu/ccv