From e79b768e96ac7380f9556b36a522ecf8ea15d043 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Fri, 24 Apr 2020 10:41:06 +0100 Subject: [PATCH 01/21] Package update --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 60f1a6f..987ccd2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.3) buster; urgency=medium + + * Restrict memory usage in SD card test + + -- Simon Long Fri, 24 Apr 2020 10:38:54 +0100 + agnostics (0.2) buster; urgency=medium * Correct version of GTK in dependencies From f5a5df633b1199edb31ea7d80eb0fa0a24cb0329 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Sun, 3 May 2020 18:43:03 +0100 Subject: [PATCH 02/21] Modify wait behaviour for specific PID --- debian/changelog | 6 ++++++ src/agnostics.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 987ccd2..d6e4fe3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.4) buster; urgency=medium + + * Wait for specified PID while test is running + + -- Simon Long Sun, 03 May 2020 18:42:14 +0100 + agnostics (0.3) buster; urgency=medium * Restrict memory usage in SD card test diff --git a/src/agnostics.c b/src/agnostics.c index 4fa3d11..b5628b8 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -259,7 +259,7 @@ static gpointer test_thread (gpointer data) setpgid (testpid, testpid); // wait for child process to end - wait (&status); + waitpid (testpid, &status, 0); if (cancelled) { From 06f02b0f697cb30614e2c55722524d988b69e038 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Tue, 5 May 2020 14:03:34 +0100 Subject: [PATCH 03/21] Fix race condition on slower Pis --- src/agnostics.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/agnostics.c b/src/agnostics.c index b5628b8..ba532b3 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -57,7 +57,7 @@ GtkTreeModel *stests; /* Inter-thread globals */ gchar *test_name; -gboolean cancelled; +gboolean running, cancelled; int testpid; /* Path to log file */ @@ -284,6 +284,7 @@ static gpointer test_thread (gpointer data) g_free (test_name); test_name = NULL; + running = FALSE; // restore stdout and stderr dup2 (stdo, STDOUT_FILENO); @@ -298,12 +299,12 @@ static int dialog_update (gpointer data) { gchar *buffer; - if (test_name) + if (running) { if (cancelled) buffer = g_strdup_printf (_("Cancelling...")); else - buffer = g_strdup_printf (_("Running %s..."), test_name); + buffer = g_strdup_printf (_("Running %s..."), test_name ? test_name : _("tests")); gtk_label_set_text (GTK_LABEL (msg_label), buffer); g_free (buffer); gtk_progress_bar_pulse (GTK_PROGRESS_BAR (msg_prog)); @@ -331,6 +332,7 @@ static void run_test (GtkWidget *wid, gpointer data) // launch a thread with the system call to run the tests cancelled = FALSE; test_name = NULL; + running = TRUE; g_thread_new (NULL, test_thread, NULL); } From 720186d4d970c223e554bb1ca85d1bec587752c6 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Tue, 5 May 2020 14:18:45 +0100 Subject: [PATCH 04/21] Update translation file --- po/en_GB.po | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/po/en_GB.po b/po/en_GB.po index 540c42e..cbfe5fb 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: agnostics 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-02-18 14:40+0000\n" +"POT-Creation-Date: 2020-05-05 14:16+0100\n" "PO-Revision-Date: 2019-02-18 15:13+0000\n" "Last-Translator: Simon Long \n" "Language-Team: English (British)\n" @@ -17,7 +17,8 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../src/agnostics.c:151 +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 #, c-format msgid "" "%s\n" @@ -26,45 +27,49 @@ msgstr "" "%s\n" "%s" -#: ../src/agnostics.c:154 +#: ../src/agnostics.c:203 msgid "Not Run" msgstr "Not Run" -#: ../src/agnostics.c:198 +#: ../src/agnostics.c:266 msgid "Aborted" msgstr "Aborted" -#: ../src/agnostics.c:202 +#: ../src/agnostics.c:271 msgid "FAIL" msgstr "FAIL" -#: ../src/agnostics.c:207 +#: ../src/agnostics.c:276 msgid "PASS" msgstr "PASS" -#: ../src/agnostics.c:231 +#: ../src/agnostics.c:305 #, c-format msgid "Cancelling..." msgstr "Cancelling..." -#: ../src/agnostics.c:233 +#: ../src/agnostics.c:307 #, c-format msgid "Running %s..." msgstr "Running %s..." -#: ../src/agnostics.c:298 +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "tests" + +#: ../src/agnostics.c:350 msgid "Not run" msgstr "Not run" -#: ../src/agnostics.c:384 +#: ../src/agnostics.c:458 msgid "Test" msgstr "Test" -#: ../src/agnostics.c:387 +#: ../src/agnostics.c:463 msgid "Run Test?" msgstr "Run Test?" -#: ../src/agnostics.c:392 +#: ../src/agnostics.c:470 msgid "Result" msgstr "Result" From 625a6eed6cff7d7725a7d619568dd2ffc3975abb Mon Sep 17 00:00:00 2001 From: Simon Long Date: Fri, 18 Sep 2020 11:28:09 +0100 Subject: [PATCH 05/21] Use system MIME type association to open logfile --- debian/changelog | 6 ++++++ src/agnostics.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index d6e4fe3..a6e3e18 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.5) buster; urgency=medium + + * Use system text file association to open log file + + -- Simon Long Fri, 18 Sep 2020 11:27:04 +0100 + agnostics (0.4) buster; urgency=medium * Wait for specified PID while test is running diff --git a/src/agnostics.c b/src/agnostics.c index ba532b3..9764bb2 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -358,11 +358,11 @@ static void reset_test (GtkWidget *wid, gpointer data) static void show_log (GtkWidget *wid, gpointer data) { - char *buffer; - - buffer = g_strdup_printf ("mousepad %s &", logfile); - system (buffer); - g_free (buffer); + if (fork () == 0) + { + execl ("/usr/bin/xdg-open", "xdg-open", logfile, NULL); + exit (0); + } } /* Handler for click on tree view check box */ From 9b60d1548cee4aa859bccd7d108fed3a63f61d74 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 22 Oct 2020 10:51:24 +0100 Subject: [PATCH 06/21] Build instructions added to README --- README | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/README b/README index e55e3e2..ca4fe54 100644 --- a/README +++ b/README @@ -1,3 +1,42 @@ This is an application to run tests on Raspberry Pi hardware. -To build, run ./autogen.sh, then ./configure and make. + +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 ". + +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/" to the configure command. +On a 32-bit system, should be "arm-linux-gnueabihf". +On a 64-bit system, 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. From 8ebf9d0141c38c33e4183c63ffdeab133145ce56 Mon Sep 17 00:00:00 2001 From: Jose Riha Date: Sat, 12 Dec 2020 17:16:45 +0100 Subject: [PATCH 07/21] Add Slovak translation --- po/sk.po | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 po/sk.po diff --git a/po/sk.po b/po/sk.po new file mode 100644 index 0000000..d61a8a6 --- /dev/null +++ b/po/sk.po @@ -0,0 +1,107 @@ +# Slovak translations for agnostics package. +# Copyright (C) 2020 Raspberry Pi Ltd +# This file is distributed under the same license as the agnostics package. +# Jose Riha , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: agnostics 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-05 14:16+0100\n" +"PO-Revision-Date: 2020-12-12 17:16+0100\n" +"Last-Translator: Jose Riha \n" +"Language-Team: Slovak\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.4.1\n" + +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 +#, c-format +msgid "" +"%s\n" +"%s" +msgstr "" +"%s\n" +"%s" + +#: ../src/agnostics.c:203 +msgid "Not Run" +msgstr "Nebol spustený" + +#: ../src/agnostics.c:266 +msgid "Aborted" +msgstr "Zrušený" + +#: ../src/agnostics.c:271 +msgid "FAIL" +msgstr "CHYBA" + +#: ../src/agnostics.c:276 +msgid "PASS" +msgstr "ÚSPECH" + +#: ../src/agnostics.c:305 +#, c-format +msgid "Cancelling..." +msgstr "Ruším..." + +#: ../src/agnostics.c:307 +#, c-format +msgid "Running %s..." +msgstr "Spúšťam %s..." + +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "testy" + +#: ../src/agnostics.c:350 +msgid "Not run" +msgstr "Nebol spustený" + +#: ../src/agnostics.c:458 +msgid "Test" +msgstr "Test" + +#: ../src/agnostics.c:463 +msgid "Run Test?" +msgstr "Spustiť test?" + +#: ../src/agnostics.c:470 +msgid "Result" +msgstr "Výsledok" + +#: ../data/agnostics.ui.h:1 +msgid "Running tests..." +msgstr "Spúšťam testy..." + +#: ../data/agnostics.ui.h:2 +msgid "Cancel" +msgstr "Zrušiť" + +#: ../data/agnostics.ui.h:3 ../data/agnostics.desktop.in.h:1 +msgid "Raspberry Pi Diagnostics" +msgstr "Diagnostika Raspberry Pi" + +#: ../data/agnostics.ui.h:4 +msgid "_Close" +msgstr "_Zavrieť" + +#: ../data/agnostics.ui.h:5 +msgid "Show _Log" +msgstr "Zobraziť zázna_m" + +#: ../data/agnostics.ui.h:6 +msgid "Re_set" +msgstr "O_bnoviť" + +#: ../data/agnostics.ui.h:7 +msgid "_Run Tests" +msgstr "_Spustiť testy" + +#: ../data/agnostics.desktop.in.h:2 +msgid "Test the Raspberry Pi hardware" +msgstr "Otestujte hardvér Raspberry Pi" From b3deeaa152dc42159873f50eb321697d51b7e2d1 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Sun, 13 Dec 2020 12:22:11 +0000 Subject: [PATCH 08/21] Package update --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index a6e3e18..1de9e7c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.6) buster; urgency=medium + + * Added Slovak translation + + -- Simon Long Sun, 13 Dec 2020 12:16:59 +0000 + agnostics (0.5) buster; urgency=medium * Use system text file association to open log file From 3d5bc733aa04ff999bce0463643a5574537b5402 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 21 Jan 2021 16:28:04 +0000 Subject: [PATCH 09/21] Tidying of dialog creation --- .gitignore | 4 ++-- src/agnostics.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 358929b..1da1bb2 100644 --- a/.gitignore +++ b/.gitignore @@ -40,5 +40,5 @@ autoreconf.* debian/files debian/debhelper-build-stamp debian/.debhelper/ -debian/piagnostics/ -piagnostics +debian/agnostics/ +agnostics diff --git a/src/agnostics.c b/src/agnostics.c index 9764bb2..d2a451c 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -434,8 +434,7 @@ int main (int argc, char *argv[]) logfile = g_build_filename (g_get_home_dir (), "rpdiags.txt", NULL); // load widgets from UI file - builder = gtk_builder_new (); - gtk_builder_add_from_file (builder, PACKAGE_UI_DIR "/agnostics.ui", NULL); + builder = gtk_builder_new_from_file (PACKAGE_UI_DIR "/agnostics.ui"); piag_wd = (GtkWidget *) gtk_builder_get_object (builder, "piag_wd"); piag_tv = (GtkWidget *) gtk_builder_get_object (builder, "piag_tv"); From 008843eb8c078d07a9660c8649d79ef5c2992a0a Mon Sep 17 00:00:00 2001 From: Simon Long Date: Mon, 25 Jan 2021 14:15:22 +0000 Subject: [PATCH 10/21] Use standard message box --- data/agnostics.ui | 73 +++++++++++++++++++++++++++++++++-------------- src/agnostics.c | 14 +++++---- 2 files changed, 60 insertions(+), 27 deletions(-) diff --git a/data/agnostics.ui b/data/agnostics.ui index f2411bc..65d508e 100644 --- a/data/agnostics.ui +++ b/data/agnostics.ui @@ -2,65 +2,94 @@ - + pixbox False True center-on-parent + 340 True + dialog True + True False - + True False - 10 - 10 - 10 - 10 + 20 + 20 + 20 + 20 vertical - 5 + 20 - + + 300 True False - Running tests... - True - 30 + label + True False - False - 5 + True 0 - + True False False - False - 5 + True 1 - - Cancel + True - True - True + False + 20 + + + _Cancel + 100 + True + True + True + True + + + True + False + 0 + + + + + _OK + 100 + True + True + True + True + + + True + False + 1 + + False - False - 5 + True 2 diff --git a/src/agnostics.c b/src/agnostics.c index d2a451c..7742877 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -323,8 +323,9 @@ static int dialog_update (gpointer data) static void run_test (GtkWidget *wid, gpointer data) { // setting transient in the UI file doesn't work - but then, logically, it can't... + gtk_label_set_text (GTK_LABEL (msg_label), _("Running tests...")); gtk_window_set_transient_for (GTK_WINDOW (msg_wd), GTK_WINDOW (piag_wd)); - gtk_widget_show_all (GTK_WIDGET (msg_wd)); + gtk_widget_show (GTK_WIDGET (msg_wd)); // add a timer to update the dialog gdk_threads_add_timeout (1000, dialog_update, NULL); @@ -414,6 +415,7 @@ int main (int argc, char *argv[]) { GtkBuilder *builder; GtkCellRenderer *crt, *crb, *crr; + GtkWidget *wid; #ifdef ENABLE_NLS setlocale (LC_ALL, ""); @@ -443,10 +445,12 @@ int main (int argc, char *argv[]) btn_reset = (GtkWidget *) gtk_builder_get_object (builder, "btn_reset"); btn_log = (GtkWidget *) gtk_builder_get_object (builder, "btn_log"); - msg_wd = (GtkWidget *) gtk_builder_get_object (builder, "msg_wd"); - msg_label = (GtkWidget *) gtk_builder_get_object (builder, "msg_label"); - msg_prog = (GtkWidget *) gtk_builder_get_object (builder, "msg_prog"); - msg_btn = (GtkWidget *) gtk_builder_get_object (builder, "msg_btn"); + msg_wd = (GtkWidget *) gtk_builder_get_object (builder, "modal"); + msg_label = (GtkWidget *) gtk_builder_get_object (builder, "modal_msg"); + msg_prog = (GtkWidget *) gtk_builder_get_object (builder, "modal_pb"); + msg_btn = (GtkWidget *) gtk_builder_get_object (builder, "modal_cancel"); + wid = (GtkWidget *) gtk_builder_get_object (builder, "modal_ok"); + gtk_widget_hide (wid); g_object_unref (builder); // set up tree view From 3200b4174d3743099fac7c181bac88157dc0fa9c Mon Sep 17 00:00:00 2001 From: AvagSayan <62740268+Avag-Sayan@users.noreply.github.com> Date: Wed, 27 Jan 2021 10:20:12 -0800 Subject: [PATCH 11/21] Create hy.po Add the Armenian translation. --- hy.po | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 hy.po diff --git a/hy.po b/hy.po new file mode 100644 index 0000000..becd56f --- /dev/null +++ b/hy.po @@ -0,0 +1,106 @@ +# Armenian translations for agnostics package. +# Copyright (C) 2020 Raspberry Pi Ltd +# This file is distributed under the same license as the agnostics package. +# Simon Long , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: agnostics 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-05 14:16+0100\n" +"PO-Revision-Date: 2019-02-18 15:13+0000\n" +"Last-Translator: Armath \n" +"Language-Team: Armenian\n" +"Language: hy\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 +#, c-format +msgid "" +"%s\n" +"%s" +msgstr "" +"%s\n" +"%s" + +#: ../src/agnostics.c:203 +msgid "Not Run" +msgstr "Գործարկված չէ" + +#: ../src/agnostics.c:266 +msgid "Aborted" +msgstr "Ընդհավտած է" + +#: ../src/agnostics.c:271 +msgid "FAIL" +msgstr "Ձախողված" + +#: ../src/agnostics.c:276 +msgid "PASS" +msgstr "Հաջողված" + +#: ../src/agnostics.c:305 +#, c-format +msgid "Cancelling..." +msgstr "Չեղարկում..." + +#: ../src/agnostics.c:307 +#, c-format +msgid "Running %s..." +msgstr "%s -ի գործարկում..." + +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "թեստավորում" + +#: ../src/agnostics.c:350 +msgid "Not run" +msgstr "Չի գործարկվում" + +#: ../src/agnostics.c:458 +msgid "Test" +msgstr "Թեստ" + +#: ../src/agnostics.c:463 +msgid "Run Test?" +msgstr "Գործարկե՞լ թեստը" + +#: ../src/agnostics.c:470 +msgid "Result" +msgstr "Արդյունք" + +#: ../data/agnostics.ui.h:1 +msgid "Running tests..." +msgstr "Թեստի գործարկում..." + +#: ../data/agnostics.ui.h:2 +msgid "Cancel" +msgstr "Չեղարկել" + +#: ../data/agnostics.ui.h:3 ../data/agnostics.desktop.in.h:1 +msgid "Raspberry Pi Diagnostics" +msgstr "Raspberry Pi ախտորոշում" + +#: ../data/agnostics.ui.h:4 +msgid "_Close" +msgstr "Փակել" + +#: ../data/agnostics.ui.h:5 +msgid "Show _Log" +msgstr "Ցուցադրել տեղեկամատյաննը" + +#: ../data/agnostics.ui.h:6 +msgid "Re_set" +msgstr "Զրոյացնել կարգավորումները" + +#: ../data/agnostics.ui.h:7 +msgid "_Run Tests" +msgstr "Գործարկել թեստը" + +#: ../data/agnostics.desktop.in.h:2 +msgid "Test the Raspberry Pi hardware" +msgstr "Ստուգել Raspberry Pi ապարատը" From 12370ac1407aa0ab0c765a94df2680b11fed151c Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 24 Feb 2021 12:49:46 +0000 Subject: [PATCH 12/21] Update dependencies for GTK+3 --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 0a69142..ca31735 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: agnostics Section: admin Priority: optional Maintainer: Simon Long -Build-Depends: debhelper (>= 9), dh-autoreconf, libglib2.0-dev, libgtk-3-dev, +Build-Depends: debhelper (>= 9), dh-autoreconf, libglib2.0-dev, libgtk-3-dev (>= 3.24), libx11-dev, intltool Standards-Version: 3.9.6 Homepage: https://github.com/raspberrypi-ui/agnostics @@ -11,6 +11,6 @@ Vcs-Browser: https://github.com/raspberrypi-ui/agnostics Package: agnostics Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, mousepad, fio +Depends: ${shlibs:Depends}, ${misc:Depends}, libgtk-3-0 (>= 3.24), mousepad, fio Description: Raspberry Pi Diagnostics Extensible diagnostics package to test Raspberry Pi hardware From 21a4806ba540a38eed386ee543750b7b8e182c1e Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 24 Feb 2021 14:11:01 +0000 Subject: [PATCH 13/21] Move translation file to correct directory --- hy.po => po/hy.po | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename hy.po => po/hy.po (100%) diff --git a/hy.po b/po/hy.po similarity index 100% rename from hy.po rename to po/hy.po From f2e56b49def2baf979dca88022260a449bba5081 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 24 Feb 2021 15:36:36 +0000 Subject: [PATCH 14/21] Package update --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 1de9e7c..6f82ace 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.7) buster; urgency=medium + + * Added Armenian translation + + -- Simon Long Wed, 24 Feb 2021 15:36:05 +0000 + agnostics (0.6) buster; urgency=medium * Added Slovak translation From 9f825201b7453e5c4917767480df3aef98424788 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 1 Apr 2021 20:35:54 +0100 Subject: [PATCH 15/21] Remove hiding of app in other desktops --- data/agnostics.desktop.in | 1 - debian/changelog | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/agnostics.desktop.in b/data/agnostics.desktop.in index 5629789..cff7b04 100644 --- a/data/agnostics.desktop.in +++ b/data/agnostics.desktop.in @@ -5,6 +5,5 @@ _GenericName=Raspberry Pi Diagnostics _Comment=Test the Raspberry Pi hardware Icon=rpi Exec=agnostics -NotShowIn=GNOME;XFCE; StartupNotify=true Categories=Utility; diff --git a/debian/changelog b/debian/changelog index 6f82ace..07f4aac 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.8) buster; urgency=medium + + * Remove hiding of app in other desktops + + -- Simon Long Thu, 01 Apr 2021 20:35:04 +0100 + agnostics (0.7) buster; urgency=medium * Added Armenian translation From 745dcb0401c615493f746e9fdb72d0e81cf5f915 Mon Sep 17 00:00:00 2001 From: Emanuele Goldoni Date: Mon, 5 Apr 2021 18:31:25 +0200 Subject: [PATCH 16/21] Add Italian translation --- po/it.po | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 po/it.po diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..2e2cd38 --- /dev/null +++ b/po/it.po @@ -0,0 +1,126 @@ +# Italian translations for agnostics package. +# Copyright (C) 2020 Raspberry Pi Ltd +# This file is distributed under the same license as the agnostics package. +# Emanuele Goldoni , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-02-24 16:51+0100\n" +"PO-Revision-Date: 2021-04-05 18:30+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.1\n" +"Last-Translator: Emanuele Goldoni \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: it\n" + +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 +#, c-format +msgid "" +"%s\n" +"%s" +msgstr "" +"%s\n" +"%s" + +#: ../src/agnostics.c:203 +msgid "Not Run" +msgstr "Non eseguito" + +#: ../src/agnostics.c:266 +msgid "Aborted" +msgstr "Interrotto" + +#: ../src/agnostics.c:271 +msgid "FAIL" +msgstr "FALLITO" + +#: ../src/agnostics.c:276 +msgid "PASS" +msgstr "PASSATO" + +#: ../src/agnostics.c:305 +#, c-format +msgid "Cancelling..." +msgstr "Annullamento..." + +#: ../src/agnostics.c:307 +#, c-format +msgid "Running %s..." +msgstr "Esecuzione di %s..." + +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "test" + +#. setting transient in the UI file doesn't work - but then, logically, it can't... +#: ../src/agnostics.c:326 +msgid "Running tests..." +msgstr "Esecuzione dei test..." + +#: ../src/agnostics.c:351 +msgid "Not run" +msgstr "Non eseguito" + +#: ../src/agnostics.c:461 +msgid "Test" +msgstr "Test" + +#: ../src/agnostics.c:466 +msgid "Run Test?" +msgstr "Eseguire test?" + +#: ../src/agnostics.c:473 +msgid "Result" +msgstr "Risultato" + +#: ../data/sdtest.sh:2 +msgid "SD Card Speed Test" +msgstr "Test velocità scheda SD" + +#: ../data/sdtest.sh:3 +msgid "" +"Determines whether an SD card can read and write data fast enough to provide adequate performance.\n" +"\n" +"Should be run on a new or newly-formatted SD card." +msgstr "" +"Determina se una scheda SD può leggere e scrivere dati abbastanza velocemente da fornire prestazioni adeguate.\n" +"\n" +"Dovrebbe essere eseguito su una scheda SD nuova o appena formattata." + +#: ../data/agnostics.ui.h:2 +msgid "_Cancel" +msgstr "_Annulla" + +#: ../data/agnostics.ui.h:3 +msgid "_OK" +msgstr "_OK" + +#: ../data/agnostics.ui.h:4 ../data/agnostics.desktop.in.h:1 +msgid "Raspberry Pi Diagnostics" +msgstr "Diagnostica Raspberry Pi" + +#: ../data/agnostics.ui.h:5 +msgid "_Close" +msgstr "_Chiudi" + +#: ../data/agnostics.ui.h:6 +msgid "Show _Log" +msgstr "Mostra _registro" + +#: ../data/agnostics.ui.h:7 +msgid "Re_set" +msgstr "Re_setta" + +#: ../data/agnostics.ui.h:8 +msgid "_Run Tests" +msgstr "_Esegui i test" + +#: ../data/agnostics.desktop.in.h:2 +msgid "Test the Raspberry Pi hardware" +msgstr "Test dell'hardware di Raspberry Pi" From 1960bdd2ee2120690964dd934c8feee971676f1d Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 15 Apr 2021 16:02:11 +0100 Subject: [PATCH 17/21] Package update --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 07f4aac..62b87de 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.9) buster; urgency=medium + + * Added Italian translation + + -- Simon Long Thu, 15 Apr 2021 16:01:46 +0100 + agnostics (0.8) buster; urgency=medium * Remove hiding of app in other desktops From 35137f7a97501fce8d64d8a7a16a2f066a6454ee Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 15 Apr 2021 16:02:53 +0100 Subject: [PATCH 18/21] Compatibility update --- debian/compat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/compat b/debian/compat index ec63514..f599e28 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +10 From 10618c6ec4faabbf70ae9bff403c1cb7d83d407b Mon Sep 17 00:00:00 2001 From: Simon Long Date: Tue, 15 Mar 2022 10:12:14 +0000 Subject: [PATCH 19/21] Fix size of modal dialog --- data/agnostics.ui | 107 ++++++++++++++++++++++------------------------ debian/changelog | 6 +++ 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/data/agnostics.ui b/data/agnostics.ui index 65d508e..6d209e6 100644 --- a/data/agnostics.ui +++ b/data/agnostics.ui @@ -1,36 +1,34 @@ - + pixbox - False + False + False True - center-on-parent - 340 - True - dialog - True - True + center-on-parent + 340 + True + dialog + True + True False - - - True - False - 20 - 20 - 20 - 20 + False + 20 + 20 + 20 + 20 vertical 20 - 300 + 300 True - False + False label True @@ -43,7 +41,7 @@ True - False + False False @@ -54,16 +52,16 @@ True - False + False 20 _Cancel - 100 + 100 True - True - True - True + True + True + True True @@ -74,11 +72,11 @@ _OK - 100 + 100 True - True - True - True + True + True + True True @@ -97,31 +95,28 @@ - False + False Raspberry Pi Diagnostics - rpi - - - + rpi True - False - 5 - 5 - 5 - 5 + False + 5 + 5 + 5 + 5 vertical 5 True - True - in + True + in True - True + True @@ -137,16 +132,16 @@ True - False + False 3 - start + start _Close True - True - True - True + True + True + True True @@ -158,9 +153,9 @@ Show _Log True - True - True - True + True + True + True True @@ -173,9 +168,9 @@ Re_set True - True - True - True + True + True + True True @@ -188,9 +183,9 @@ _Run Tests True - True - True - True + True + True + True True @@ -203,7 +198,7 @@ False True - end + end 1 diff --git a/debian/changelog b/debian/changelog index 62b87de..5eb244b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +agnostics (0.10) bullseye; urgency=medium + + * Fix size of modal dialog + + -- Simon Long Tue, 15 Mar 2022 10:09:31 +0000 + agnostics (0.9) buster; urgency=medium * Added Italian translation From 9c0009c1f45a0027434e627e78ddfa6f9a52f0e2 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 10 Aug 2022 12:15:35 +0100 Subject: [PATCH 20/21] Fix some warnings --- src/Makefile.am | 3 ++- src/agnostics.c | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 320d6e4..dce06cd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,8 @@ agnostics_CFLAGS = \ -DPACKAGE_BIN_DIR=\""$(bindir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ $(PACKAGE_CFLAGS) \ - $(G_CAST_CHECKS) + $(G_CAST_CHECKS) \ + -Wall agnostics_SOURCES = agnostics.c diff --git a/src/agnostics.c b/src/agnostics.c index 7742877..d0890ae 100644 --- a/src/agnostics.c +++ b/src/agnostics.c @@ -68,7 +68,7 @@ gchar *logfile; static void log_init (void); static void log_message (const char *format, ...); -static int find_tests (void); +static void find_tests (void); static void parse_test_file (gchar *path); static gpointer test_thread (gpointer data); static int dialog_update (gpointer data); @@ -91,7 +91,7 @@ static void log_init (void) // get version number of agnostics package sprintf (buffer, "(unknown)"); - if (fp = popen ("apt-cache policy agnostics | grep Installed | cut -d : -f 2", "r")) + if ((fp = popen ("apt-cache policy agnostics | grep Installed | cut -d : -f 2", "r"))) { if (!fgets (buffer, sizeof (buffer) - 1, fp)) sprintf (buffer, "(unknown)"); pclose (fp); @@ -102,7 +102,7 @@ static void log_init (void) tstr = localtime (&now); // write header, overwriting existing file - if (fp = fopen (logfile, "w")) + if ((fp = fopen (logfile, "w"))) { fprintf (fp, "Raspberry Pi Diagnostics - version %s\n%s\n", g_strstrip (buffer), asctime (tstr)); fclose (fp); @@ -121,7 +121,7 @@ static void log_message (const char *format, ...) vsprintf (buffer, format, args); va_end (args); - if (fp = fopen (logfile, "a")) + if ((fp = fopen (logfile, "a"))) { fprintf (fp, "%s\n", buffer); fclose (fp); @@ -130,7 +130,7 @@ static void log_message (const char *format, ...) /* Find all test files in the data directory and add them to the tests list store */ -static int find_tests (void) +static void find_tests (void) { GDir *data_dir; const gchar *name; From 9e36f5712828ae448c1e8c1e9a740f2f8ce3b9c4 Mon Sep 17 00:00:00 2001 From: PolPolyLingo <92143274+PolPolyLingo@users.noreply.github.com> Date: Wed, 5 Oct 2022 22:47:35 +0300 Subject: [PATCH 21/21] Add files via upload --- po/lt.po | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/pl.po | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 252 insertions(+) create mode 100644 po/lt.po create mode 100644 po/pl.po diff --git a/po/lt.po b/po/lt.po new file mode 100644 index 0000000..1ebbb14 --- /dev/null +++ b/po/lt.po @@ -0,0 +1,126 @@ +# Lithuanian translations for agnostics package. +# Copyright (C) 2020 Raspberry Pi Ltd +# This file is distributed under the same license as the agnostics package. +# Paulius Narkevičius , 2022. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-10-02 14:51+0100\n" +"PO-Revision-Date: 2022-10-01 15:28+0300\n" +"Last-Translator: NP \n" +"Language-Team: \n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.1.1\n" + +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 +#, c-format +msgid "" +"%s\n" +"%s" +msgstr "" +"%s\n" +"%s" + +#: ../src/agnostics.c:203 +msgid "Not Run" +msgstr "Nevykdyti" + +#: ../src/agnostics.c:266 +msgid "Aborted" +msgstr "Nutraukta" + +#: ../src/agnostics.c:271 +msgid "FAIL" +msgstr "NEPAVYKO" + +#: ../src/agnostics.c:276 +msgid "PASS" +msgstr "PAVYKO" + +#: ../src/agnostics.c:305 +#, c-format +msgid "Cancelling..." +msgstr "Atšaukiama..." + +#: ../src/agnostics.c:307 +#, c-format +msgid "Running %s..." +msgstr "Vykdoma %s..." + +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "testai" + +#. setting transient in the UI file doesn't work - but then, logically, it can't... +#: ../src/agnostics.c:326 +msgid "Running tests..." +msgstr "Vykdomi testai..." + +#: ../src/agnostics.c:351 +msgid "Not run" +msgstr "Nevykdyti" + +#: ../src/agnostics.c:461 +msgid "Test" +msgstr "Test" + +#: ../src/agnostics.c:466 +msgid "Run Test?" +msgstr "Vykdyti testą?" + +#: ../src/agnostics.c:473 +msgid "Result" +msgstr "Rezultatas" + +#: ../data/sdtest.sh:2 +msgid "SD Card Speed Test" +msgstr "SD kortelės našumo testas" + +#: ../data/sdtest.sh:3 +msgid "" +"Determines whether an SD card can read and write data fast enough to provide adequate performance.\n" +"\n" +"Should be run on a new or newly-formatted SD card." +msgstr "" +"Nustatoma ar SD kortelė sugeba nuskaityti ir įrašyti duomenis išlaikant pakankamą greitį siekiu užtikrinti patenkinamus veiklos rezultatus.\n" +"\n" +"Turėtumei vykdyti panaudojant naują arba naujai išformatuotą SD kortelę." + +#: ../data/agnostics.ui.h:2 +msgid "_Cancel" +msgstr "_Atšaukti" + +#: ../data/agnostics.ui.h:3 +msgid "_OK" +msgstr "_Gerai" + +#: ../data/agnostics.ui.h:4 ../data/agnostics.desktop.in.h:1 +msgid "Raspberry Pi Diagnostics" +msgstr "Raspberry Pi diagnostika" + +#: ../data/agnostics.ui.h:5 +msgid "_Close" +msgstr "_Uždaryti" + +#: ../data/agnostics.ui.h:6 +msgid "Show _Log" +msgstr "Peržiūrėti _užregistruotus duomenis" + +#: ../data/agnostics.ui.h:7 +msgid "Re_set" +msgstr "Re_setas" + +#: ../data/agnostics.ui.h:8 +msgid "_Run Tests" +msgstr "_Vykdyti testus" + +#: ../data/agnostics.desktop.in.h:2 +msgid "Test the Raspberry Pi hardware" +msgstr "Testuoti Raspberry Pi aparatinę įrangą" diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..3abc63c --- /dev/null +++ b/po/pl.po @@ -0,0 +1,126 @@ +# Polish translations for agnostics package. +# Copyright (C) 2020 Raspberry Pi Ltd +# This file is distributed under the same license as the agnostics package. +# Paulius Narkevičius , 2022. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-10-02 14:51+0100\n" +"PO-Revision-Date: 2022-10-01 16:09+0300\n" +"Last-Translator: NP \n" +"Language-Team: \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.1.1\n" + +#. create marked-up display text and add to list store +#: ../src/agnostics.c:200 +#, c-format +msgid "" +"%s\n" +"%s" +msgstr "" +"%s\n" +"%s" + +#: ../src/agnostics.c:203 +msgid "Not Run" +msgstr "Nie wykonaj" + +#: ../src/agnostics.c:266 +msgid "Aborted" +msgstr "Przerwane" + +#: ../src/agnostics.c:271 +msgid "FAIL" +msgstr "Nie powiódło się" + +#: ../src/agnostics.c:276 +msgid "PASS" +msgstr "Powiódło się" + +#: ../src/agnostics.c:305 +#, c-format +msgid "Cancelling..." +msgstr "Anulujem..." + +#: ../src/agnostics.c:307 +#, c-format +msgid "Running %s..." +msgstr "Wykonajem %s..." + +#: ../src/agnostics.c:307 +msgid "tests" +msgstr "test" + +#. setting transient in the UI file doesn't work - but then, logically, it can't... +#: ../src/agnostics.c:326 +msgid "Running tests..." +msgstr "Wykonajem test..." + +#: ../src/agnostics.c:351 +msgid "Not run" +msgstr "Nie wykonaj" + +#: ../src/agnostics.c:461 +msgid "Test" +msgstr "Test" + +#: ../src/agnostics.c:466 +msgid "Run Test?" +msgstr "Wykonaj test?" + +#: ../src/agnostics.c:473 +msgid "Result" +msgstr "Resultat" + +#: ../data/sdtest.sh:2 +msgid "SD Card Speed Test" +msgstr "Test prędkości SD karty" + +#: ../data/sdtest.sh:3 +msgid "" +"Determines whether an SD card can read and write data fast enough to provide adequate performance.\n" +"\n" +"Should be run on a new or newly-formatted SD card." +msgstr "" +"Ustaw, czy karta jest w stanie czytać i pisać z odpowiednią prędkością i zapewnia odpowiednią wydajność.\n" +"\n" +"Powinny wykonat przy użyciu nowej lub nowo sformatowanej karty." + +#: ../data/agnostics.ui.h:2 +msgid "_Cancel" +msgstr "_Anuluj" + +#: ../data/agnostics.ui.h:3 +msgid "_OK" +msgstr "_Dobra" + +#: ../data/agnostics.ui.h:4 ../data/agnostics.desktop.in.h:1 +msgid "Raspberry Pi Diagnostics" +msgstr "Diagnostyka Raspberry Pi" + +#: ../data/agnostics.ui.h:5 +msgid "_Close" +msgstr "_Zamknij" + +#: ../data/agnostics.ui.h:6 +msgid "Show _Log" +msgstr "Pokaż _zarejestrowane dane" + +#: ../data/agnostics.ui.h:7 +msgid "Re_set" +msgstr "Re_setuj" + +#: ../data/agnostics.ui.h:8 +msgid "_Run Tests" +msgstr "_Wykonaj test" + +#: ../data/agnostics.desktop.in.h:2 +msgid "Test the Raspberry Pi hardware" +msgstr "Testuj Raspberry Pi komputerow"