XS Community Edition/0.4/Testing: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
=Installation=
=Installation=


Purpose.
Purpose
# Verify the installation process works correctly.
# Verify the installation process works correctly.


Prerequisites.
Prerequisites
# None
# None


Steps.
Steps

# NOTE please use the command "wget http://xsce.activitycentral.com/repos/xsce-release.repo" to get the current branch.
# NOTE please use the command "wget http://xsce.activitycentral.com/repos/xsce-release.repo" to get the current branch.
# Install using the the [[User:Holt/XS_Community_Edition/0.4/Installing | instructions]] and a fresh OLPC-OS 13.2.0 or Fedora 18 install.
# Install using the the [[User:Holt/XS_Community_Edition/0.4/Installing | instructions]] and a fresh OLPC-OS 13.2.0 or Fedora 18 install.


Results.
Results
# The install should complete without errors.
# The install should complete without errors.


Line 27: Line 26:


==External SD Card==
==External SD Card==
Purpose.
Purpose
# Verify the External SD card used for additional storage is functional.
# Verify the External SD card used for additional storage is functional.


Prerequisites.
Prerequisites
# SD card inserted into XO.
# SD card inserted into XO.


Steps.
Steps
# Mount /dev/mmcblk0p1
# Mount /dev/mmcblk0p1


Results.
Results
# Should report on /library
# Should report on /library


==External USB Drive==
==External USB Drive==
Purpose.
Purpose
# If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional.
# If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional.


Prerequisites.
Prerequisites
# External drive should be attached to XO via USB cable.
# External drive should be attached to XO via USB cable.


Steps.
Steps
# ???
# ???


Results.
Results
# ???
# ???


Line 59: Line 58:
# Verify the dynamic host configuration is functional.
# Verify the dynamic host configuration is functional.


Prerequisites.
Prerequisites
# None
# None


Line 66: Line 65:
# Click on the name of your Access Point.
# Click on the name of your Access Point.


Results
Result
# After a few seconds the connections status will change to "Connected."
# After a few seconds the connections status will change to "Connected."


==Network Address Translation/NAT (iptables)==
==Network Address Translation/NAT (iptables)==
Purpose.
Purpose
# Verify network address translation is functional.
# Verify network address translation is functional.


Line 76: Line 75:
# XO should be connected to XSCE.
# XO should be connected to XSCE.


Steps.
Steps
# In a browser, go to https://mail.google.com (any site with HTTPS).
# In a browser, go to https://mail.google.com (any site with HTTPS).


Line 83: Line 82:


==Registration (idmgr)==
==Registration (idmgr)==
Purpose.
Purpose
# Verify XO registration is functional.
# Verify XO registration is functional.


Prerequisites.
Prerequisites
# XO should be connected to XSCE.
# XO should be connected to XSCE.


Steps.
Steps
# Register the XSCE.
# Register the XSCE.


Results.
Results
# Receive a message that registration was successful.
# Receive a message that registration was successful.
# Registration creates a directory named the XO's serial number in /library/users.
# Registration creates a directory named the XO's serial number in /library/users.


==XMPP Server (ejabberd)==
==XMPP Server (ejabberd)==
Purpose.
Purpose
# Verify that the XMPP server is functional.
# Verify that the XMPP server is functional.


Prerequisites.
Prerequisites
# XO should be registered.
# XO should be registered.


Steps.
Steps
# If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood.
# If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood.
# To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal:
# To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal:
# ejabberdctl connected-users
# ejabberdctl connected-users


Results.
Results
# ???
# ???


==XMPP based collaboration (ejabberd)==
==XMPP based collaboration (ejabberd)==
Purpose.
Purpose
# Verify that the XMPP based collaboration is functional.
# Verify that the XMPP based collaboration is functional.


Prerequisites.
Prerequisites
# 2 client XOs.
# 2 client XOs.


Steps.
Steps
# On both XO's click on the same XSCE network
# On both XO's click on the same XSCE network
# Confirm that both units are on the same network
# Confirm that both units are on the same network
Line 130: Line 129:
# Follow the same steps, but starting with the second XO. (see that it works both ways)
# Follow the same steps, but starting with the second XO. (see that it works both ways)


