FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add a simple bash test by sreya · Pull Request #61 · coder/sshcode · GitHub

This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Repository navigation

Add a simple bash test - #61

Merged
sreya merged 1 commit into
masterfrom
test
Apr 30, 2019
Merged

sreya merged 1 commit into
masterfrom
test

Conversation

sreya commented Apr 24, 2019

Copy link
Copy Markdown
Collaborator

No description provided.

sreya requested review from ammario, kylecarbs and nhooyr April 24, 2019 18:54

nhooyr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why not have a more automated test for this?

You can start up a SSH server with crypto/ssh and that runs the given commands locally and then confirm code-server is up and running and then kill it.

Comment thread main.go Outdated
syncBack = flag.Bool("b", false, "sync extensions back on termination")
printVersion = flag.Bool("version", false, "print version information and exit")
port = flag.String("port", "", "Start VS Code on the provided port. If one is not provided a random one is selected")
noOpen = flag.Bool("no-open", false, "Start VS Code but don't open a Chrome app window")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lets use $DISPLAY = "" for this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is DISPLAY set on all macs?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, similar to how there is an X11 socket whose path is given by $DISPLAY, $DISPLAY on macOS contains the quartz socket.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What about WSL?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

WSL is almost certainly using some sort of X11 forwarding so it would have $DISPLAY.

Comment thread main.go Outdated
syncBack = flag.Bool("b", false, "sync extensions back on termination")
printVersion = flag.Bool("version", false, "print version information and exit")
port = flag.String("port", "", "Start VS Code on the provided port. If one is not provided a random one is selected")
noOpen = flag.Bool("no-open", false, "Start VS Code but don't open a Chrome app window")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is DISPLAY set on all macs?

Comment thread test.sh Outdated
sreya requested review from ammario and nhooyr April 26, 2019 22:47
Comment thread sshcode_test.go

nhooyr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

looks solid otherwise 🚀

Comment thread main.go Outdated
Comment thread main.go Outdated
Comment thread sshcode_test.go Outdated
sreya merged commit 050d775 into master Apr 30, 2019
sreya deleted the test branch April 30, 2019 00:49
sreya mentioned this pull request Apr 30, 2019
sreya added a commit that referenced this pull request Apr 30, 2019
Add a sanity test

- Refactor and break out code from main()
- Use a random remote port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL