1. 22 Jul, 2017 1 commit
  2. 14 Jul, 2017 1 commit
  3. 05 Jul, 2017 2 commits
  4. 28 May, 2017 2 commits
  5. 17 May, 2017 1 commit
  6. 07 May, 2017 5 commits
    • Thomas Petazzoni's avatar
      support/testing: add toolchain tests · fb71372d
      Thomas Petazzoni authored
      
      
      This commit adds an initial toolchain test case, testing the ARM
      CodeSourcery toolchain, just checking that the proper sysroot is used,
      and that a minimal Linux system boots fine under Qemu.
      
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      fb71372d
    • Thomas Petazzoni's avatar
      support/testing: add package tests · 8db88df8
      Thomas Petazzoni authored
      
      
      This commit adds some basic tests for two Buildroot packages: python and
      dropbear. These tests are by no mean meant to be exhaustive, but mainly
      to serve as initial examples for other tests.
      
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      8db88df8
    • Thomas Petazzoni's avatar
      support/testing: add fs tests · bf4a6490
      Thomas Petazzoni authored
      
      
      This commit adds a number of test cases for various filesystem formats:
      ext2/3/4, iso9660, jffs2, squashfs, ubi/ubifs and yaffs2. All of them
      except yaffs2 are runtime tested. The iso9660 set of test cases is
      particularly rich, testing the proper operation of the iso9660 support
      with all of grub, grub2 and isolinux.
      
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      bf4a6490
    • Thomas Petazzoni's avatar
      support/testing: add core tests · 96e21b61
      Thomas Petazzoni authored
      
      
      This commit adds a few Buildroot "core" tests, testing functionalities
      such as:
      
       - post-build and post-image scripts
       - root filesystem overlays
       - timezone support
      
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      96e21b61
    • Thomas Petazzoni's avatar
      support/testing: core testing infrastructure · a732fb22
      Thomas Petazzoni authored
      
      
      This commit adds the core of a new testing infrastructure that allows to
      perform runtime testing of Buildroot generated systems. This
      infrastructure uses the Python unittest logic as its foundation.
      
      This core infrastructure commit includes the following aspects:
      
       - A base test class, called BRTest, defined in
         support/testing/infra/basetest.py. This base test class inherited
         from the Python provided unittest.TestCase, and must be subclassed by
         all Buildroot test cases.
      
         Its main purpose is to provide the Python unittest setUp() and
         tearDown() methods. In our case, setUp() takes care of building the
         Buildroot system described in the test case, and instantiate the
         Emulator object in case runtime testing is needed. The tearDown()
         method simply cleans things up (stop the emulator, remove the output
         directory).
      
       - A Builder class, defined in support/testing/infra/builder.py, simply
         responsible for building the Buildroot system in each test case.
      
       - An Emulator class, defined in support/testing/infra/emulator.py,
         responsible for running the generated system under Qemu, allowing
         each test case to run arbitrary commands inside the emulated system.
      
       - A run-tests script, which is the entry point to start the tests.
      
      Even though I wrote the original version of this small infrastructure, a
      huge amount of rework and improvement has been done by Maxime
      Hadjinlian, and squashed into this patch. So many thanks to Maxime for
      cleaning up and improving my Python code!
      
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      a732fb22