Skip to content
Snippets Groups Projects
  1. Mar 30, 2021
    • Karel Koci's avatar
      tests: implement target autoselection · 5bc88a7f
      Karel Koci authored
      This reduces user's overhead to launch tests. It uses targets filtering.
      This makes target specification optional.
      At the moment user can specify that he wants to run tests on specific
      board. In the future we should add filters for additional configured
      board features, such as presence of Wi-Fi cards or USB storage device.
      Verified
      5bc88a7f
    • Karel Koci's avatar
      nsfarm/target: move target parsing to nsfarm library · cff8fe91
      Karel Koci authored
      This not only moves target config parsing to nsfarm library but also it
      changes it to be implementation defined not just access to configparser.
      Verified
      cff8fe91
  2. Mar 29, 2021
  3. Mar 18, 2021
    • Karel Koci's avatar
      selftests/lxd: add simple ping test for LXD container · 74051ebe
      Karel Koci authored
      The current tests check if appropriate profiles exists but not if they
      actually work. The nsfarm-root has to work when container at least
      starts. The problem is with nsfarm-internet. It is required to test if
      it is possible to access the Internet or not with that profile. That is
      exactly what this test does.
      Verified
      74051ebe
  4. Mar 17, 2021
  5. Mar 16, 2021
    • Karel Koci's avatar
      nsfarm/lxd: include files in hash calculations · 2ecf2196
      Karel Koci authored
      There was for some reason condition that only directories are listed
      when image hash is generated. In reality the code was prepared to handle
      any path and should include all paths. This removes this invalid
      condition and makes it so all files provided for image are included in
      hash calculation.
      
      This in effect makes it so new image build is triggered on any file
      modification.
      Verified
      2ecf2196
  6. Feb 25, 2021
    • Karel Koci's avatar
      nsfarm/lxd: rename exceptions · 0c9574a3
      Karel Koci authored
      The Python PEP8 specifies that exceptions should be named *Error so this
      renames the exceptions to match that.
      Verified
      0c9574a3
    • Karel Koci's avatar
      selftests: check if devices are on system · e9f4a095
      Karel Koci authored
      This is just test that checks that we have all required devices on host
      system. These devices are optional and additional modules are requires
      to be installed and loaded to kernel.
      
      At the moment only the /dev/ppp is tested there.
      Verified
      e9f4a095
    • Karel Koci's avatar
      nsfarm/lxd: add ability to pass character devices · f9b7d7dc
      Karel Koci authored
      There is change that adds device exclusivity. Only for few devices we
      need exclusive passtrough to container. In most cases it is enough to
      pass only access to that device.
      
      Another change is that there is possibility to specify parameter for
      images. At the moment this allows only passtrough of Unix character
      devices but that can be expanded in the future.
      Verified
      f9b7d7dc
    • Karel Koci's avatar
      nsfarm/lxd: fix inspect command · d6c51516
      Karel Koci authored
      The arguments of Container class changed but they were  not updated
      here.
      Verified
      d6c51516
    • Karel Koci's avatar
      imgs: update base-alpine to AlpineLinux 3.13 · b851b749
      Karel Koci authored
      Verified
      b851b749
    • Karel Koci's avatar
      nsfarm/mterm: add micro terminal · 514ea66c
      Karel Koci authored
      The micro terminal is minimal connection between terminal and socket.
      This way it can be hooked up to any socket in nsfarm and thus allowing
      the direct access for CLI interfaces. The primary use is to access
      board's serial console.
      
      This replaces serial_miniterm with simpler and more generic implementation.
      Verified
      514ea66c
    • Karel Koci's avatar
      nsfarm/cli: fix function pexpect_flush · 84e6788e
      Karel Koci authored
      It turns out that nonblocking doesn't mean nonblocking in all cases. In
      this case when there was no input the read was blocking.
      The timeout set to zero solves this.
      Verified
      84e6788e
    • Karel Koci's avatar
      tests: reenable read of syslog on serial console · b2a9f818
      Karel Koci authored
      This now not only makes sense becuase we have live logging it also fixes
      TODO pointed there, we just wait for file to appear (syslog-ng to
      start).
      Verified
      b2a9f818
    • Karel Koci's avatar
    • Karel Koci's avatar
      Replace logging trough pexpect with realtime logging · e1a30f22
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      Problem with logging trough pexpect is that we log output only when we
      expect it. That is when we access it trough pexpect. This means that
      time and synchronization when logs arrive from multiple sources can't be
      archived and only one source logs at the time (the one that is used
      currently by pexpect). This is not ideal as we are interested in
      situation such as restarting network interfaces that produce some logs
      not only on router but also in container at the same time.
      Synchronization on time bases in such cases is important and we can't
      wait for code to call pexpect to print it to logs later on.
      
      This instead utilizes sockets and by reading source immediately and just
      passing it to socket.
      Verified
      e1a30f22
  7. Feb 22, 2021
  8. Jan 07, 2021
  9. Dec 22, 2020
  10. Jul 16, 2020
  11. Jul 15, 2020
  12. Jul 14, 2020
  13. Jul 08, 2020
  14. Apr 29, 2020
Loading