mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Integrate the "railsys" test.
[SVN r17848]
This commit is contained in:
15
test/railsys.py
Normal file
15
test/railsys.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
t = Tester()
|
||||
|
||||
t.set_tree("railsys")
|
||||
t.run_build_system("--v2", subdir="program")
|
||||
|
||||
t.cleanup()
|
||||
@@ -12,4 +12,8 @@ class TestLibX
|
||||
public:
|
||||
|
||||
TestLibX();
|
||||
|
||||
// Needed to suppress 'unused variable' warning
|
||||
// in some cases.
|
||||
void do_something() {}
|
||||
};
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
import gcc ;
|
||||
import toolset ;
|
||||
|
||||
# Tell that QT should be used. QTDIR will give installation
|
||||
# prefix.
|
||||
toolset.using qt ;
|
||||
|
||||
#Alternatively, the prefix can be given as second argument
|
||||
#toolset.using qt : /usr/share/qt ;
|
||||
# Not that good, but sufficient for testing
|
||||
toolset.using stlport : /path/to/stlport ;
|
||||
|
||||
@@ -17,4 +17,7 @@ class TestA : public QObject
|
||||
public:
|
||||
|
||||
TestA();
|
||||
|
||||
// Needed to suppress 'unused variable' varning.
|
||||
void do_something() { }
|
||||
};
|
||||
|
||||
@@ -14,4 +14,5 @@
|
||||
TestA::TestA()
|
||||
{
|
||||
TestLibX aTestLibX;
|
||||
aTestLibX.do_something();
|
||||
}
|
||||
|
||||
@@ -15,4 +15,6 @@ int main()
|
||||
{
|
||||
TestLibX stTestLibX;
|
||||
TestA stTestA;
|
||||
|
||||
stTestLibX.do_something();
|
||||
};
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
|
||||
import gcc ;
|
||||
#import msvc ;
|
||||
import toolset ;
|
||||
|
||||
# Tell that QT should be used. QTDIR will give installation
|
||||
# prefix.
|
||||
toolset.using qt ;
|
||||
|
||||
#Alternatively, the prefix can be given as second argument
|
||||
#toolset.using qt : /usr/share/qt ;
|
||||
# Not that good, but sufficient for testing
|
||||
toolset.using stlport : /path/to/stlport ;
|
||||
|
||||
@@ -85,6 +85,7 @@ tests = [ "project_test1",
|
||||
"alternatives",
|
||||
"unused",
|
||||
"default_features",
|
||||
"railsys",
|
||||
]
|
||||
|
||||
if os.name == 'posix':
|
||||
|
||||
15
v2/test/railsys.py
Normal file
15
v2/test/railsys.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
t = Tester()
|
||||
|
||||
t.set_tree("railsys")
|
||||
t.run_build_system("--v2", subdir="program")
|
||||
|
||||
t.cleanup()
|
||||
@@ -12,4 +12,8 @@ class TestLibX
|
||||
public:
|
||||
|
||||
TestLibX();
|
||||
|
||||
// Needed to suppress 'unused variable' warning
|
||||
// in some cases.
|
||||
void do_something() {}
|
||||
};
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
import gcc ;
|
||||
import toolset ;
|
||||
|
||||
# Tell that QT should be used. QTDIR will give installation
|
||||
# prefix.
|
||||
toolset.using qt ;
|
||||
|
||||
#Alternatively, the prefix can be given as second argument
|
||||
#toolset.using qt : /usr/share/qt ;
|
||||
# Not that good, but sufficient for testing
|
||||
toolset.using stlport : /path/to/stlport ;
|
||||
|
||||
@@ -17,4 +17,7 @@ class TestA : public QObject
|
||||
public:
|
||||
|
||||
TestA();
|
||||
|
||||
// Needed to suppress 'unused variable' varning.
|
||||
void do_something() { }
|
||||
};
|
||||
|
||||
@@ -14,4 +14,5 @@
|
||||
TestA::TestA()
|
||||
{
|
||||
TestLibX aTestLibX;
|
||||
aTestLibX.do_something();
|
||||
}
|
||||
|
||||
@@ -15,4 +15,6 @@ int main()
|
||||
{
|
||||
TestLibX stTestLibX;
|
||||
TestA stTestA;
|
||||
|
||||
stTestLibX.do_something();
|
||||
};
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
|
||||
import gcc ;
|
||||
#import msvc ;
|
||||
import toolset ;
|
||||
|
||||
# Tell that QT should be used. QTDIR will give installation
|
||||
# prefix.
|
||||
toolset.using qt ;
|
||||
|
||||
#Alternatively, the prefix can be given as second argument
|
||||
#toolset.using qt : /usr/share/qt ;
|
||||
# Not that good, but sufficient for testing
|
||||
toolset.using stlport : /path/to/stlport ;
|
||||
|
||||
@@ -85,6 +85,7 @@ tests = [ "project_test1",
|
||||
"alternatives",
|
||||
"unused",
|
||||
"default_features",
|
||||
"railsys",
|
||||
]
|
||||
|
||||
if os.name == 'posix':
|
||||
|
||||
Reference in New Issue
Block a user