GithubHelp home page GithubHelp logo

e3sm-project / cmdv-testing Goto Github PK

View Code? Open in Web Editor NEW
1.0 144.0 1.0 11.58 MB

Examples from the CMDV-software project on functional testing

Python 43.78% Makefile 22.77% Shell 3.15% CMake 12.67% HTML 0.43% Common Workflow Language 0.33% Batchfile 0.37% Dockerfile 15.71% Tcl 0.78%

cmdv-testing's Introduction

cmdv-testing's People

Contributors

huiwanpnnl avatar ikalash avatar sarich avatar singhbalwinder avatar wfspotz avatar wilke avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sarich

cmdv-testing's Issues

failing nightly tests of cmdv-test-runner due to test output getting written to error.log instead of screen

The nightly cmdv-test-runner CDash tests I set up are failing due to changes to cmdv-test-runner that made the output be written to error.log instead of the screen:

https://my.cdash.org/testDetails.php?test=46129640&build=1625679

I am attaching a sample log file. One can see that all the tests passed from the output:

Ran 4 tests in 0.001s
OK

I can change my testing scripts to look in error.log instead of the console output for the string indicating the self-testing of cmdv-test-runner was successful, but it seems to not make sense for output from a successful run to go in an error log file.
error.log

stdout not getting piped to file

cmdvVersion: v1.0
class: TestWorkflow
label: Hello World Example
steps:
  deploy: none
  run:
    label: hello world
    run:
      stdout: hello_world.out
      stderr: hello_world.err
      baseCommand: ['echo Hello World!']
      out:
        log:
          type: File
          glob: hello_world.out

No hello_world.out file is written

Incorrect running/building path in cmdv-test-runner

The test case of water uptake process in MAM has been added to cmdv-test-runner. However, the sources codes are compiled at a different path from the running path. So a long relative path is required in the .yaml file.

Issue when running cmdv-test-runner with python3

I recently switched my workstation to use python3.7 by default, and noticed I get the following error when running the cmdv-test-runner self-test:

1: Running UnitTest/Verification suite :
1:
1: Traceback (most recent call last):
1:   File "../scripts/cmdv-test-runner", line 26, in <module>
1:     from Workflows.CMDV import Workflow
1:   File "/home/ikalash/CMDV/nightlyCDash/build/Build/lib/python/Workflows/CMDV.py", line 2, in <module>
1:     from Workflow import Workflow as Parent
1:   File "/home/ikalash/CMDV/nightlyCDash/build/Build/lib/python/Workflow.py", line 212
1:     except UnicodeDecodeError, e:
1:                              ^
1: SyntaxError: invalid syntax

I think the except UnicodeDecodeError syntax is not recognized with python3. Could you please have a look at this? It would be good to be able to run the code with python2 as well as python3.

Extend cmdv-test-runner to work with python 3

Issues with python 3 have been reported (https://acme-climate.atlassian.net/wiki/spaces/CMDV/pages/907543103/Test+runner+for+water+uptake+process?focusedCommentId=907510479#comment-907510479), e.g.,

Traceback (most recent call last):
  File "//Users/sunj695/Downloads/CMDV-testing/scripts/cmdv-test-runner", line 26, in <module>
    from Workflows.CMDV import Workflow
  File "/Users/sunj695/Downloads/CMDV-testing/lib/python/Workflows/CMDV.py", line 2, in <module>
    from Workflow import Workflow as Parent
  File "/Users/sunj695/Downloads/CMDV-testing/lib/python/Workflow.py", line 212
    except UnicodeDecodeError, e:
                             ^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.