Coder Social home page Coder Social logo

agnostics's Introduction

This is an application to run tests on Raspberry Pi hardware.


How to build
------------

1. Install dependencies

The dependencies of any Debian project are listed in the "Build-Depends" section
of the file named "control" in the "debian" subdirectory of the project.

If the project has already been released into apt, then the build dependencies
can be automatically installed using the command "sudo apt build-dep <package-name>".

2. Prepare project

To create the "configure" file and prepare the project directory, use the command
"./autogen.sh" in the top directory of the project.

If this file is not present, then instead use the command "autoreconf -i -f"
followed by the command "intltoolize -c --automake --force", both in the top directory
of the project.

3. Configure

To configure the make system, use the command "./configure" in the top directory of
the project. This will by default set the project for installation in the /usr/local tree,
which will not overwrite a version which has been installed from apt.

If you wish to overwrite a preinstalled version in the /usr tree, supply the arguments
"./configure --prefix=/usr --libdir=/usr/lib/<library-location>" to the configure command.
On a 32-bit system, <library-location> should be "arm-linux-gnueabihf".
On a 64-bit system, <library-location> should be "aarch64-linux-gnu".

4. Build

To build the application, use the command "make" in the top directory of the project.

5. Install

To install the application and all required data files, use the command "sudo make install"
in the top directory of the project.

agnostics's People

Contributors

avag-sayan avatar emanueleg avatar jose1711 avatar p33m avatar polpolylingo avatar spl237 avatar ykla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

agnostics's Issues

Publish agnostics-cli package with fewer dependencies

Hi. For those running a headless system, consider publishing an agnostics-cli package with just the command line interface and fewer dependencies (viz. libgtk etc)

The following additional packages will be installed:
adwaita-icon-theme at-spi2-core dbus-user-session dconf-gsettings-backend dconf-service fio fontconfig glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme ibverbs-providers libaio1 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libboost-atomic1.67.0 libboost-regex1.67.0 libboost-thread1.67.0 libcairo-gobject2 libcolord2 libcroco3 libdconf1 libepoxy0 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtksourceview-3.0-1 libgtksourceview-3.0-common libibverbs1 libjson-glib-1.0-0 libjson-glib-1.0-common libnuma1 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libproxy1v5 librados2 librbd1 librdmacm1 librest-0.7-0 librsvg2-2 librsvg2-common libsoup-gnome2.4-1 libsoup2.4-1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libxkbcommon0 mousepad
After this operation, 121 MB of additional disk space will be used.

And a command /usr/bin/agnostics-cli that runs /usr/share/agnostics/sdtest.sh

SD card speed test doesn't work on Pi 1

The SD card speed test in agnostics doesn't work on the first generation Raspberry Pi devices, aka Pi 1. I've tried 256MB and 512MB variants and both have issues.

Steps to reproduce:

  1. Start up agnostics from the menu within the Raspbian desktop.
  2. With the "SD Card Speed Test" test selected (which it is by default), press the "run test" button.

Expected output:

Progress dialog appears while test runs, then main window displays PASS or FAIL.

Actual output:

Progress dialog appears briefly, then main window displays "Not Run" in the result column. On the Pi with 256MB, after a delay of a few seconds, the mouse pointer becomes sluggish for a few seconds, then goes back to normal. On the Pi with 512MB, after a similar delay, the mouse pointer becomes sluggish for a few seconds, then stops. The Pi becomes completely unresponsive, although it does still appear to be responding to pings over the network.

I tested on both Pis with the same SD card - a micro SD card in the adapter it came with. This SD card is know to be working fine and had previously been used on a Pi 4B 4GB without issue. The card was imaged with the latest version of Raspbian, and brought fully up-to-date using apt, rebooted, then agnostics was installed using apt. The same OS image was used to test both Pis.

I expect the Pi Zero is also affected, but I don't have a spare one to test this on.

Log file from Pi with 256MB:

Raspberry Pi Diagnostics - version 0.2
Sat Mar 28 13:09:45 2020

Test : SD Card Speed Test
Run 1
fio: job startup hung? exiting.
fio: 1 job failed to start
Test FAIL

It looks like fio is having trouble for some reason.

Other users have also reported this issue on the forums - see thread at https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=268397

install path is hardcoded in data/sdtest.sh

install path is hardcoded in data/sdtest.sh, line 7:

RES=$(fio --output-format=terse --max-jobs=4 /usr/share/agnostics/sd_bench.fio | cut -f 3,7,8,48,49 -d";" -)

if you install it somewhere else, like in /usr/local, then it fails finding sd_bench.fio (which then is in /usr/local/share/ not in /usr/share/)

fio: unable to open '/usr/share/agnostics/sd_bench.fio' job file

Following the build instructions in the README (without --prefix), the program builds correctly but when executed, sdtest.sh fails with "fio: unable to open '/usr/share/agnostics/sd_bench.fio' job file" because this file is stored in
/usr/local/share/agnostics. Program erroneously considers this a PASS result.

rpdiags.txt:

Raspberry Pi Diagnostics - version (unknown)
Fri Jan 1 20:58:14 2021

Test : SD Card Speed Test
Run 1
fio: unable to open '/usr/share/agnostics/sd_bench.fio' job file

/usr/local/share/agnostics/sdtest.sh: 13: [: Illegal number:
Sequential write speed KB/sec (target 10000) - PASS
/usr/local/share/agnostics/sdtest.sh: 20: [: Illegal number:
Random write speed IOPS (target 500) - PASS
/usr/local/share/agnostics/sdtest.sh: 26: [: Illegal number:
Random read speed IOPS (target 1500) - PASS
Test PASS

Run without UI

I'm currently experiencing slowness with my pi zero and I wanted to test if it's related to a slow SD card. Came across this new tool and tried to run and realised it's on a UI application. It would be good to run just via the CLI.

pi@raspberrypi:~ $ agnostics
Unable to init server: Could not connect: Connection refused

(agnostics:3440): Gtk-WARNING **: 11:46:50.787: cannot open display:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.