Testing source code program with 0install
Ilja Honkonen <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello
I have a program, for example:
int main() {}
, that I'd like to test by compiling it using several compilers and
compiler flags. Can I use 0install to automatically compile and run the
program using all permutations of e.g. "CC = gcc4 gcc5 clang35 clang36
icc14 icc15" and "CFLAGS = -Os -O0 -O1 -O2 -O3"? The program would also
have dependencies that I'd like to be compiled with same CC as the program.
Should I make each CC into a separate interface required by the program
(and its dependencies) that only injects some value for CC into the
environment and similarly for CFLAGS? I could also create separate
executables from the same source with different compiler flags but the
same would have to be done for each dependency also which would
duplicate a lot of interface code. Are there any other options for doing
this?
Thanks
Ilja
------------------------------------------------------------------------------