Add test sim: SIM_makefile_overrides

Refs #626
This commit is contained in:
Derek Bankieris 2018-06-08 08:07:52 -05:00 committed by dbankieris
parent a0faa289df
commit 7998791679
18 changed files with 96 additions and 1 deletions

View File

@ -0,0 +1,6 @@
*.swp
S_*
build
gmon.out
makefile
trick

View File

@ -0,0 +1,3 @@
#include "Baz.hh"
Baz::Baz() {}

View File

@ -0,0 +1,11 @@
// @trick_parse{everything}
// @trick_link_dependency{Baz.c++}
class Baz {
public:
int i;
Baz();
};

View File

@ -0,0 +1,3 @@
#include "Foo.hh"
Foo::Foo() {}

View File

@ -0,0 +1,11 @@
// @trick_parse{everything}
// @trick_link_dependency{Foo.cpp}
class Foo {
public:
int i;
Foo();
};

View File

@ -0,0 +1,11 @@
// @trick_parse{everything}
// @trick_link_dependency{src/Bar.cxx}
class Bar {
public:
int i;
Bar();
};

View File

@ -0,0 +1,3 @@
objects: TRICK_CXXFLAGS += -Wfloat-equal
cpp_objects: TRICK_CXXFLAGS += -Wmissing-include-dirs
cxx_objects: TRICK_CXXFLAGS += -Wuseless-cast

View File

@ -0,0 +1,11 @@
// @trick_parse{everything}
// @trick_link_dependency{potato/src/Flapjack.cpp}
class Flapjack {
public:
int i;
Flapjack();
};

View File

@ -0,0 +1 @@
objects: TRICK_CXXFLAGS += -Wextra

View File

@ -0,0 +1,3 @@
#include "potato/include/Flapjack.hh"
Flapjack::Flapjack() {}

View File

@ -0,0 +1,3 @@
#include "include/Bar.hh"
Bar::Bar() {}

View File

@ -0,0 +1 @@
cxx_objects: TRICK_CXX_FLAGS += -Wall

View File

@ -0,0 +1,3 @@
#include "stupid/Stupid.hh"
Stupid::Stupid() {}

View File

@ -0,0 +1,11 @@
// @trick_parse{everything}
// @trick_link_dependency{stupid/this_name_doesnt_even_matter.a}
class Stupid {
public:
int i;
Stupid();
};

View File

@ -0,0 +1,10 @@
// @trick_parse{everything}
class ReallyStupid {
public:
int i;
ReallyStupid();
};

View File

@ -0,0 +1,3 @@
#include "stupid/include/ReallyStupid.hh"
ReallyStupid::ReallyStupid() {}

View File

@ -13,7 +13,8 @@ COMPILE_DIRS = \
SIM_test_ip \
SIM_test_sched \
SIM_test_templates \
SIM_threads
SIM_threads \
SIM_makefile_overrides
SIMS_NEEDING_TEST = \
SIM_alloc_test \