Changeset 920

Timestamp:
Jul 31, 2011, 10:16:23 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

tests: Made it build on Linux.

Location:
tests
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • tests/blit/blit.pro

    r904 r920  
    1 DEPTH = ..
    2 include($$DEPTH/common.pri)
     1DEPTH = .
     2include($$DEPTH/common.pri)
    33
    44QT = core gui
  • tests/common.pri

    r910 r920  
    1 isEmpty(DEPTH):error("DEPTH is not set before including common.pri!")
     1isEmpty(DEPTH):error("DEPTH must be set before including common.pri \
     2                      so that it leads to test's root dir.")
    23
    3 DESTDIR = .
     4# on Unix exes have no extension so we need to put them to a subdir
     5# to avoid clashes with the possible subtest's directories
     6unix:DESTDIR = $$DEPTH/.bin
     7else:DESTDIR = $$DEPTH
    48
    59!build_pass: {
  • tests/process/child/child.pro

    r910 r920  
    1 DEPTH = ../..
    2 include($$DEPTH/common.pri)
    3 
    4 DESTDIR = ..
     1DEPTH = ..
     2include(../$$DEPTH/common.pri)
    53
    64QT =
  • tests/process/process-async/process-async.pro

    r910 r920  
    1 DEPTH = ../..
    2 include($$DEPTH/common.pri)
    3 
    4 DESTDIR = ..
     1DEPTH = ..
     2include(../$$DEPTH/common.pri)
    53
    64QT = core gui
  • tests/process/process-sync/process-sync.pro

    r914 r920  
    1 DEPTH = ../..
    2 include($$DEPTH/common.pri)
    3 
    4 DESTDIR = ..
     1DEPTH = ..
     2include(../$$DEPTH/common.pri)
    53
    64QT = core
     
    86SOURCES = process-sync.cpp
    97
    10 FILES = process-sync-test.cmd process-sync-helper.cmd
     8os2 {
     9    FILES = process-sync-test.cmd process-sync-helper.cmd
    1110
    12 bigfile.target = $$DESTDIR/bigfile.txt
    13 os2:bigfile.commands = $$PWD/../mkbigfile.cmd 1500000 $$PWD/process-sync.cpp $${bigfile.target}
    14 
    15 QMAKE_EXTRA_TARGETS += bigfile sleep
    16 POST_TARGETDEPS = $${bigfile.target} $${sleep.target}
     11bigfile.target = $$DESTDIR/bigfile.txt
     12bigfile.commands = $$PWD/../mkbigfile.cmd 1500000 $$PWD/process-sync.cpp $${bigfile.target}
     13    QMAKE_EXTRA_TARGETS += bigfile
     14    POST_TARGETDEPS = $${bigfile.target}
     15}
  • tests/process/test/test.cpp

    r218 r920  
    11#include <stdlib.h>
    22#include <stdio.h>
    3 #include <io.h>
    43#include <string.h>
    54#include <fcntl.h>
     5
     6
     7
     8
     9
     10
    611
    712#ifdef WIN32
     
    1722#define BUF_SIZE 4096
    1823
    19 int main(int argc, char *argv[])
     24int main()
    2025{
    2126#if 1
  • tests/process/test/test.pro

    r910 r920  
    1 DEPTH = ../..
    2 include($$DEPTH/common.pri)
    3 
    4 DESTDIR = ..
     1DEPTH = ..
     2include(../$$DEPTH/common.pri)
    53
    64QT =
  • tests/widget/widget.pro

    r341 r920  
     1
     2
     3
    14QT = core gui
    25CONFIG += console
     
    58
    69RUN_ARGS = -style windows
    7 
    8 DEPTH = .
    9 include($$DEPTH/../common.pri)
    10 else:error("Cannot include $$DEPTH/../common.pri!")
Note: See TracChangeset for help on using the changeset viewer.