Skip to content

Commit 961d1ee

Browse files
committed
Merge branch 'master' into gui_V2
2 parents 50b8a3a + 99e1154 commit 961d1ee

File tree

9 files changed

+17
-73
lines changed

9 files changed

+17
-73
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ install:
3232
# TODO: could move script to separate file
3333
# Not running unit tests at the moment, so turn off testing, which will
3434
# hopefully make OS X builds a bit faster
35-
script: cd bin && cmake -DBUILD_TESTING:BOOL=OFF -DDOWNLOAD_TOOLKITS:BOOL=OFF ../src && make -j8
35+
script:
36+
cd bin
37+
&& cmake -DDOWNLOAD_TOOLKITS:BOOL=OFF -DRUN_BASIC_REGRESSION_TESTS:BOOL=OFF ../src
38+
&& make -j8
39+
&& make SCIRunTestData_external
40+
# && make test
3641

3742
notifications:
3843
slack: sciinstitute:lZnpQQXNd4Io5iGDPQDpJmI1

src/Core/Application/Application.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ bool Application::get_user_directory( boost::filesystem::path& user_dir, bool co
219219
return applicationHelper.get_user_directory(user_dir, config_path);
220220
}
221221

222-
bool Application::get_user_desktop_directory( boost::filesystem::path& user_desktop_dir ) const
223-
{
224-
return applicationHelper.get_user_desktop_directory(user_desktop_dir);
225-
}
226-
227222
bool Application::get_config_directory( boost::filesystem::path& config_dir ) const
228223
{
229224
return applicationHelper.get_config_directory(config_dir);

src/Core/Application/Application.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class SCISHARE Application : boost::noncopyable //: public EventHandler, public
7676
boost::filesystem::path logDirectory() const { return configDirectory(); }
7777
bool get_user_directory( boost::filesystem::path& user_dir, bool config_path) const;
7878
bool get_config_directory( boost::filesystem::path& config_dir ) const;
79-
bool get_user_desktop_directory( boost::filesystem::path& user_desktop_dir ) const;
8079
bool get_user_name( std::string& user_name ) const;
8180

8281
std::string commandHelpString() const;

src/Core/Application/Preferences/Preferences.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,8 @@ void Preferences::initialize_states()
130130
{
131131
user_path = boost::filesystem::current_path();
132132
}
133-
boost::filesystem::path desktop_path;
134-
Core::Application::Instance()->get_user_desktop_directory( desktop_path );
135-
136133
//General Preferences
137134
this->add_state( "project_path", this->project_path_state_, user_path.string() );
138-
this->add_state( "export_path", this->export_path_state_, desktop_path.string() );
139135
140136
this->add_state( "full_screen_on_startup", this->full_screen_on_startup_state_, false );
141137
this->add_state( "auto_save", this->auto_save_state_, true );

src/Core/Application/Tests/ApplicationTests.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,4 @@ TEST(ApplicationTest, GetUserName)
8787
std::cout << user << std::endl;
8888
}
8989

90-
TEST(ApplicationTest, GetUserDesktopDirectory)
91-
{
92-
Application& app = Application::Instance();
93-
boost::filesystem::path desktop;
94-
ASSERT_TRUE(app.get_user_desktop_directory(desktop));
95-
std::cout << desktop << std::endl;
96-
}
97-
9890
#endif

