Home

Awesome

SHMIG_TEST

Automated tests for shmig.

To run manually, clone this project, copy shmig into this directory, start docker, and run ./test_runner.sh. To test a single platform, comment out lines in test_runner.conf before running test_runner.sh. Then check stderr.actual and stdout.actual. You can also use "DEBUG=1 ./test_runner.sh" to get more output from the test script.

Latest Results

ClientShellDBResultTest Date
alpine:3.8/bin/bashsqlite3Sun Jun 9 14:39:43 UTC 2019 (log)
alpine:3.8/bin/bashmysql:5.7Sun Jun 9 14:40:08 UTC 2019 (log)
alpine:3.8/bin/bashpostgres:9.6Sun Jun 9 14:40:22 UTC 2019 (log)

How it works

  1. CREATE docker network shmig-net

  2. FOR each line in test_runner.conf.

    a. WRITE docker file for shmig client image.

    b. START the database server docker image and give it the hostname db.

    c. RUN shmig_test.sh in the client image.

    d. UPDATE test result report.

    e. DELETE the Docker host db.

    f. ADD return for this line to over all return code.

  3. DELETE docker network shmig-net

  4. RETURN over all return code.

Notes