Results.
Results
# The shared chat activity shows up in the network view of both laptops
# The shared chat activity shows up in the network view of both laptops
# Whatever one laptop types in the chat window after both are connected is seen by both laptops
# Whatever one laptop types in the chat window after both are connected is seen by both laptops
Line 138: Line 137:


==Apache Web Server (httpd)==
==Apache Web Server (httpd)==
Purpose.
Purpose
# Verify the web server is functional.
# Verify the web server is functional.


Prerequisites.
Prerequisites
# XO should be connected to XSCE.
# XO should be connected to XSCE.


Steps.
Steps
# Go to http://schoolserver and http://schoolserver.local.
# Go to http://schoolserver and http://schoolserver.local.


Results.
Results
# Both should resolve to the XSCE homepage.
# Both should resolve to the XSCE homepage.


Line 154: Line 153:
#Verify Proxy caching is functional.
#Verify Proxy caching is functional.


Prerequisites.
Prerequisites
#XO should be connected to XSCE.
#XO should be connected to XSCE.


Steps.
Steps
# On XSCE Check the initial size of the squid cache directory: du -sk /library/cache.
# On XSCE Check the initial size of the squid cache directory: du -sk /library/cache.
# On XO open Browse Activity and surf the internet.
# On XO open Browse Activity and surf the internet.
# On XSCE Check the squid cache directory size again
# On XSCE Check the squid cache directory size again


Results.
Results
# Cache size should increase
# Cache size should increase


==OLPC-update (rsync)==
==OLPC-update (rsync)==
Purpose.
Purpose
# Verify OLPC-update is functional.
# Verify OLPC-update is functional.


Prerequisites.
Prerequisites
# ???
# ???


Steps.
Steps
# ???
# ???


Results.
Results
# ???
# ???


Line 184: Line 183:
PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0
PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0


Purpose.
Purpose
# Verify OLPC-back is functional.
# Verify OLPC-back is functional.


Prerequisites.
Prerequisites
# XO should be connected to XSCE.
# XO should be connected to XSCE.
# XO should be registered.
# XO should be registered.


Steps.
Steps
# rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists.
# rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists.
# /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument.
# /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument.


Results.
Results
# On XO /home/olpc/.sugar/default/ds-backup-done should exist
# On XO /home/olpc/.sugar/default/ds-backup-done should exist
# On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`.
# On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`.
Line 202: Line 201:


==Activity Server (uses httpd)==
==Activity Server (uses httpd)==
Purpose.
Purpose
# Verify http://schoolserver/activities resolves.
# Verify http://schoolserver/activities resolves.


Prerequisites.
Prerequisites
# ???
# ???


Steps.
Steps
# Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php.
# Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php.
# Click on "Choose File"
# Click on "Choose File"
Line 214: Line 213:
# Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README
# Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README


Results.
Results
# Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page.
# Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page.


==Virtual Private Network (OpenVPN)==
==Virtual Private Network (OpenVPN)==
Purpose.
Purpose
# Verify VPN is functional. See http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN
# Verify VPN is functional. See http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN


Prerequisites.
Prerequisites
# ???
# ???


Steps.
Steps
# ???
# ???


Results.
Results
# ???
# ???


==Statistics Collection - Pending Santi/Anish==
==Statistics Collection - Pending Santi/Anish==
Purpose.
Purpose
# Verify Statistics collection is functional.
# Verify Statistics collection is functional.


Prerequisites.
Prerequisites
# ???
# ???


Steps.
Steps
# ???
# ???


Results.
Results
# ???
# ???


==Book server(Pathagar) - Pending Sameer/Seth==
==Book server(Pathagar) - Pending Sameer/Seth==
Purpose.
Purpose
# Verify book server is functional.
# Verify book server is functional.


Prerequisites.
Prerequisites
# ???
# ???


Steps.
Steps
# ???
# ???


Results.
Results
# ???
# ???


Line 291: Line 290:


