Add integration tests for the new runc hooks

This patch adds a test based on real world usage of runc hooks
(libnvidia-container). We verify that mounting a library inside
a container and running ldconfig succeeds.

Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
This commit is contained in:
Renaud Gaubert
2020-05-14 00:56:55 +00:00
parent 2f7bdf9d3b
commit 861afa7509
7 changed files with 157 additions and 14 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func TestUnmarshalHooks(t *testing.T) {
t.Fatal(err)
}
if !reflect.DeepEqual(hooks[hookName], hookCmd) {
if !reflect.DeepEqual(hooks[hookName], configs.HookList{hookCmd}) {
t.Errorf("Expected %s to equal %+v but it was %+v", hookName, hookCmd, hooks[hookName])
}
}