Skip to content

Commit a990860

Browse files
Merge pull request #873 from ArangoGutierrez/tests_rename
Rename test folder to tests
2 parents 7ae5c29 + bf9d618 commit a990860

File tree

705 files changed

+18
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

705 files changed

+18
-15
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ updates:
99
directories:
1010
- "/"
1111
- "deployments/devel"
12+
- "tests"
1213
schedule:
1314
interval: "daily"
1415
labels:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*.swp
44
*.swo
55
/coverage.out*
6-
/test/output/
6+
/tests/output/
77
/nvidia-container-runtime
88
/nvidia-container-runtime.*
99
/nvidia-container-runtime-hook

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion

cmd/nvidia-container-runtime/main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
const (
2323
nvidiaRuntime = "nvidia-container-runtime"
2424
nvidiaHook = "nvidia-container-runtime-hook"
25-
bundlePathSuffix = "test/output/bundle/"
25+
bundlePathSuffix = "tests/output/bundle/"
2626
specFile = "config.json"
27-
unmodifiedSpecFileSuffix = "test/input/test_spec.json"
27+
unmodifiedSpecFileSuffix = "tests/input/test_spec.json"
2828
)
2929

3030
const (
@@ -46,8 +46,8 @@ func TestMain(m *testing.M) {
4646
if err != nil {
4747
log.Fatalf("error in test setup: could not get module root: %v", err)
4848
}
49-
testBinPath := filepath.Join(moduleRoot, "test", "bin")
50-
testInputPath := filepath.Join(moduleRoot, "test", "input")
49+
testBinPath := filepath.Join(moduleRoot, "tests", "bin")
50+
testInputPath := filepath.Join(moduleRoot, "tests", "input")
5151

5252
// Set the environment variables for the test
5353
os.Setenv("PATH", test.PrependToPath(testBinPath, moduleRoot))

internal/oci/spec_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ func TestMaintainSpec(t *testing.T) {
1919
}
2020

2121
for _, f := range files {
22-
inputSpecPath := filepath.Join(moduleRoot, "test/input", f)
22+
inputSpecPath := filepath.Join(moduleRoot, "tests/input", f)
2323

2424
spec := NewFileSpec(inputSpecPath).(*fileSpec)
2525

2626
_, err := spec.Load()
2727
require.NoError(t, err)
2828

29-
outputSpecPath := filepath.Join(moduleRoot, "test/output", f)
29+
outputSpecPath := filepath.Join(moduleRoot, "tests/output", f)
3030
spec.path = outputSpecPath
3131
spec.Flush()
3232

internal/platform-support/tegra/csv/csv_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestGetFileList(t *testing.T) {
3636
}{
3737
{
3838
description: "returns list of CSV files",
39-
root: "test/input/csv_samples/",
39+
root: "tests/input/csv_samples/",
4040
files: []string{
4141
"jetson.csv",
4242
"simple_wrong.csv",
@@ -46,15 +46,15 @@ func TestGetFileList(t *testing.T) {
4646
},
4747
{
4848
description: "handles empty folder",
49-
root: "test/input/csv_samples/empty",
49+
root: "tests/input/csv_samples/empty",
5050
},
5151
{
5252
description: "handles non-existent folder",
53-
root: "test/input/csv_samples/NONEXISTENT",
53+
root: "tests/input/csv_samples/NONEXISTENT",
5454
},
5555
{
5656
description: "handles non-existent folder root",
57-
root: "/NONEXISTENT/test/input/csv_samples/",
57+
root: "/NONEXISTENT/tests/input/csv_samples/",
5858
},
5959
}
6060

internal/runtime/runtime_factory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestMain(m *testing.M) {
4545
if err != nil {
4646
log.Fatalf("error in test setup: could not get module root: %v", err)
4747
}
48-
testBinPath := filepath.Join(moduleRoot, "test", "bin")
48+
testBinPath := filepath.Join(moduleRoot, "tests", "bin")
4949

5050
// Set the environment variables for the test
5151
os.Setenv("PATH", test.PrependToPath(testBinPath, moduleRoot))
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)