alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
277 stars 49 forks source link

Testsuite fails when run against `alr` built with `alr build` command #1271

Open 0rzech opened 1 year ago

0rzech commented 1 year ago

This is a follow up of comment I made in #1260.

Tested on Linux.

When alr is built with gprbuild -j0 -P alr_env, all tests pass. All tests pass as well, when they are run against alr 1.2.1 downloaded from GitHub. All tests pass after building alr with alr build command too, but only after I set project-files = ["alr_env.gpr"] in project's alire.toml.

But when alr is built with alr build command without making any changes to project's alire.toml, the input/user-input-validation test fails.

The test fails with raised CONSTRAINT_ERROR : Ada.Text_IO.Get_Upper_Half_Char_Immed: invalid wide character in Text_'I'O input from here.

To reproduce, just do alr build and run the testsuite.

If you remove ł from the name variable used in test, the test will fail by not having expected properties set at all, probably because of alr's failure to load alr-config/config.toml here.

To reproduce this one, just do alr build, remove ł from the aforementioned name variable and run the testsuite.

mosteo commented 1 year ago

There were some outdated pins in alire.toml. I'm working on a fix.