[flang-dev] Enabling flang/f18 tests on Windows by porting shell scripts to Python

Andrzej Warzynski via flang-dev flang-dev at lists.llvm.org
Wed Jul 7 13:29:29 PDT 2021


+1 to this proposal!

Clang's `-verify` is implemented in terms of Clang's sophisticated 
diagnostics API. It would be fantastic to introduce something similar in 
Flang, but it would require re-designing how diagnostics are generated 
and dumped. Something worth considering.

-Andrzej

On 07/07/2021 21:14, Michael Kruse via flang-dev wrote:
> Yes, using python would be great. Python is required anyway and even
> on non-Windows systems bash cannot be assumed to be just present (e.g.
> MacOS does not install it anymore by default and only installs a very
> old version of Bash due to GPLv3 issues).
> 
> By comparison, Clang has a `-verify` option in the binary which would
> be a possibility for Flang as well without needing to regex the
> output.
> 
> Michal
> 
> 
> Am Mi., 7. Juli 2021 um 03:29 Uhr schrieb Kiran Chandramohan via
> flang-dev <flang-dev at lists.llvm.org>:
>>
>> Hello all,
>>
>> Currently, we cannot run the flang tests on Windows since it uses some shell scripts (like ./test/Semantics/test_errors.sh). The Windows buildbot (https://lab.llvm.org/buildbot/#/builders/172) set up by Michael Kruse currently builds flang but does not run the tests due to this reason. Porting these shell scripts to Python was suggested as a possible solution. We have an intern who is interested in taking up this task. I expect no change in functionality and the Python script will be a straightforward replacement of the shell script.
>>
>> Is porting the testing scripts to Python OK with everyone?
>>
>> Thanks,
>> Kiran
>> _______________________________________________
>> flang-dev mailing list
>> flang-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev
> _______________________________________________
> flang-dev mailing list
> flang-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev
> 


More information about the flang-dev mailing list