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

Detect if tests are running on test engineer's machine. #10

Open
vgrigoruk opened this issue Oct 8, 2015 · 7 comments
Open

Detect if tests are running on test engineer's machine. #10

vgrigoruk opened this issue Oct 8, 2015 · 7 comments

Comments

@vgrigoruk
Copy link

Would be a huge improvement! Looking forward to see this volkswagen 2.0

@auchenberg
Copy link
Owner

Any hints on how we would be able to achieve this?

@anko
Copy link

anko commented Oct 8, 2015

Idea: Use presence of certain programs in $PATH as a heuristic. Test engineers are more likely to have afl-fuzz, valgrind or other testing tools installed.

@claviola
Copy link

claviola commented Oct 8, 2015

There are several possible tests: check for an interactive shell, the presence of a window manager, matching running processes like browsers and so on.

@watson watson mentioned this issue Oct 10, 2015
@archersmind
Copy link

My ideal: Check if the test machine is well configured.
Or we can check many other items, and score them with certain point. If the total score is above 60 , we dare to say it's a machine used by human. 😆

@watson
Copy link
Collaborator

watson commented Oct 10, 2015

@archersmind actually a really interesting problem to solve 😃

@archersmind
Copy link

@watson Yes, Of course. Let's gather more opinions.
Just have the thought, it's going to be the Turing test problem ? Even more fun 💻

@kunaltyagi
Copy link

The check can be as simple as checking for stdin, or $PS1 or a custom env var or tty -s which ends with no error on interactive shells. Best of all, these will work even on SSH, but definitely not in a batch command (script file).

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

No branches or pull requests

7 participants