Skip to content

Commit

Permalink
Convert folder tests/ to Alire crate
Browse files Browse the repository at this point in the history
Signed-off-by: onox <[email protected]>
  • Loading branch information
onox committed Jul 31, 2022
1 parent fae8809 commit 625ff05
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/alire.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ maintainers-logins = ["onox"]

executables = ["test"]

[configuration]
disabled = true
[build-switches]
validation.compile_checks = "warnings"
"*".style_checks = ["-gnatygAO-Is"]

[[depends-on]]
emojis = "^1.0.0"
Expand Down
2 changes: 2 additions & 0 deletions tests/gnat.adc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pragma Restrictions (No_Obsolescent_Features);
pragma Profile (No_Implementation_Extensions);
13 changes: 10 additions & 3 deletions tests/tests.gpr
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
with "../emojis";
with "config/tests_config";

project Tests is

for Create_Missing_Dirs use "True";

for Source_Dirs use ("src");
for Object_Dir use "build/obj";
for Object_Dir use "build/obj/" & Tests_Config.Build_Profile;
for Library_Dir use "build/lib";

for Exec_Dir use "build/bin";

for Main use ("test.adb");

package Compiler renames Emojis.Compiler;
package Binder renames Emojis.Binder;
package Compiler is
for Default_Switches ("Ada") use Tests_Config.Ada_Compiler_Switches & ("-gnatyM99");
for Local_Configuration_Pragmas use "gnat.adc";
end Compiler;

package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;

end Tests;

0 comments on commit 625ff05

Please sign in to comment.