Repository navigation
Closed
Description
I tried this, based on the install from source instructions and typical Python setup.py usage:
$ git clone https://github.com/common-workflow-language/cwltool.git
...
$ cd cwltool
$ python2.7 setup.py build
...
$ python2.7 setup.py test
running test
running egg_info
writing requirements to cwltool.egg-info/requires.txt
writing cwltool.egg-info/PKG-INFO
writing top-level names to cwltool.egg-info/top_level.txt
writing dependency_links to cwltool.egg-info/dependency_links.txt
writing entry points to cwltool.egg-info/entry_points.txt
reading manifest file 'cwltool.egg-info/SOURCES.txt'
writing manifest file 'cwltool.egg-info/SOURCES.txt'
running build_ext
test_factory (tests.test_examples.TestFactory) ... [job 139890816825808] /tmp/tmpqoAycd$ echo foo > /tmp/tmpqoAycd/out.txt
'echo' not found
[job 139890816825808] completed permanentFail
Final process status is permanentFail
ERROR
test_params (tests.test_examples.TestParamMatching) ... ok
======================================================================
ERROR: test_factory (tests.test_examples.TestFactory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/shared/users/xxx/repositories/cwltool/tests/test_examples.py", line 107, in test_factory
self.assertEqual(echo(inp="foo"), {"out": "foo\n"})
File "/mnt/shared/users/xxx/repositories/cwltool/cwltool/factory.py", line 11, in __call__
return self.factory.executor(self.t, kwargs, os.getcwd(), None, **self.factory.execkwargs)
File "/mnt/shared/users/xxx/repositories/cwltool/cwltool/main.py", line 171, in single_job_executor
raise workflow.WorkflowException("Process status is %s" % (final_status))
WorkflowException: Process status is ['permanentFail']
----------------------------------------------------------------------
Ran 2 tests in 3.838s
FAILED (errors=1)
As an aside, the apparent failure to run the echo command is odd:
$ echo foo
foo
$ more /tmp/tmpQWsOo2/out.txt
foo
I am assuming this failure is down to the setup, rather than a bug in the test suite?
See also #37 for using the tests within TravisCI.
Metadata
Metadata
Assignees
Labels
No labels
Activity
mr-c commentedon Jul 20, 2016
Thanks @peterjc for reminding us.
The tests now run the normal way you tried above. Most testing is focused on improving the CWL conformance tests
peterjc commentedon Jul 20, 2016
Confirming running tests this way now works for me,
Should the main README file talk about how to run the tests?
Squashed 'cwltool/schemas/' changes from 2cf0896..7a9bee2
Squashed 'cwltool/schemas/' changes from 2cf0896..7a9bee2
Squashed 'cwltool/schemas/' changes from 2cf0896..7a9bee2
Squashed 'cwltool/schemas/' changes from 2cf0896..7a9bee2
Merge pull request #38 from common-workflow-language/mixin