Skip to content

Use full test suite on make test#783

Merged
crosbymichael merged 1 commit into
opencontainers:masterfrom
cyphar:test-all-the-things
May 6, 2016
Merged

Use full test suite on make test#783
crosbymichael merged 1 commit into
opencontainers:masterfrom
cyphar:test-all-the-things

Conversation

@cyphar

@cyphar cyphar commented Apr 26, 2016

Copy link
Copy Markdown
Member

Enable the full test suite to run on make test. They also all run
inside a Docker container for maximum reproducibility.

Signed-off-by: Aleksa Sarai asarai@suse.de

@hqhq

hqhq commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

I don't think snifftest is needed anymore, it's all covered by integration test, so I tried to remove it in #785 WDYT?

@cyphar

cyphar commented Apr 26, 2016

Copy link
Copy Markdown
Member Author

I'll respond in the issue.

@hqhq

hqhq commented Apr 27, 2016

Copy link
Copy Markdown
Contributor

LGTM

Comment thread Makefile Outdated

localintegration:
localintegration: all
bats tests/integration${TESTFLAGS}

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.

Would it be possible to always run this in TAP mode via -t while at it? Jenkins doesn't log very nicely the output otherwise.

@cyphar

cyphar commented Apr 29, 2016

Copy link
Copy Markdown
Member Author

@mlaventure I've updated it to use -t mode. As much as I love unicode checkmarks, Jenkins doesn't.

@mlaventure

mlaventure commented Apr 29, 2016

Copy link
Copy Markdown
Contributor

@cyphar Thanks, output is a lot more readable now!

@cyphar

cyphar commented Apr 29, 2016

Copy link
Copy Markdown
Member Author

Are you okay with this @mrunalp @crosbymichael ?

@crosbymichael

Copy link
Copy Markdown
Member

i got this when running locally after the unit test run

PASS
ok      _/go/src/github.com/opencontainers/runc/libcontainer/xattr      0.004s
Makefile:56: recipe for target 'localunittest' failed
make[1]: *** [localunittest] Error 1
make[1]: Leaving directory '/go/src/github.com/opencontainers/runc'
Makefile:50: recipe for target 'localtest' failed
make: *** [localtest] Error 2
Makefile:53: recipe for target 'unittest' failed
make[1]: *** [unittest] Error 2
make[1]: Leaving directory '/home/michael/development/gocode/src/github.com/opencontainers/runc'
Makefile:47: recipe for target 'test' failed
make: *** [test] Error 2

@cyphar

cyphar commented May 1, 2016

Copy link
Copy Markdown
Member Author

@crosbymichael Are you running the tests as root? Also, there doesn't appear to be an error message in your output.

@crosbymichael

Copy link
Copy Markdown
Member

@cyphar i thought it was supposed to run them in the container now so i'm just running make test as my normal user

Enable the full test suite to run on `make test`. They also all run
inside a Docker container for maximum reproducibility.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar

cyphar commented May 3, 2016

Copy link
Copy Markdown
Member Author

Ah, I see now that you were running make test (the error trace is hard to read in make)? I thought you meant "locally" as in make localtest (which requires root). I can't seem to reproduce that locally on this branch.

@crosbymichael

Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit 4ad7bbc into opencontainers:master May 6, 2016
@cyphar cyphar deleted the test-all-the-things branch May 6, 2016 00:52
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants