Commit e38e6d43 authored by Elisa Gonzalez Boix's avatar Elisa Gonzalez Boix

changes on the testsuit and m2mi

-libraryTestSuite is divided into the ones that use m2mi and the rest for easy testing.
-runm2mpdeamon passes configuration parameter to java to use ipv4 instead of ipv6
parent a745823e
#!/bin/sh
java -cp m2mi.jar edu.rit.m2mp.Daemon
\ No newline at end of file
java -Djava.net.preferIPv4Stack=true -cp m2mi.jar edu.rit.m2mp.Daemon
\ No newline at end of file
......@@ -34,7 +34,7 @@ def LibraryTestSuiteModule := object: {
/.at.collections.vector.VectorTest(),
/.at.collections.list.ListTest(),
/.at.collections.queue.queueTest(),
/.bridges.crime.CrimeConnection.CrimeTest(),
/.bridges.crime.CrimeConnection.CrimeTest(),
/.demo.instantmessenger.InstantMessenger.InstantMessengerTest(),
/.demo.mobiTunes.MobiTunesTest(),
/.demo.metaprogramming,
......@@ -45,34 +45,50 @@ def LibraryTestSuiteModule := object: {
/.at.lang.traits.TraitsTest(),
/.at.lang.dynvars.DynVarTest(),
/.at.lang.multivalues.MultivalueTest(),
/.at.lang.leasedrefs.LeasedRefsTest(),
/.at.lang.oomatching.OOMatchModuleTest,
/.at.lang.leasedrefs.LeasedRefsTest(),
/.at.lang.oomatching.OOMatchModuleTest,
/.at.support.timer.TimerTest(),
/.at.support.util.UtilTest(),
/.at.lang.totam.TotamTest(),
/.test.bugfixes.BugFixTest(),
/.test.disconnectTest.DisconnectTest(),
/.test.tutorial.tutorialTestSuite,
// TODO: integrate BOTH ambient ref unit tests with the test suite
// /.at.lang.ambientrefs(/.at.discovery.ar_extensional_impl).AmbientRefsTest,
/.at.lang.ambientrefs(/.at.discovery.ar_intensional_impl).AmbientRefsTest,
/.bridges.m2mi.api.M2MITest,
/.at.discovery.discovery.DiscoveryModuleTest,
/.at.discovery.templatediscovery.TemplateDiscoveryModuleTest,
/.at.discovery.composition.DiscoveryCompositionModuleTest,
/.at.lang.ref_adaptors.AdaptorModuleTest,
/.demo.locationtracker.LocationTrackerTest,
/.test.tutorial.tutorialTestSuite,
/.test.serialization.SerializationTest(),
// /.at.discovery.deapspace.DEAPspaceProtocolTest,
/.test.collections.java.main.JavaCollectionsTestSuite
]);
def testATDistribution() {
/*
* Unit test suite for those tests requiring m2mi deamon.
*/
def m2miRelatedTestSuite := /.at.unit.test.TestSuite.new("atlib testsuite", [
// TODO: integrate BOTH ambient ref unit tests with the test suite
// /.at.lang.ambientrefs(/.at.discovery.ar_extensional_impl).AmbientRefsTest,
/.at.lang.ambientrefs(/.at.discovery.ar_intensional_impl).AmbientRefsTest,
/.bridges.m2mi.api.M2MITest,
/.at.discovery.discovery.DiscoveryModuleTest,
/.at.discovery.templatediscovery.TemplateDiscoveryModuleTest,
/.at.discovery.composition.DiscoveryCompositionModuleTest,
/.at.lang.ref_adaptors.AdaptorModuleTest,
/.demo.locationtracker.LocationTrackerTest,
/.at.discovery.deapspace.DEAPspaceProtocolTest
]);
def testATDistributionAndM2MI() {
// first perform a self-test to see if unit tests work
/.at.unit.test.selfTest()<-ifTrue: {
// then perform the standard unit test suite
StandardTestSuite.runTest();
};
/.at.unit.test.selfTest()<-ifTrue: {
// then perform the standard + m2mi unit test suite
StandardTestSuite.runTest();
m2miRelatedTestSuite.runtTest();
};
};
def testATDistribution() {
// first perform a self-test to see if unit tests work
/.at.unit.test.selfTest()<-ifTrue: {
// then perform the standard unit test suite
StandardTestSuite.runTest();
};
};
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment