Code Monkey home page Code Monkey logo

keepod-installer's Introduction

keepod-installer

A cross-platform installer for Keepod OS

User manual of Linux version: http://start.keepod.org/question/keepod-installer-user-guide-linux/

Coding Style

Be consistent with existing code.

Implementation

The workflow of this program is very simple:

  1. download an clone file from web or choose one local file;
  2. extract the zip file;
  3. write all data to USB disks according to file 'changed.index';

Commit code

  1. Fork this project;
  2. Create an branch;
  3. Commit your code and test;
  4. Create a "pull request";

Auto test

this the the auto test intro for keepod-installer based on autopilot

Pre-required software

download the pre-required software, including python and autopilot-desktop;

  • apt-based GNU/Linux Distribution (debian, ubuntu, mint, etc)

      $ sudo apt-get install autopilot-desktop
    

Build

get source from github, commands as below:

$ git clone https://github.com/Keepod/keepod-installer.git

build the keepod-installer from source;

$ cd path/to/source/of/keepod-installer

$ ./build-nostatic

Test

out auto test is based on autopilot, and we can make tests all by once, and we can get the list of test routines, and make one test one time.

All Test

we can launch the test script and then all the tests will be executed one by one. Below is the commands that we need:

$ cd ./test/autopilot

$ ./launch_test.sh

Manually Test

If we want to test one routine one time, first we have to know all the test routines, and then we can launch one each time.

  • list all the test routines:

      $ cd ./test/autopilot
      $ autopilot list installer
    

    and the results will be as below:

      installer.tests.test_basic_process.BasicProcessTests.test_multi_udisk_installing_with_local_img
      installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_downloading_cancel_and_continue_with_net_image
      installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_installing_with_local_img
      installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_md5_check
      installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_writting_cancel_and_continue_with_local_img
      
      5 total tests.
    
  • lanch the test we want, we launch installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_installing_with_local_img as example:

      $ autopilot run installer.tests.test_basic_process.BasicProcessTests.test_single_udisk_installing_with_local_img
    

Note:

  • for all the tests, we have at least one udisk mounted.
  • when we launch xxxx_with_local_img routine, we have to copy the image file (keepod-latest.zip) to /test/autopilot/installer/tests .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.