Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Req #

What is done

How to test this requirement

1

The username of the user running the script is printed to console like “Hello “+$USERNAME+”! You are now setting up pibs software…”

Run the setup-testscript and make an assertion in the script for the line in the created logfile provided by the testscript.

Will be automated in the future and part of the testscript

2

Check if username is “pib”.

If yes: continue.

If no: Ask “It is strongly recommended to run this script as user ‘pib’, but your username is '“+$USERNAME+”. Do you want to continue anyways? (y/n): “

If yes: continue

if no: abort the script with the message “Aborting installation, no changes were done. Please re-run the script as user ‘pib’…”

At the moment it must be tested manually. Create VM and create a new user on it. Change user context to new user and run setup-script.

An additional testscript will be created and testing this via an assertion in the testscript.

3

Ask for admin password and enable the script to run with admin/root privileges

Must be tested manually as sudo and password is technically not possible through a shh-pseudo-shell in a virtual machine

Current workaround in the testscript is to make a sudo-command with a chmod right before executing the setup-pib.sh. So the sudo-context and password is saved for a certain amount of time and the setup-script will be running in a sudo-context without prompting for the password.

4

Cerebra is installed

Going to “http://localhost” or “http://<IP>” in chromium opens the Cerebra UI

5

The database is available

Going in Cerebra to “Programs” shows a default program. Without database the complete right component is empty.

6

BrickV is installed

BrickV can be opened in the menu (Programs->BrickV)

7

The animated eyes are installed on the desktop

Animated gif is on the desktop

8

A link to Cerebra is available on the desktop

Shortcut is on the desktop

...