tests/auto/qmake/tst_qmake.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    63     void cleanup();
    63     void cleanup();
    64 
    64 
    65 private slots:
    65 private slots:
    66     void simple_app();
    66     void simple_app();
    67     void simple_app_shadowbuild();
    67     void simple_app_shadowbuild();
       
    68     void simple_app_shadowbuild2();
    68     void simple_lib();
    69     void simple_lib();
    69     void simple_dll();
    70     void simple_dll();
    70     void subdirs();
    71     void subdirs();
    71     void functions();
    72     void functions();
    72     void operators();
    73     void operators();
   161     QVERIFY( test_compiler.makeDistClean( buildDir ));
   162     QVERIFY( test_compiler.makeDistClean( buildDir ));
   162     QVERIFY( !test_compiler.exists( buildDir, "simple_app", Exe, "1.0.0" )); // Should not exist after a make distclean
   163     QVERIFY( !test_compiler.exists( buildDir, "simple_app", Exe, "1.0.0" )); // Should not exist after a make distclean
   163     QVERIFY( test_compiler.removeMakefile( buildDir ) );
   164     QVERIFY( test_compiler.removeMakefile( buildDir ) );
   164 }
   165 }
   165 
   166 
       
   167 void tst_qmake::simple_app_shadowbuild2()
       
   168 {
       
   169     QString workDir = base_path + "/testdata/simple_app";
       
   170     QString buildDir = base_path + "/testdata/simple_app/build";
       
   171 
       
   172     QVERIFY( test_compiler.qmake( workDir, "simple_app", buildDir ));
       
   173     QVERIFY( test_compiler.make( buildDir ));
       
   174     QVERIFY( test_compiler.exists( buildDir, "simple_app", Exe, "1.0.0" ));
       
   175     QVERIFY( test_compiler.makeClean( buildDir ));
       
   176     QVERIFY( test_compiler.exists( buildDir, "simple_app", Exe, "1.0.0" )); // Should still exist after a make clean
       
   177     QVERIFY( test_compiler.makeDistClean( buildDir ));
       
   178     QVERIFY( !test_compiler.exists( buildDir, "simple_app", Exe, "1.0.0" )); // Should not exist after a make distclean
       
   179     QVERIFY( test_compiler.removeMakefile( buildDir ) );
       
   180 }
       
   181 
   166 void tst_qmake::simple_dll()
   182 void tst_qmake::simple_dll()
   167 {
   183 {
   168     QString workDir = base_path + "/testdata/simple_dll";
   184     QString workDir = base_path + "/testdata/simple_dll";
   169 
   185 
   170     QDir D;
   186     QDir D;