Compare commits

...

5 Commits

Author SHA1 Message Date
Fabien Chouteau c3a291270b Update gtkada-22.0.0.toml 2021-11-16 12:09:33 +01:00
Fabien Chouteau 9588492dcd Update gtkada-22.0.0.toml 2021-11-16 11:47:10 +01:00
Fabien Chouteau 0290f3be19 GTKada 22.0.0 2021-11-16 10:45:33 +01:00
Paul Jarrett 0b50f912a0 trendy_test 0.0.2 (#401) 2021-11-08 12:59:53 +01:00
pmunts f3aaaf5947 Minor improvements (#397)
* libsimpleio release 1.20010.1

Minor improvements:

Added readback parameter to GPIO.RemoteIO.Create.

Added definitions for Raspberry Pi 4 extra I2C buses to packages RaspberryPi
and MUNTS_0018.

* remoteio release 1.20010.1

Minor improvements:

Added readback parameter to GPIO.RemoteIO.Create.
2021-11-05 10:18:02 +01:00
4 changed files with 255 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
description = "An Ada graphical toolkit based on Gtk+"
website = "https://github.com/adacore/gtkada"
name = "gtkada"
version = "22.0.0"
authors = ["AdaCore"]
licenses = "GPL-3.0-or-later WITH GCC-exception-3.1"
maintainers = ["chouteau@adacore.com"]
maintainers-logins = ["Fabien-Chouteau"]
project-files = ["install_dir/lib/gnat/gtkada.gpr"]
tags = ["gtk", "gui"]
[configuration]
disabled = true
[[actions."case(os)".windows]]
type = "post-fetch"
command = ["bash", "configure", "--build=x86_64-w64-mingw32", "--with-GL=no"]
[[actions."case(os)"."..."]]
type = "post-fetch"
command = ["bash", "configure", "--with-GL=no"]
# Since the GTKAda project doesn't build alone with just gprbuild we build and
# install with the Makefile from post-fetch action.
[[actions."case(os)".windows]]
type = "post-fetch"
command = ["make", "all", "install", "prefix=install_dir"]
[[actions."case(os)"."..."]]
type = "post-fetch"
command = ["make", "all", "install", "prefix=install_dir"]
[[depends-on]]
make = "*"
pkg_config = "*"
libgtk3 = "^3"
[depends-on.'case(os)'.windows]
winpthreads = "*"
[gpr-externals]
LIBRARY_TYPE = ["static", "static-pic", "relocatable"]
[environment.'case(distribution)']
msys2.C_INCLUDE_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/include"
msys2.LIBRARY_PATH.append = "${DISTRIB_ROOT}/mingw64/x86_64-w64-mingw32/lib"
[origin]
url="https://github.com/AdaCore/gtkada/archive/v22.0.0/gtkada-22.0.0.zip"
hashes=["sha512:8192cf81732dd1ce7bc6a2c7bf43e4665877933777af8ccc1a2ced48bec83c1550959e8fb1f786b9b8fef3f5ae5d854a0b3696af49cdb9d603d4429e2a58c42c"]
@@ -0,0 +1,27 @@
name = "libsimpleio"
description = "Linux Simple I/O Library bindings for GNAT Ada"
version = "1.20010.1"
licenses = "BSD-1-Clause"
website = "https://github.com/pmunts/libsimpleio"
authors = ["Philip Munts"]
maintainers = ["Philip Munts <phil@munts.net>"]
maintainers-logins = ["pmunts"]
project-files = ["libsimpleio.gpr", "programs.gpr"]
tags = ["embedded", "linux", "libsimpleio", "remoteio", "beaglebone",
"pocketbeagle", "raspberrypi", "adc", "dac", "gpio", "hid", "i2c", "motor",
"pwm", "sensor", "serial", "servo", "spi", "stepper", "watchdog"]
[available."case(os)"]
'linux' = true
"..." = false
[origin]
hashes = [
"sha256:5239944839ab69e76c33dd444f9a91e8182f0b9631d8fcdfbe16790b8c3548d9",
"sha512:9106e6cb0159411336657bcd3d20a16956c05b82a8ded016a6375bf21161159bac812bade405bec0c4585e594e24e2460d10c981e4e2600958199a45a09e018b",
]
url = "http://repo.munts.com/alire/libsimpleio-1.20010.1.tbz2"
+48
View File
@@ -0,0 +1,48 @@
name = "remoteio"
description = "Remote I/O Protocol Client Library for GNAT Ada"
version = "1.20010.1"
licenses = "BSD-1-Clause"
website = "https://github.com/pmunts/libsimpleio"
authors = ["Philip Munts"]
maintainers = ["Philip Munts <phil@munts.net>"]
maintainers-logins = ["pmunts"]
project-files = ["remoteio.gpr", "programs.gpr"]
tags = ["embedded", "linux", "remoteio", "adc", "dac", "gpio", "i2c", "motor",
"pwm", "sensor", "serial", "servo", "spi", "stepper"]
[available."case(os)"]
'linux|windows' = true
"..." = false
# Linux needs libhidapi-dev and/or libusb-1.0-0-dev installed
[[depends-on]]
[depends-on."case(os)"."linux"]
libhidapi = "*"
[[depends-on]]
[depends-on."case(os)"."linux"]
libusb = "~1.0"
# On Linux, patch hid-hidapi.ads to link with libhidapi-hidraw.so
[[actions."case(os)".linux]]
type = "post-fetch"
command = ["sh", "-c", "sed -i 's/lhidapi/lhidapi-hidraw/g' src/objects/hid/hid-hidapi.ads"]
# On Windows, copy .DLL files to ./bin/ (for execution) and ./lib/ (for linking)
[[actions."case(os)".windows]]
type = "post-fetch"
command = ["sh", "-c", "mkdir -p ./bin && cp src/win64/*.dll ./bin && mkdir -p ./lib && cp src/win64/*.dll ./lib"]
[origin]
hashes = [
"sha256:81c2457e882c9fa28532a9732a030067e103014c15b568c668069c5651cba68e",
"sha512:3f33e1d13093abed1a9f8a6ccdcaedbfb53ac7f890485cd867433999f4ee8fd613209ee4dcbb0b1d3692f92885a51446e4593ffed2891d15938546311027a32d",
]
url = "http://repo.munts.com/alire/remoteio-1.20010.1.tbz2"
+130
View File
@@ -0,0 +1,130 @@
name = "trendy_test"
description = "Minimal Effort Ada Unit Testing Library"
version = "0.0.2"
website = "https://github.com/pyjarrett/trendy_test"
authors = ["Paul Jarrett"]
licenses = "Apache-2.0"
maintainers = ["Paul Jarrett <jarrett.paul.young@gmail.com>"]
maintainers-logins = ["pyjarrett"]
tags = ["test", "unit-test", "unit"]
project-files = ["trendy_test.gpr"]
long-description = '''
# trendy_test
Minimum Effort Ada Unit Testing Library
[![Build Status](https://github.com/pyjarrett/trendy_test/actions/workflows/build.yml/badge.svg)](https://github.com/pyjarrett/trendy_test/actions)
## Features
- Minimum setup
- Parallelization of tests
- Randomization of test order to find dependencies between tests
- No generated code or scripts needed
## Example
```ada
with Ada.Text_IO;
with Trendy_Test;
with Trendy_Test.Reports;
procedure My_Test_Main is
begin
Trendy_Test.Register (My_Tests.All_Tests);
Trendy_Test.Reports.Print_Basic_Report(Trendy_Test.Run);
end My_Test_Main;
----------------------------------------------------------------
with Trendy_Test;
package My_Tests is
function All_Tests return Trendy_Test.Test_Group;
end Trendy_Command_Line_Tests;
----------------------------------------------------------------
package body My_Tests is
procedure Test_Sample (T : in out Trendy_Test.Operation'Class) is
begin
-- Don't put anything above here you don't want run during listing/other ops.
T.Register;
T.Assert (Some_Expression);
end Test_Sample;
procedure Test_Is_Disabled (T : in out Trendy_Test.Operation'Class) is
begin
T.Register(Disabled => True); -- Disabled, don't run this test.
T.Assert (Some_Expression);
end Test_Sample;
procedure Test_Is_Not_Run_In_Parallel (T : in out Trendy_Test.Operation'Class) is
begin
T.Register(Parallelize => False); -- There's some dependency, so don't run it in parallel.
T.Assert (Some_Expression);
end Test_Sample;
function All_Tests return Trendy_Test.Test_Group is
begin
return
(Test_Sample'Access,
Test_Is_Disabled'Access
);
end All_Tests;
end My_Tests;
```
## Example Output
```
D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main
[ PASS ] shared_pointers_tests.test_multiple_oracles 0.000105300
[ PASS ] shared_pointers_tests.test_single_oracle 0.000052700
[ PASS ] trendy_command_line.context_free.tests.test_is_long_option 0.000002300
[ PASS ] trendy_command_line.context_free.tests.test_is_option_terminator 0.000007200
[ PASS ] trendy_command_line.context_free.tests.test_is_short_option 0.000005000
[ PASS ] trendy_command_line.context_free.tests.test_is_short_option_or_group 0.000009200
[ PASS ] trendy_command_line_tests.flags.test_boolean_option_defaults 0.000149400
[ FAIL ] trendy_command_line_tests.flags.test_boolean_option_short_option_group 0.000185600
Assertion Failed: (Condition false) at D:\dev\ada\trendy_command_line\src\trendy_command_line_tests-flags.adb: 110[D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main.exe]
0x453530 Trendy_Test.Report_Failure at trendy_test.adb:88
0x4535a4 Trendy_Test.Assert at trendy_test.adb:102
0x425338 Trendy_Command_Line_Tests.Flags.Test_Boolean_Option_Short_Option_Group at trendy_command_line_tests-flags.adb:110
0x451ff1 Trendy_Test.Run_Test at trendy_test.adb:237
0x452d4c Trendy_Test.Run.Parallel_Test_TaskTB at trendy_test.adb:277
0x4601a2 system__tasking__queuing__select_protected_entry_call at ???
[C:\Windows\System32\KERNEL32.DLL]
0x7ffd7d1f7032
[C:\Windows\SYSTEM32\ntdll.dll]
0x7ffd7e08264f
[ FAIL ] trendy_command_line_tests.flags.test_boolean_option_short_options 0.001984800
Assertion Failed: (Condition false) at D:\dev\ada\trendy_command_line\src\trendy_command_line_tests-flags.adb: 93[D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main.exe]
0x453530 Trendy_Test.Report_Failure at trendy_test.adb:88
0x4535a4 Trendy_Test.Assert at trendy_test.adb:102
0x425a43 Trendy_Command_Line_Tests.Flags.Test_Boolean_Option_Short_Options at trendy_command_line_tests-flags.adb:93
0x451ff1 Trendy_Test.Run_Test at trendy_test.adb:237
0x452d4c Trendy_Test.Run.Parallel_Test_TaskTB at trendy_test.adb:277
0x4601a2 system__tasking__queuing__select_protected_entry_call at ???
[C:\Windows\System32\KERNEL32.DLL]
0x7ffd7d1f7032
[C:\Windows\SYSTEM32\ntdll.dll]
0x7ffd7e08264f
[ PASS ] trendy_command_line_tests.flags.test_boolean_option_toggles 0.000153600
[ PASS ] trendy_command_line_tests.flags.test_boolean_option_too_many_occurrences
0.003517400
[ PASS ] trendy_command_line_tests.test_long_option_with_argument 0.000013000
[ PASS ] trendy_command_line_tests.test_one_operand 0.000006700
[ PASS ] trendy_command_line_tests.test_short_option_with_argument 0.000193600
Results: Passed: 12 / 14
```
'''
[origin]
commit = "9b5b6a52a6f328e90445f826e5e82a771c41611c"
url = "git+https://github.com/pyjarrett/trendy_test.git"