Skip to content

Commit

Permalink
Removing the test.pl command. I've already added so many tests that t…
Browse files Browse the repository at this point in the history
…his old test harness

doesn't make sense to maintain.

Removing Emacs directives from header files, since they reference test.pl


git-svn-id: https://cxxtest.svn.sourceforge.net/svnroot/cxxtest/trunk@216 2f8b185b-e3eb-40a7-945f-4de83c84e57e
  • Loading branch information
whart222 committed Dec 20, 2011
1 parent 7d27f2d commit 5d1b37a
Show file tree
Hide file tree
Showing 46 changed files with 20 additions and 266 deletions.
6 changes: 0 additions & 6 deletions test/AborterNoThrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ class AborterNoThrow : public CxxTest::TestSuite
TS_FAIL(5);
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Comments.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,3 @@ class Comments : public CxxTest::TestSuite
// TS_WARN( "Something else" );
//}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DeepAbort.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,3 @@ class DeepAbort : public CxxTest::TestSuite
TS_ASSERT_EQUALS( 1, 1 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DefaultAbort.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#define CXXTEST_HAVE_EH
#define CXXTEST_ABORT_TEST_ON_FAIL
#define CXXTEST_DEFAULT_ABORT false

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DefaultTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,3 @@ class DefaultTraits : public CxxTest::TestSuite
TS_FAIL( x );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DoubleCall.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ class DoubleCall : public CxxTest::TestSuite
return ++i;
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DynamicAbort.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ class SetUpWorksAllTests : public CxxTest::TestSuite
TS_ASSERT_EQUALS( 2, 3 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/DynamicMax.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,3 @@ class SetUpAffectsAllTests : public CxxTest::TestSuite
TS_ASSERT_SAME_DATA( x, y, DATA_SIZE );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/EmptySuite.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ class EmptySuite : public CxxTest::TestSuite
TS_FAIL( "This suite has no tests" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,3 @@ class TestThrowFromTest : public CxxTest::TestSuite
TS_TRACE( "One failed test doesn't affect the others" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Factor.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,3 @@ class Factor : public CxxTest::TestSuite
TS_ASSERT_RELATION( NotShorterThan, convert(reasonableLimit), MAX_STRLEN_TOTAL_TESTS );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/ForceNoEh.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ class ForceNoEh : public CxxTest::TestSuite
{
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GfSetUpFails.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ class Suite : public CxxTest::TestSuite
TS_FAIL( "Shouldn't get here at all" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GfSetUpThrows.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ class Suite : public CxxTest::TestSuite
TS_FAIL( "Shouldn't get here at all" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GfTearDownFails.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ class Suite : public CxxTest::TestSuite
void testOne() {}
void testTwo() { TS_WARN( "Testing should go on!" ); }
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GfTearDownThrows.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ class Suite : public CxxTest::TestSuite
void testOne() {}
void testTwo() { TS_WARN( "Testing should go on!" ); }
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GlobalFixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,3 @@ class TestGlobalFixture : public CxxTest::TestSuite
TS_ASSERT_EQUALS(fixture2.tearDownCount(), 1);
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GoodSuite.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,3 @@ class GoodSuite : public CxxTest::TestSuite
{
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/GuiWait.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@
#define CXXTEST_SAMPLE_GUI_WAIT()

#endif // __GUI_WAIT_H

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
10 changes: 10 additions & 0 deletions test/HaveEH.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#define CXXTEST_HAVE_EH
#include <cxxtest/ErrorPrinter.h>

int main( int argc, char *argv[] ) {
CxxTest::ErrorPrinter tmp;
return CxxTest::Main<CxxTest::ErrorPrinter>( tmp, argc, argv );
}

// The CxxTest "world"
<CxxTest world>
6 changes: 0 additions & 6 deletions test/HaveStd.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,3 @@ class HaveStd : public CxxTest::TestSuite
TS_ASSERT_EQUALS( something(), "Something" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
10 changes: 10 additions & 0 deletions test/HaveStd.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#define CXXTEST_HAVE_STD
#include <cxxtest/ErrorPrinter.h>

int main( int argc, char *argv[] ) {
CxxTest::ErrorPrinter tmp;
return CxxTest::Main<CxxTest::ErrorPrinter>( tmp, argc, argv );
}

// The CxxTest "world"
<CxxTest world>
6 changes: 0 additions & 6 deletions test/IncludeTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,3 @@ class IncludesTest : public CxxTest::TestSuite
TS_WARN( (long *)0 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Int64.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ class Int64 : public CxxTest::TestSuite
TS_ASSERT_LESS_THAN( (__int64)5, (__int64)4 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/LessThanEquals.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@ class LessThanEquals : public CxxTest::TestSuite
ETSM_ASSERT_LESS_THAN_EQUALS( "1 <=? 0", 1, 0 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/LongLong.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ class LongLongTest : public CxxTest::TestSuite
TS_ASSERT_LESS_THAN( (long long)5, (long long)4 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/LongTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ namespace CxxTest
const char *asString() { return "(long *)"; }
};
}

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/NoEh.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ class NoEh : public CxxTest::TestSuite
TS_ASSERT_EQUALS( 2, 3 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Part1.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ class Part1 : public CxxTest::TestSuite
{
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Part2.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ class Part2 : public CxxTest::TestSuite
{
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/Relation.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,3 @@ class Relation : public CxxTest::TestSuite
throw i;
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/SameData.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,3 @@ class SameData : public CxxTest::TestSuite
ETSM_ASSERT_SAME_DATA( "Not same data", x, y, DATA_SIZE );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/SameZero.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ class SameZero : public CxxTest::TestSuite
TS_ASSERT_SAME_DATA( 0, 0, 0 );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/SetUpWorldFails.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ class Suite : public CxxTest::TestSuite
TS_FAIL( "Shouldn't get here at all" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/SetUpWorldThrows.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ class Suite : public CxxTest::TestSuite
TS_FAIL( "Shouldn't get here at all" );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/TearDownWorldFails.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ class Suite : public CxxTest::TestSuite
public:
void testOne() {}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/TearDownWorldThrows.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ class Suite : public CxxTest::TestSuite
public:
void testOne() {}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
6 changes: 0 additions & 6 deletions test/ThrowNoStd.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ class ThrowNoStd : public CxxTest::TestSuite
TS_ASSERT_THROWS( { throw 1; }, int );
}
};

//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
8 changes: 0 additions & 8 deletions test/ThrowNoStd.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// -*- C++ -*-
#define CXXTEST_ABORT_TEST_ON_FAIL
#include <cxxtest/ErrorPrinter.h>

Expand All @@ -9,10 +8,3 @@ int main()

// The CxxTest "world"
<CxxTest world>


//
// Local Variables:
// compile-command: "perl test.pl"
// End:
//
Loading

0 comments on commit 5d1b37a

Please sign in to comment.