diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-02 15:49:18 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-02 15:49:18 +0200 |
commit | d680da8d5906de1bfd8f4ed047e6d8a29660a656 (patch) | |
tree | 5ef23a9c61ed2de79f1801bcf67047bff6673d54 /tests/test.json | |
parent | dcfb950c3175fa613b368bb442e2934956c90649 (diff) | |
download | xdg-app-d680da8d5906de1bfd8f4ed047e6d8a29660a656.tar.gz |
Added xdg-app-builder test
Diffstat (limited to 'tests/test.json')
-rw-r--r-- | tests/test.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/test.json b/tests/test.json new file mode 100644 index 0000000..fdab276 --- /dev/null +++ b/tests/test.json @@ -0,0 +1,53 @@ +{ + "app-id": "org.test.Hello2", + "runtime": "org.test.Platform", + "sdk": "org.test.Sdk", + "command": "hello2.sh", + "tags": ["test"], + "finish-args": [ + "--share=network" + ], + "build-options" : { + "cflags": "-O2 -g", + "cxxflags": "-O2 -g", + "env": { + "FOO": "bar", + "V": "1" + } + }, + "cleanup": ["/cleanup", "*.cleanup"], + "cleanup-commands": [ "touch /app/cleaned_up" ], + "modules": [ + { + "name": "test", + "config-opts": ["--some-arg"], + "post-install": [ "touch /app/bin/file.cleanup" ], + "make-args": ["BAR=2" ], + "make-install-args": ["BAR=3" ], + "sources": [ + { + "type": "file", + "path": "configure.test", + "dest-filename": "configure", + "sha256": "fb62c2826dbd2fda27e878490e3f1f9081b1b69a2211e125ae79cf552a7a2254" + }, + { + "type": "file", + "path": "app-data" + }, + { + "type": "script", + "dest-filename": "hello2.sh", + "commands": [ "echo \"Hello world2, from a sandbox\"" ] + }, + { + "type": "shell", + "commands": [ + "mkdir /app/cleanup/", + "touch /app/cleanup/a_file" + ] + } + ] + } + ] +} |