You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "jpeach (via GitHub)" <gi...@apache.org> on 2023/06/05 05:40:23 UTC

[GitHub] [trafficserver] jpeach opened a new issue, #9773: autest "list" subcommand doesn't seem to be present

jpeach opened a new issue, #9773:
URL: https://github.com/apache/trafficserver/issues/9773

   The [CLI documentation](https://autestsuite.bitbucket.io/usage/cli.html) says that there is a "list" command to autest that will simply discover and list the tests. However, experimentally, autest always seems to execute the "run" command.
   
   ```
   $ ./autest.sh --ats-bin=/opt/ats/bin list
   Python 3.6 or newer detected!
   python3-dev/devel detected!
   pipenv detected!
   Using the pre-existing virtual environment.
   Environment config finished. Running AuTest...
   usage: autest [-h] {run,list} ...
   autest: error: unrecognized arguments: list
   ```
   
   Notice the "pipenv run autest" doesn't use the "run" subcommand.
   
   ```
   $ bash -x ./autest.sh --ats-bin=/opt/ats/bin --filter=polite_hook_wait
   + ./prepare_proxy_verifier.sh
   ++ dirname ./autest.sh
   + pushd .
   ++ pwd
   + export PYTHONPATH=/Users/jpeach/src/trafficserver/tests:
   + PYTHONPATH=/Users/jpeach/src/trafficserver/tests:
   + ./test-env-check.sh
   Python 3.6 or newer detected!
   python3-dev/devel detected!
   pipenv detected!
   Using the pre-existing virtual environment.
   + echo 'Environment config finished. Running AuTest...'
   Environment config finished. Running AuTest...
   + pipenv run autest -D gold_tests --ats-bin=/opt/ats/bin --filter=polite_hook_wait
   Running Test polite_hook_wait:... Passed
   
   Generating Report: --------------
   Total of 1 test
     Unknown: 0
     Exception: 0
     Failed: 0
     Warning: 0
     Skipped: 0
     Passed: 1
   + ret=0
   + popd
   + exit 0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] jpeach commented on issue #9773: autest "list" subcommand doesn't seem to be present

Posted by "jpeach (via GitHub)" <gi...@apache.org>.
jpeach commented on issue #9773:
URL: https://github.com/apache/trafficserver/issues/9773#issuecomment-1576076098

   cc @dragon512 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] dragon512 commented on issue #9773: autest "list" subcommand doesn't seem to be present

Posted by "dragon512 (via GitHub)" <gi...@apache.org>.
dragon512 commented on issue #9773:
URL: https://github.com/apache/trafficserver/issues/9773#issuecomment-1579055907

   I think I have a simple fix.. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] dragon512 commented on issue #9773: autest "list" subcommand doesn't seem to be present

Posted by "dragon512 (via GitHub)" <gi...@apache.org>.
dragon512 commented on issue #9773:
URL: https://github.com/apache/trafficserver/issues/9773#issuecomment-1579014649

   The issue is with the wrapper script `autest.sh`. As you can see below, it works fine when I run autest manually.
   
   Personally, the autest.sh was just made to make it easy to set up depends then run tests in a brain-dead way. It was not to replace "direct" autest usage on the CLI
   
   @bneradt do you think we can fix up the script some more?
   Should we add to the readme file usage without the shell script?
   
   Just a note to myself. I want to see if we can do the list command without having a --ats-bin requirements. It should be doable but there might be a rough edge to address in the core to improve QOL of defining this.
   
   ```
   (tests-vlHYkFgR) jkenny@8TLG2J3:~/trafficserver/tests/gold_tests$ autest list --ats-bin=/home/jkenny/ats/bin
   Test Name
   --------------------------------------------------------------------------------
   null_transform
   Test a basic null transform plugin
   
   records_config_to_yaml          Testing ATS records to yaml script.
   traffic_ctl_cold_config         None
   records_yaml            None
   session_match           Test that session sharing works with host matching
   quick_server            None
   slow_post               None
   server_abort
   AuTest with bad configuration of microserver to simulate server aborting the connection unexpectedly
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] dragon512 closed issue #9773: autest "list" subcommand doesn't seem to be present

Posted by "dragon512 (via GitHub)" <gi...@apache.org>.
dragon512 closed issue #9773: autest "list" subcommand doesn't seem to be present
URL: https://github.com/apache/trafficserver/issues/9773


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org