Skip to content

Conversation

@cyphar
Copy link
Member

@cyphar cyphar commented Apr 26, 2016

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 [email protected]

@hqhq
Copy link
Contributor

hqhq commented Apr 26, 2016

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
Copy link
Member Author

cyphar commented Apr 26, 2016

I'll respond in the issue.

@hqhq
Copy link
Contributor

hqhq commented Apr 27, 2016

LGTM

Makefile Outdated

localintegration:
localintegration: all
bats tests/integration${TESTFLAGS}
Copy link
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
Copy link
Member Author

cyphar commented Apr 29, 2016

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

@mlaventure
Copy link
Contributor

mlaventure commented Apr 29, 2016

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

@cyphar
Copy link
Member Author

cyphar commented Apr 29, 2016

Are you okay with this @mrunalp @crosbymichael ?

@crosbymichael
Copy link
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
Copy link
Member Author

cyphar commented May 1, 2016

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

@crosbymichael
Copy link
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 <[email protected]>
@cyphar
Copy link
Member Author

cyphar commented May 3, 2016

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
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