Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Functional Tests

rgaudin edited this page May 31, 2018 · 5 revisions

Creating a pibox-installer image is a long and complex process with many many steps of configuration.

This document helps one ensure the whole process created a correct image with the expected behavior and features.

Most tests can be done through the online demo but not all of them. Also, testing on real hardware is a lot faster.

From now on, we'll assume the image was created with project name mybox.

Image size

  • Size in bytes (ls -l) should be a multiple of 1,000 not 1,024.
  • Size in bytes should be slightly less than the advertised size.
  • Example: 127000000000 for a 128G SD card (118.28 GiB)

General

  • WiFi network name mybox is present
  • WiFi network is open (depends)
  • WiFi network is protected and work with defined password (depends)
  • Navigating to http://kiwix.org should redirect to http://mybox.lan
  • Navigating to https://facebook.com should display an error and offer to open the Network Authentication Page or redirect to http://mybox.lan (depending on browser).

Ideascube

KhanAcademy

  • Available at http://khanacademy.mybox.lan/.

  • Can login with defined username and password or admin/admin (depends).

  • Select language from bottom-left.

  • Videos are present and playing (sample).

  • Databases on /data/kalite/database/content_khan_en.sqlite, /data/kalite/database/content_khan_fr.sqlite and /data/kalite/database/data.sqlite.

  • Files (video) stored on /data/kalite/content/.

Aflatoun

  • Available at http://aflatoun.mybox.lan/.
  • Can login with defined username and password or admin/admin (depends).
  • Select language from bottom-left.
  • PDF are present and opening (sample fr).
  • Videos are present and playing (sample fr).
  • Audios are present and playing (sample fr).

Notes:

  • Databases on /data/aflatoun/database/content_khan_en.sqlite, /data/aflatoun/database/content_khan_fr.sqlite and /data/aflatoun/database/data.sqlite.
  • Files (video, audio, pdf) stored on /data/aflatoun/content/.

Wikifundi

Notes:

  • Database on /data/wikifundi/fr.africapack.kiwix.org/mw_fr_africapack.sqlite and /data/wikifundi/en.africapack.kiwix.org/mw_en_africapack.sqlite.
  • Files stored on /data/wikifundi/fr.africapack.kiwix.org/w/images/.

EduPi

  • Available at http://edupi.mybox.lan/.
  • Can login at http://edupi.mybox.lan/custom/ with defined username and password or admin/admin (depends).
  • Can create folders.
  • Can upload files to folders.
  • Folders browsable from UI.
  • Images, PDF and Files viewable and downloadable from UI.

Notes:

  • sys-info displays available space on / partition while the content is actually on /data/edupi so its information is irrelevant.
  • Database on /data/edupi/database/db.sqlite3.
  • Files stored on /data/edupi/media.

ZIM Files

  • Kiwix index available at http://kiwix.mybox.lan/.
  • Kiwix index shows proper meta data (name, description, size, icon).
  • ZIM file available at http://kiwix.mybox.lan/zim-id/.
  • ZIM file works properly.
  • Title Autocomplete in search bar works properly.
  • Full text search works properly (depends on ZIM).
  • Images display properly (depends on ZIM).
  • Videos display properly (depends on ZIM).

Notes:

  • Files stored on /data/ideascube/kiwix/.
Clone this wiki locally