Skip to content

Commit

Permalink
Test FULL_COMMAND_NAME with renamed executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevera committed Aug 24, 2024
1 parent de0603e commit 23336bd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/integration/test-cmd-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ else
exit 1
fi

# Make a copy and run the copy to ensure FULL_COMMAND_NAME starts
# with the name of the actual executable that runs the launcher
cp "$OUTPUT_DIR/"{cl,clcopy}

echo "> test FULL_COMMAND_NAME environment variable (with group)"
RESULT=$($CL_PATH greeting saybonjour)
echo "$RESULT" | grep -q "^command name: cl greeting saybonjour$"
RESULT=$("$OUTPUT_DIR"/clcopy greeting saybonjour)
echo "$RESULT" | grep -q "^command name: clcopy greeting saybonjour$"
if [ $? -eq 0 ]; then
echo "OK"
else
Expand All @@ -100,8 +104,8 @@ else
fi

echo "> test FULL_COMMAND_NAME environment variable (no group)"
RESULT=$($CL_PATH bonjour)
echo "$RESULT" | grep -q "^command name: cl bonjour$"
RESULT=$("$OUTPUT_DIR"/clcopy bonjour)
echo "$RESULT" | grep -q "^command name: clcopy bonjour$"
if [ $? -eq 0 ]; then
echo "OK"
else
Expand Down

0 comments on commit 23336bd

Please sign in to comment.