[CMake] Problems running npm-based tests on Windows
Andrey Fedorov
andrey.fedorov at gmail.com
Wed Aug 24 13:10:36 EDT 2016
Hi,
we are running ctest's on appveyor using npm-installed packages.
Specifically, we run jsonlint and ajv on json files to validate the
content.
Packages are installed in this line:
https://github.com/QIICR/dcmqi/blob/master/appveyor.yml#L12-L13 of the
appveyor configuration.
The installed packages can be run wihtout problems when invoked
directly from command line on appveyor. These lines
https://github.com/QIICR/dcmqi/blob/master/appveyor.yml#L35-L36 both
work fine on appveyor:
https://ci.appveyor.com/project/fedorov/dcmqi/build/0.0.251#L1203.
The path to the ajv package used by ctest is identical to the one that
works when invoked directly from the cmd shell; here is the location
where ctest is invoked:https://github.com/QIICR/dcmqi/blob/master/appveyor.yml#L37,
and this is the where it is being run by appveyor:
https://ci.appveyor.com/project/fedorov/dcmqi/build/0.0.251#L1662.
Bottom line: ajv works when invoked directly from the appveyor windows
cmd shell, but not when called by ctest.
Why is ctest failing to run the test with "Not Run/BAD_COMMAND" status?
AF
More information about the CMake
mailing list