Production mode

Download testflow packages and unzip

wget https://github.com/elespejo/dnsmasq/releases/download/0.9.5/dnsmasq-testflow-0.9.5.zip
unzip dnsmasq-testflow-0.9.5.zip

Run test cases on x86

  • Download packages

    cd script
    make -f basic.mk download
    
  • Set test project and arch

    make -f basic.mk set_arch ARCH=x86
    make -f manage_prod.mk set_img_pkg
    
  • Generate configuration

    Update a info.yml file in current directory

    make -f manage_prod.mk gen_proj_conf
    
  • Download images

    docker pull elespejo/dnsmasq-x86:0.9.5
    
  • Run test cases

    Please run sudo systemctl disable systemd-resolved.service if ubuntu 18.04 is used for testing

    make -f prod.mk test_install
    make -f prod.mk test_reinstall
    make -f prod.mk test_reuninstall
    make -f prod.mk test_installafteruninstall
    make -f prod.mk test_reboot_p1
    make -f prod.mk test_reboot_p2
    make -f prod.mk test_poweroff_p1
    make -f prod.mk test_poweroff_p2
    make -f prod.mk test_update
    
  • Clean test environment
    make -f build_dev_pkg.mk clean_dev_env_x86
    

Run test cases on armv6

  • Download packages

    cd script
    make -f basic.mk download
    
  • Set test project and arch

    make -f basic.mk set_arch ARCH=armv6
    make -f manage_prod.mk set_img_pkg
    
  • Generate configuration

    Update a info.yml file in current directory

    make -f manage_prod.mk gen_proj_conf
    
  • Download images

    docker pull elespejo/dnsmasq-armv6:0.9.5
    
  • Run test cases

    Please run sudo systemctl disable systemd-resolved.service if ubuntu 18.04 is used for testing

    make -f prod.mk test_install
    make -f prod.mk test_reinstall
    make -f prod.mk test_reuninstall
    make -f prod.mk test_installafteruninstall
    make -f prod.mk test_reboot_p1
    make -f prod.mk test_reboot_p2
    make -f prod.mk test_poweroff_p1
    make -f prod.mk test_poweroff_p2
    
  • Clean test environment
    make -f basic.mk rm_download
    make -f manage_prod.mk del_proj_conf
    

results matching ""

    No results matching ""