src/Core/Datatypes/Tests/EigenDenseMatrixTests.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ TEST(EigenDenseMatrixTest, CanCopyConstruct)
8989
TEST(EigenDenseMatrixTest, CanAssign)
9090
{
9191
DenseMatrix m(matrixNonSquare());
92-
92+
9393
DenseMatrix m2(3,4);
94+
m2.setZero();
9495
EXPECT_NE(m, m2);
9596
m2 = m;
9697
EXPECT_EQ(m, m2);

src/Core/Logging/Log.cc

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -419,50 +419,6 @@ bool ApplicationHelper::get_user_directory( boost::filesystem::path& user_dir, b
419419
#endif
420420
}
421421

422-
423-
bool ApplicationHelper::get_user_desktop_directory( boost::filesystem::path& user_desktop_dir )
424-
{
425-
#ifdef _WIN32
426-
TCHAR dir[MAX_PATH];
427-
428-
// Try to create the local application directory
429-
// If it already exists return the name of the directory.
430-
431-
if ( SUCCEEDED( SHGetFolderPath( 0, CSIDL_DESKTOPDIRECTORY, 0, 0, dir ) ) )
432-
{
433-
user_desktop_dir = boost::filesystem::path( dir );
434-
return true;
435-
}
436-
else
437-
{
438-
std::cerr << "Could not get user desktop directory.";
439-
return false;
440-
}
441-
442-
443-
#else
444-
445-
if ( getenv( "HOME" ) )
446-
{
447-
user_desktop_dir = boost::filesystem::path( getenv( "HOME" ) ) / "Desktop" / "";
448-
449-
if (! boost::filesystem::exists( user_desktop_dir ) )
450-
{
451-
std::cerr << "Could not get user desktop directory.";
452-
return false;
453-
}
454-
455-
456-
return true;
457-
}
458-
else
459-
{
460-
std::cerr << "Could not get user desktop directory.";
461-
return false;
462-
}
463-
#endif
464-
}
465-
466422
bool ApplicationHelper::get_config_directory( boost::filesystem::path& config_dir )
467423
{
468424
boost::filesystem::path user_dir;

src/Modules/Fields/Tests/ExtractSimpleIsoSurfaceTest.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,40 @@ class ExtractSimpleIsosurfaceModuleTests : public ModuleTest
5454

5555
FieldHandle LoadInTriangles()
5656
{
57-
return loadFieldFromFile(TestResources::rootDir() / "Fields/ExtractSimpleIsosurface/test_isosimsuf_tri.fld");
57+
return loadFieldFromFile(TestResources::rootDir() / "Fields/extractsimpleisosurface/test_isosimsuf_tri.fld");
5858
}
5959

6060
FieldHandle LoadInTetrahedrals()
6161
{
62-
return loadFieldFromFile(TestResources::rootDir() / "Fields/ExtractSimpleIsosurface/test_isosimsuf_tet.fld");
62+
return loadFieldFromFile(TestResources::rootDir() / "Fields/extractsimpleisosurface/test_isosimsuf_tet.fld");
6363
}
6464

6565
FieldHandle LoadInLatVol()
6666
{
67-
return loadFieldFromFile(TestResources::rootDir() / "Fields/ExtractSimpleIsosurface/test_isosimsuf_latvol.fld");
67+
return loadFieldFromFile(TestResources::rootDir() / "Fields/extractsimpleisosurface/test_isosimsuf_latvol.fld");
6868
}
6969

7070

7171
TEST_F(ExtractSimpleIsosurfaceModuleTests, ExtractSimpleIsosurfaceTriangleNoThrow_Example1)
7272
{
7373
auto test = makeModule("ExtractSimpleIsosurface");
74-
FieldHandle f=LoadInTriangles();
74+
FieldHandle f=LoadInTriangles();
7575
stubPortNWithThisData(test, 0, f);
7676
EXPECT_NO_THROW(test->execute());
7777
}
7878

7979
TEST_F(ExtractSimpleIsosurfaceModuleTests, ExtractSimpleIsosurfaceTriangleNoThrow_Example2)
8080
{
8181
auto test = makeModule("ExtractSimpleIsosurface");
82-
FieldHandle f=LoadInTetrahedrals();
82+
FieldHandle f=LoadInTetrahedrals();
8383
stubPortNWithThisData(test, 0, f);
8484
EXPECT_NO_THROW(test->execute());
8585
}
8686

8787
TEST_F(ExtractSimpleIsosurfaceModuleTests, ExtractSimpleIsosurfaceTriangleNoThrow_Example3)
8888
{
8989
auto test = makeModule("ExtractSimpleIsosurface");
90-
FieldHandle f=LoadInLatVol();
90+
FieldHandle f=LoadInLatVol();
9191
stubPortNWithThisData(test, 0, f);
9292
EXPECT_NO_THROW(test->execute());
9393
}

src/Modules/Legacy/Inverse/Tests/TikhonovFunctionalTest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ TEST_F(TikhonovFunctionalTest, loadIDFwdMatrixANDRandData)
126126

127127
// ID non-square fwd matrix + RAND measured data (underdetermined)
128128
// TODO: FAILS TEST: fails test when it shouldn't. The sizes of forward matrix and data are the same
129-
TEST_F(TikhonovFunctionalTest, loadIDNonSquareFwdMatrixANDRandData)
129+
TEST_F(TikhonovFunctionalTest, DISABLED_loadIDNonSquareFwdMatrixANDRandData)
130130
{
131131
// create inputs
132132
auto tikAlgImp = makeModule("SolveInverseProblemWithTikhonov");
@@ -172,7 +172,7 @@ TEST_F(TikhonovFunctionalTest, loadIDSquareFwdMatrixANDRandDataDiffSizes)
172172

173173
// ID non-square fwd matrix + RAND measured data - different sizes
174174
// TODO: FAILS TEST: does not fail test when it shouldn't. The sizes of forward matrix and data are the different (note that this is only for size(fwd,2) < size(data,1) )!
175-
TEST_F(TikhonovFunctionalTest, loadIDNonSquareFwdMatrixANDRandDataDiffSizes)
175+
TEST_F(TikhonovFunctionalTest, DISABLED_loadIDNonSquareFwdMatrixANDRandDataDiffSizes)
176176
{
177177
// create inputs
178178
auto tikAlgImp = makeModule("SolveInverseProblemWithTikhonov");
@@ -184,4 +184,4 @@ TEST_F(TikhonovFunctionalTest, loadIDNonSquareFwdMatrixANDRandDataDiffSizes)
184184
stubPortNWithThisData(tikAlgImp, 2, measuredData);
185185
// check result
186186
EXPECT_THROW(tikAlgImp->execute(), SCIRun::Core::DimensionMismatch);
187-
}
187+
}

0 commit comments

Comments
 (0)