You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
Description
The dstripe application test dstripe_app_test_parallel is failing due to an ill-formed xargs command string in its regression test Makefile. This only occurs if the file path contains a X.
The dstripe_app_test_parallel app test is of the old format of ISIS regression tests where the test is managed with commands contained in a Makefile. The dstripeparallel test run in the Makefile contains the following command which causes the failure. Note the parameter -IX which causes all occurrences of X in the command to be replaced with the current line from $(INPUT)/root.lis ($PROJECT_ROOT is the base directory):
When this test is run in a directory containing a capital X in the path, it fails:
(Aug262024) sciproc01 .../build [520]: ctest -R dstripe_app_test_parallel --output-on-failure
Test project $PROJECT_ROOT/APEX/IsisDev/Aug262024/ISIS3/build
Start 458: dstripe_app_test_parallel
1/1 Test #458: dstripe_app_test_parallel ........***Failed 0.75 sec
CMake Deprecation Warning at $PROJECT_ROOT/APEX/IsisDev/Aug262024/ISIS3/isis/cmake/RunMakeFileTest.cmake:6 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
SOURCE FOLDER $PROJECT_ROOT/APEX/IsisDev/Aug262024/ISIS3/isis/src/base/apps/dstripe/tsts/parallel
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
**USER ERROR** The preference file $PROJECT_ROOT/APEI15240033RDR/IsisDev/Aug262024/ISIS3/build/TestPreferences was not found or does not exist in Preference.cpp at 39.
**USER ERROR** The preference file $PROJECT_ROOT/APEI22976033RDR/IsisDev/Aug262024/ISIS3/build/TestPreferences was not found or does not exist in Preference.cpp at 39.
make[2]: *** [Makefile:6: commands] Error 123
...
0% tests passed, 1 tests failed out of 1
Label Time Summary:
app = 0.76 sec*proc (1 test)
Total Test time (real) = 0.92 sec
The following tests FAILED:
458 - dstripe_app_test_parallel (Failed)
Note that the occurrence of APEX has been replaced with APEI15240033RDR due to xargs substitution of X with I15240033RDR, the first line from the root.lis file, which is the base file name for the test cube.
There appears to be three total make files that contain an xargs command. The dstripe test is the only one containing this particular form of argument substitution. The others contain acceptable alternatives to -IX:
ISIS version(s) affected: all
My ISIS dev/test System
Description
The dstripe application test
dstripe_app_test_parallel
is failing due to an ill-formedxargs
command string in its regression test Makefile. This only occurs if the file path contains aX
.The
dstripe_app_test_parallel
app test is of the old format of ISIS regression tests where the test is managed with commands contained in aMakefile
. Thedstripe
parallel test run in the Makefile contains the following command which causes the failure. Note the parameter-IX
which causes all occurrences ofX
in the command to be replaced with the current line from$(INPUT)/root.lis
($PROJECT_ROOT is the base directory):When this test is run in a directory containing a capital
X
in the path, it fails:Note that the occurrence of APEX has been replaced with APEI15240033RDR due to xargs substitution of
X
withI15240033RDR
, the first line from the root.lis file, which is the base file name for the test cube.There appears to be three total make files that contain an xargs command. The
dstripe
test is the only one containing this particular form of argument substitution. The others contain acceptable alternatives to-IX
:How to reproduce
X
Possible Solution
The easiest solution is to replace
-IX
with-I{}
.Or make
dstripe
callable and covert the test to run under the Google Test framework.Additional context
The text was updated successfully, but these errors were encountered: