Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

end to end test with bash script #327

Closed
wants to merge 5 commits into from
Closed

Conversation

wli3
Copy link

@wli3 wli3 commented Nov 28, 2018

Removed part is to format output from one line to multi line. It is not really needed.
We should keep bash script as simple as possible. And add end to end test with bash script
fix #293

@wli3
Copy link
Author

wli3 commented Nov 28, 2018

And -$COLUMN cannot work with #293 (comment) script

@wli3 wli3 force-pushed the bash-auto-complete branch from 9dd0dfb to 3360019 Compare November 28, 2018 06:27
@wli3 wli3 changed the title Simplify bash script End to end test with bash shell script Nov 28, 2018
.Should()
.BeEmpty();

// stdOut cannot get echo's result. So it need to write to a file.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Help need. If get-completions.sh simply do an echo. stdOut cannot capture that. But testrunner output has it. I cannot make it work so I end up write to a file.

#!/usr/bin/env bash

echo "hi"
get_completion_function_name_from_complete_output()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omajid THANKS!!!!! IT WORKS!!!!!!!!!!!

@wli3 wli3 changed the title End to end test with bash shell script end to end test with bash script Nov 28, 2018
@@ -23,4 +26,13 @@
<ProjectReference Include="..\System.CommandLine\System.CommandLine.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="dotnet-suggest-shim.bash">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to add auto copy-paste to bashrc in the future. So I let dotnet suggest carry them now to make it easier to test

@wli3
Copy link
Author

wli3 commented Nov 28, 2018

won't work in CI, let me keep digging

@wli3 wli3 closed this Nov 28, 2018
William Li added 3 commits December 9, 2018 17:08
Removed part is to format output from one line to multi line. It is not really needed.
We should keep bash script as simple as possible.
Let another sh to run auto complete and write result to a file
@wli3 wli3 reopened this Dec 10, 2018
@wli3 wli3 force-pushed the bash-auto-complete branch from 47ba0ce to ceeff10 Compare December 10, 2018 01:11
@wli3
Copy link
Author

wli3 commented Dec 11, 2018

cannot repro on mac and ubuntu :(

@wli3 wli3 closed this Dec 11, 2018
@wli3 wli3 reopened this Dec 16, 2018
@wli3
Copy link
Author

wli3 commented Dec 16, 2018

@dotnet-bot test Ubuntu16.04 Release

1 similar comment
@wli3
Copy link
Author

wli3 commented Dec 16, 2018

@dotnet-bot test Ubuntu16.04 Release

William Li added 2 commits December 16, 2018 15:50
And it also removed the race for generating it
@wli3 wli3 closed this Dec 17, 2018
@wli3
Copy link
Author

wli3 commented Dec 17, 2018

time box up for this test. i'll not keep digging this route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add integration tests for dotnet-suggest shell shim scripts
1 participant