Skip to content
Snippets Groups Projects
  1. Apr 12, 2019
    • Zbigniew Jędrzejewski-Szmek's avatar
      scripts: use 4 space indentation · cc5549ca
      Zbigniew Jędrzejewski-Szmek authored
      We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed.
      4 sp was the most common, in particular the majority of scripts under test/
      used that. Let's standarize on 4 sp, because many commandlines are long and
      there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp
      also seems to be the default indentation, so this will make it less likely
      that people will mess up if they don't load the editor config. (I think people
      often use vi, and vi has no support to load project-wide configuration
      automatically. We distribute a .vimrc file, but it is not loaded by default,
      and even the instructions in it seem to discourage its use for security
      reasons.)
      
      Also remove the few vim config lines that were left. We should either have them
      on all files, or none.
      
      Also remove some strange stuff like '#!/bin/env bash', yikes.
      cc5549ca
  2. Nov 03, 2018
  3. Jun 06, 2018
  4. Aug 10, 2017
    • Martin Pitt's avatar
      test: Run qemu/nspawn tests with "set -e" · 818567fc
      Martin Pitt authored
      This catches errors like "ninja not found", missing programs etc. early,
      instead of silently ignoring them and trying to boot a broken VM.
      
      In install_config_files(), allow some distro specific files to be absent
      (such as /etc/sysconfig/init).
      818567fc
  5. Aug 04, 2017
    • Martin Pitt's avatar
      test: Factorize common integration test functions (#6540) · 054ee249
      Martin Pitt authored
      All test/TEST* but TEST-02-CRYPTSETUP share the same check_result_qemu()
      and test_cleanup(), so move them into test_functions and only override
      them in TEST-02-CRYPTSETUP.
      
      Also provide a common test_run() which by default assumes that both QEMU
      and nspawn tests are run. Particular tests which don't support either
      need to explicitly opt out by setting $TEST_NO_{QEMU,NSPAWN}. Do it this
      way around to avoid accidentally forgetting to opt in, and to encourage
      test authors to at least always support nspawn.
      054ee249
  6. Jun 24, 2016
  7. Nov 25, 2015
  8. Dec 10, 2013
    • Ronny Chevalier's avatar
      test: rework run_qemu · c6a77179
      Ronny Chevalier authored
      It tries to find a suitable QEMU binary and will use KVM if present.
      We can now configure QEMU from outside with 4 variables :
        - $QEMU_BIN : path to QEMU's binary
        - $KERNEL_APPEND : arguments appended to kernel cmdline
        - $KERNEL_BIN : path to a kernel
          Default /boot/vmlinuz-$KERNEL_VER
        - $INITRD : path to an initramfs
          Default /boot/initramfs-${KERNEL_VER}.img
        - $QEMU_SMP : number of CPU simulated by QEMU.
          Default 1
      
      (from Alexander Graf's script: http://www.spinics.net/lists/kvm/msg72389.html)
      c6a77179
  9. Nov 07, 2013
  10. Sep 17, 2013
  11. Apr 24, 2013
  12. Feb 23, 2013
  13. Jan 30, 2013
  14. Jan 25, 2013
  15. Sep 13, 2012
  16. Jun 28, 2012
  17. May 29, 2012
  18. May 24, 2012
  19. May 22, 2012
    • Harald Hoyer's avatar
      test: introduce a basic testsuite framework · 898720b7
      Harald Hoyer authored
      $ cd test
      $ sudo make check
      
      will run all tests in the TEST-* subdirectories
      
      $ cd test/TEST-01-BASIC
      $ sudo make clean setup run
      
      will run the different stages of the test for debugging purposes
      898720b7
Loading