summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-02-21 11:04:01 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-02-21 14:44:36 +0100
commitf8c80f11609a2d1474abbe06b3a29b356b35f8d4 (patch)
tree7fded3d05ceab341ebee912254d76921d8ddc2d0 /tests/manual
parent22cd0eac7d3d6c2d0fc0eb3723838ba896de76d6 (diff)
downloadqbs-f8c80f11609a2d1474abbe06b3a29b356b35f8d4.tar.gz
Turn "codegen" into an autotest.
Nothing manual about it. Change-Id: Ia3a0d75ab919dc89bdacbeaf3430c036c47fed20 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/codegen/codegen.qbs40
-rw-r--r--tests/manual/codegen/foo.txt1
2 files changed, 0 insertions, 41 deletions
diff --git a/tests/manual/codegen/codegen.qbs b/tests/manual/codegen/codegen.qbs
deleted file mode 100644
index 68d1f57ec..000000000
--- a/tests/manual/codegen/codegen.qbs
+++ /dev/null
@@ -1,40 +0,0 @@
-import qbs.base 1.0
-import qbs.fileinfo 1.0 as FileInfo
-
-Project {
- property string name: 'codegen'
-
- Product {
- type: 'application'
- name: project.name
- Group {
- files: 'foo.txt'
- fileTags: ['text']
- }
- Depends { name: 'cpp' }
- }
-
- Rule {
- inputs: ['text']
- Artifact {
- fileTags: ['cpp']
- fileName: input.baseName + '.cpp'
- }
- prepare: {
- var code = 'int main(int, char **) { return 0; }'
- var args = ['echo ' + code + '>' + output.fileName]
- var cmd
- if (product.moduleProperty("qbs", "hostOS") == 'windows') {
- cmd = new Command('cmd.exe', ['/C'].concat(args));
- } else {
- args[0] = args[0].replace(/\(/g, '\\(')
- args[0] = args[0].replace(/\)/g, '\\)')
- args[0] = args[0].replace(/;/g, '\\;')
- cmd = new Command('/bin/sh', ['-c'].concat(args))
- }
- cmd.description = 'generate\t' + FileInfo.fileName(output.fileName);
- cmd.highlight = 'codegen';
- return cmd;
- }
- }
-}
diff --git a/tests/manual/codegen/foo.txt b/tests/manual/codegen/foo.txt
deleted file mode 100644
index 557db03de..000000000
--- a/tests/manual/codegen/foo.txt
+++ /dev/null
@@ -1 +0,0 @@
-Hello World