diff --git a/tests/alire.toml b/tests/alire.toml index 7262be7..c7255e8 100644 --- a/tests/alire.toml +++ b/tests/alire.toml @@ -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" diff --git a/tests/gnat.adc b/tests/gnat.adc new file mode 100644 index 0000000..c20bff2 --- /dev/null +++ b/tests/gnat.adc @@ -0,0 +1,2 @@ +pragma Restrictions (No_Obsolescent_Features); +pragma Profile (No_Implementation_Extensions); diff --git a/tests/tests.gpr b/tests/tests.gpr index 6b407e9..3c27553 100644 --- a/tests/tests.gpr +++ b/tests/tests.gpr @@ -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;