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 Apr 23, 2020 · 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

Ideascube

KhanAcademy

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

  • 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

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.hotspot/.
  • Can login at http://edupi.mybox.hotspot/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.
  • Search can find uploaded files.

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.hotspot/.
  • Kiwix index shows proper meta data (name, description, size, icon).
  • ZIM file available at http://kiwix.mybox.hotspot/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