Git Product home page Git Product logo

packager's Introduction

Introduction

This project contains some scripts that run some basic tests on binary packages built on ntop code. While each ntop project has its package/ directory that contains scripts for building each individual project (example https://github.com/ntop/PF_RING/tree/dev/package and https://github.com/ntop/ntopng/tree/dev/packages), the idea is to extend the travis concept to packages, trying to spot incompatibilies, platform-specific packaging issues etc. In order to achieve this we rely on docker to create various containers, one per platform for which we build packages for.

Tests are logically divided into installation tests and functional tests.

Installation tests

During these tests a docker image is created for each supported architecture (presently ubuntu 12/14/16, debian jessie and wheezy, cento 6/7) and for each package (or group of packages) that is meant to be tested.

The bash scripts under the entrypoint/ directory are used to specify the packages to be tested. Each script can be thought of as a unit test. Inside each script there is the list of packages and the test logic that have to be executed.

Functional tests

Functional tests are run by instantiating containers out of the docker images. Each container is then run via docker run that passes the string test as command line argument. This string is handled by the bash scripts above that can figure out they are carrying the tests.

Entering the containers

For additional desting, debugging purposes, etc it is possible to enter the containers. Indeed, the bash scripts under entrypoints/ are generic and can handle also other command. For example to launch an interactive bash shell on a container, one may run:

docker run -it centos7.n2disk /bin/bash

packager's People

Contributors

simonemainardi avatar lucaderi avatar cardigliano avatar

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.