==Internet-in-a-Box - Pending Braddock==
==Internet-in-a-Box - Pending Braddock==
Purpose.
Purpose
#
#


Prerequisites.
Prerequisites
# You need an Internet-in-a-Box hard drive. If used with the XO-1.5, the external hard drive requires a powered USB Hub to power up properly.
# You need an Internet-in-a-Box hard drive. If used with the XO-1.5, the external hard drive requires a powered USB Hub to power up properly.


Steps.
Steps
Verify Internet in Box is functional.
# Verify Internet in Box is functional.
# Browse to the root directory of the schoolserver and click on the "Internet-In-A-Box" link. You should see the IIAB home page displayed.
# Browse to the root directory of the schoolserver and click on the "Internet-In-A-Box" link. You should see the IIAB home page displayed.


Results.
Results
# ???
# ???



Revision as of 13:59, 19 August 2013

XSCE Smoke Test

This set of test cases represents a quick smoke test that a build should pass. Please file bugs at https://sugardextrose.org/projects/xsce/issues

Tests are run against reference hardware first, generally XO-1.75 and XO-4 Touch and Trim-Slice. We ask your help running against more hardware variations serving global implementers' and contributors' needs.

Please see our evolving table of smoke test results.

Installation

Purpose

  1. Verify the installation process works correctly.

Prerequisites

  1. None

Steps

  1. NOTE please use the command "wget http://xsce.activitycentral.com/repos/xsce-release.repo" to get the current branch.
  2. Install using the the instructions and a fresh OLPC-OS 13.2.0 or Fedora 18 install.

Results

  1. The install should complete without errors.

Hardware

The XSCE can detect and utilize several types of hardware.

External SD Card

Purpose

  1. Verify the External SD card used for additional storage is functional.

Prerequisites

  1. SD card inserted into XO.

Steps

  1. Mount /dev/mmcblk0p1

Results

  1. Should report on /library

External USB Drive

Purpose

  1. If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional.

Prerequisites

  1. External drive should be attached to XO via USB cable.

Steps

  1. ???

Results

  1. ???

Core Service

Core service should be tested using a School Server and a 'client' XO running 13.1.0.

Dynamic Host Configuration (dhcpd)

Purpose

  1. Verify the dynamic host configuration is functional.

Prerequisites

  1. None

Steps

  1. Go to my neighborhood.
  2. Click on the name of your Access Point.

Results

  1. After a few seconds the connections status will change to "Connected."

Network Address Translation/NAT (iptables)

Purpose

  1. Verify network address translation is functional.

Prerequisites

  1. XO should be connected to XSCE.

Steps

  1. In a browser, go to https://mail.google.com (any site with HTTPS).

Results

  1. Site should open correctly.

Registration (idmgr)

Purpose

  1. Verify XO registration is functional.

Prerequisites

  1. XO should be connected to XSCE.

Steps

  1. Register the XSCE.

Results

  1. Receive a message that registration was successful.
  2. Registration creates a directory named the XO's serial number in /library/users.

XMPP Server (ejabberd)

Purpose

  1. Verify that the XMPP server is functional.

Prerequisites

  1. XO should be registered.

Steps

  1. If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood.
  2. To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal:
  3. ejabberdctl connected-users

Results

  1. ???

XMPP based collaboration (ejabberd)

Purpose

  1. Verify that the XMPP based collaboration is functional.

Prerequisites

  1. 2 client XOs.

Steps

  1. On both XO's click on the same XSCE network
  2. Confirm that both units are on the same network
  3. Open chat with one XO
  4. Share the activity with the neighborhood
  5. Go to the Network view of that XO
  6. Go to the Network view of the second XO
  7. In the network view of the second XO click on the chat activity that the first one just shared
  8. Type a few lines in the chat activity on each XO
  9. Close the chat activity on both XOs
  10. Follow the same steps, but starting with the second XO. (see that it works both ways)

Results

  1. The shared chat activity shows up in the network view of both laptops
  2. Whatever one laptop types in the chat window after both are connected is seen by both laptops
  3. Chat works both ways and on all three networks

