diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-04 12:17:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 12:17:35 +0200 |
commit | afcdb1184799526f20954e475af990254d772cd4 (patch) | |
tree | 81ef3311effa8dec3a504ed5361a88c5e60cfb0f | |
parent | 3626877554b6c567d43336ec49414cedfe487260 (diff) | |
parent | d9b5abdb716bd5e4d474c724cb52e9f09899f942 (diff) | |
download | hello-nix-afcdb1184799526f20954e475af990254d772cd4.tar.gz |
Merge pull request #1 from aehlig/test-suite
test: add overall target
-rw-r--r-- | test/TARGETS | 10 | ||||
-rw-r--r-- | test/hello/TARGETS | 3 | ||||
-rw-r--r-- | test/proto/TARGETS | 3 | ||||
-rw-r--r-- | test/test_hello.sh | 5 | ||||
-rw-r--r-- | test/withExtendedPath/TARGETS | 3 |
5 files changed, 16 insertions, 8 deletions
diff --git a/test/TARGETS b/test/TARGETS new file mode 100644 index 0000000..54f7274 --- /dev/null +++ b/test/TARGETS @@ -0,0 +1,10 @@ +{ "": + { "type": "install" + , "tainted": ["test"] + , "dirs": + [ [["./", "hello", ""], "hello"] + , [["./", "proto", ""], "proto"] + , [["./", "withExtendedPath", ""], "withExtendedPath"] + ] + } +} diff --git a/test/hello/TARGETS b/test/hello/TARGETS index d01c382..9d16e07 100644 --- a/test/hello/TARGETS +++ b/test/hello/TARGETS @@ -1,4 +1,5 @@ -{ "": +{ "": {"type": "install", "tainted": ["test"], "deps": ["hello"]} +, "hello": { "type": ["@", "rules", "shell/test", "script"] , "name": ["hello"] , "test": ["test_hello.sh"] diff --git a/test/proto/TARGETS b/test/proto/TARGETS index 50d5195..d2e817e 100644 --- a/test/proto/TARGETS +++ b/test/proto/TARGETS @@ -1,4 +1,5 @@ -{ "": +{ "": {"type": "install", "tainted": ["test"], "deps": ["proto"]} +, "proto": { "type": ["@", "rules", "shell/test", "script"] , "name": ["proto"] , "test": ["test.sh"] diff --git a/test/test_hello.sh b/test/test_hello.sh deleted file mode 100644 index 08347e8..0000000 --- a/test/test_hello.sh +++ /dev/null @@ -1,5 +0,0 @@ -set -e - -./hello | grep -i world -./hello Universe | grep Universe -./hello Universe | grep -i world && exit 1 || : diff --git a/test/withExtendedPath/TARGETS b/test/withExtendedPath/TARGETS index 73a5a9e..e5e7ca0 100644 --- a/test/withExtendedPath/TARGETS +++ b/test/withExtendedPath/TARGETS @@ -1,4 +1,5 @@ -{"withExtendedPath": +{ "": {"type": "install", "tainted": ["test"], "deps": ["withExtendedPath"]} +, "withExtendedPath": { "type": ["@", "rules", "shell/test", "script"] , "name": ["find-in-extended-path"] , "test": ["test.sh"] |