Initial commit

This commit is contained in:
Bassem Girgis
2018-12-20 17:34:07 -06:00
parent 7a2d899662
commit 81b4b9e273
34743 changed files with 5940233 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
Test whether we can run program that depends on (shared) libraries that we know
but they are outside of standard load path.

View File

@@ -0,0 +1,3 @@
env = Environment(toolpath=['../../'],tools=['default','cxxtest'])
SConscript(['src/SConscript', 'test/SConscript'], exports = ['env'])

View File

@@ -0,0 +1,10 @@
#-------------------------------------------------------------------------
# CxxTest: A lightweight C++ unit testing library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the LGPL License v3
# For more information, see the COPYING file in the top CxxTest directory.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains certain rights in this software.
#-------------------------------------------------------------------------
links = {'cxxtest' : '../../../../'}

View File

@@ -0,0 +1,3 @@
Import('env')
env.SharedLibrary('foo', 'foo.cpp')

View File

@@ -0,0 +1,4 @@
int foo()
{
return 0;
}

View File

@@ -0,0 +1,2 @@
Import('env')
env.CxxTest('test.t.h', LIBS = ['foo'], CXXTEST_LIBPATH = ['../src'])

View File

@@ -0,0 +1,12 @@
// test/test.t.h
#include <cxxtest/TestSuite.h>
extern int foo();
class FooTestSuite1 : public CxxTest::TestSuite
{
public:
void testFoo(void)
{
TS_ASSERT_EQUALS(foo(), 0);
}
};