Extended Service

Apache Web Server (httpd)

Purpose

  1. Verify the web server is functional.

Prerequisites

  1. XO should be connected to XSCE.

Steps

  1. Go to http://schoolserver and http://schoolserver.local.

Results

  1. Both should resolve to the XSCE homepage.

Proxy Caching (squid)

Purpose.

  1. Verify Proxy caching is functional.

Prerequisites

  1. XO should be connected to XSCE.

Steps

  1. On XSCE Check the initial size of the squid cache directory: du -sk /library/cache.
  2. On XO open Browse Activity and surf the internet.
  3. On XSCE Check the squid cache directory size again

Results

  1. Cache size should increase

OLPC-update (rsync)

Purpose

  1. Verify OLPC-update is functional.

Prerequisites

  1. ???

Steps

  1. ???

Results

  1. ???

http://dev.laptop.org/git/users/martin/xs-rsync/tree/README

OLPC-backup

PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0

Purpose

  1. Verify OLPC-back is functional.

Prerequisites

  1. XO should be connected to XSCE.
  2. XO should be registered.

Steps

  1. rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists.
  2. /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument.

Results

  1. On XO /home/olpc/.sugar/default/ds-backup-done should exist
  2. On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`.

Please see http://wiki.laptop.org/go/XS_Blueprints:Datastore_Simple_Backup_and_Restore for more information

Activity Server (uses httpd)

Purpose

  1. Verify http://schoolserver/activities resolves.

Prerequisites

  1. ???

Steps

  1. Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php.
  2. Click on "Choose File"
  3. Use the file chooser to indicate which Activity you would like to upload.
  4. Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README

Results

  1. Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page.

Virtual Private Network (OpenVPN)

Purpose

  1. Verify VPN is functional. See http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN

Prerequisites

  1. ???

Steps

  1. ???

Results

  1. ???

Statistics Collection - Pending Santi/Anish

Purpose

  1. Verify Statistics collection is functional.

Prerequisites

  1. ???

Steps

  1. ???

Results

  1. ???

Book server(Pathagar) - Pending Sameer/Seth

Purpose

  1. Verify book server is functional.

Prerequisites

  1. ???

Steps

  1. ???

Results

  1. ???

Ejabberd Web Interface ???

This isn't necessary for testing, but is fun to poke around in:

Register the admin user: ejabberdctl register admin schoolserver.local <password>

In a browser, go to http://schoolserver.local:5280/admin

The username is admin@schoolserver.local and the password is whatever you set above.

Using Pidgin to Monitor Ejabberd

When testing the XSCE, it can be helpful to see at a glance which XO clients have successfully connected to the ejabberd server. Pidgin is a cross platform XMPP client you can use to connect to the schoolserver's ejabberd server from any Windows/Linux/Mac computer. Connected XO clients will appear in the Buddy List.

In the Buddy List window, go to Accounts -> Manage Accounts. Click Add.

In the Basic tab under Login Options, enter the following values:

Protocol:  XMPP
Username:  yourname
Domain: schoolserver.local
Resource: pidgin
Password: yourpassword

Check "Remember password"

In the Advanced tab, enter the following values:

Connection security: Use old-style SSL
Connect port: 5223
Connect server: schoolserver.local

At the very bottom of the "Modify Account" window, check "Create this new account on the server." Click Add, then a registration box will pop up. Click Register, then you should get a pop up box that registration was successful. Click close. In the Accounts box, click the tick box in the "Enabled" column next to your username. If a box pops up for the server certificate, click Accept.

Now in the Buddy List, you should see the XOs that are currently connected to the XSCE's ejabberd server.

Internet-in-a-Box - Pending Braddock

Purpose

Prerequisites

  1. You need an Internet-in-a-Box hard drive. If used with the XO-1.5, the external hard drive requires a powered USB Hub to power up properly.

Steps

  1. Verify Internet in Box is functional.
  2. Browse to the root directory of the schoolserver and click on the "Internet-In-A-Box" link. You should see the IIAB home page displayed.

Results

  1. ???

PostgresSQL

Moodle