forked from opencog/asmoses
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opencog#21 from Bitseat/restructure_moses_tests
Restructure moses/tests
- Loading branch information
Showing
42 changed files
with
142 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,8 @@ | ||
# | ||
# Tests are listed and run in more-or-less dependency order: | ||
# Later tests assume earlier tests pass. | ||
# | ||
ADD_SUBDIRECTORY (scoring) | ||
ADD_SUBDIRECTORY (metapopulation) | ||
ADD_SUBDIRECTORY (moses) | ||
ADD_SUBDIRECTORY (optimization) | ||
ADD_SUBDIRECTORY (representation) | ||
ADD_SUBDIRECTORY (main) | ||
|
||
ADD_CXXTEST(iostream_scored_combo_treeUTest) | ||
TARGET_LINK_LIBRARIES(iostream_scored_combo_treeUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(KnobTurningUTest) | ||
TARGET_LINK_LIBRARIES(KnobTurningUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
# requires boost::math; don't build if not found. | ||
IF(Boost_MATH_C99_FOUND) | ||
ADD_CXXTEST(NeighborSamplingUTest) | ||
TARGET_LINK_LIBRARIES(NeighborSamplingUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
ENDIF(Boost_MATH_C99_FOUND) | ||
|
||
|
||
ADD_CXXTEST(FieldSetUTest) | ||
TARGET_LINK_LIBRARIES(FieldSetUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(representationUTest) | ||
TARGET_LINK_LIBRARIES(representationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(scoringUTest) | ||
TARGET_LINK_LIBRARIES(scoringUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(metapopulationUTest) | ||
TARGET_LINK_LIBRARIES(metapopulationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(optimizationUTest) | ||
TARGET_LINK_LIBRARIES(optimizationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(MOSESUTest) | ||
TARGET_LINK_LIBRARIES(MOSESUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(weightedUTest) | ||
TARGET_LINK_LIBRARIES(weightedUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(mixedUTest) | ||
TARGET_LINK_LIBRARIES(mixedUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(irisUTest) | ||
TARGET_LINK_LIBRARIES(irisUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(selectionUTest) | ||
TARGET_LINK_LIBRARIES(selectionUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(dynFeatSelUTest) | ||
TARGET_LINK_LIBRARIES(dynFeatSelUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(AntUTest) | ||
TARGET_LINK_LIBRARIES(AntUTest | ||
ant_scoring | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# Tests are listed and run in more-or-less dependency order: | ||
# Later tests assume earlier tests pass. | ||
# | ||
ADD_CXXTEST(MOSESUTest) | ||
TARGET_LINK_LIBRARIES(MOSESUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(mixedUTest) | ||
TARGET_LINK_LIBRARIES(mixedUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(irisUTest) | ||
TARGET_LINK_LIBRARIES(irisUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(selectionUTest) | ||
TARGET_LINK_LIBRARIES(selectionUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(dynFeatSelUTest) | ||
TARGET_LINK_LIBRARIES(dynFeatSelUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(weightedUTest) | ||
TARGET_LINK_LIBRARIES(weightedUTest | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ADD_CXXTEST(metapopulationUTest) | ||
TARGET_LINK_LIBRARIES(metapopulationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# requires boost::math; don't build if not found. | ||
IF(Boost_MATH_C99_FOUND) | ||
ADD_CXXTEST(NeighborSamplingUTest) | ||
TARGET_LINK_LIBRARIES(NeighborSamplingUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
ENDIF(Boost_MATH_C99_FOUND) | ||
|
||
ADD_CXXTEST(AntUTest) | ||
TARGET_LINK_LIBRARIES(AntUTest | ||
ant_scoring | ||
asmoses_exec | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(iostream_scored_combo_treeUTest) | ||
TARGET_LINK_LIBRARIES(iostream_scored_combo_treeUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ADD_CXXTEST(optimizationUTest) | ||
TARGET_LINK_LIBRARIES(optimizationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ADD_CXXTEST(representationUTest) | ||
TARGET_LINK_LIBRARIES(representationUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
|
||
ADD_CXXTEST(KnobTurningUTest) | ||
TARGET_LINK_LIBRARIES(KnobTurningUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) | ||
ADD_CXXTEST(FieldSetUTest) | ||
TARGET_LINK_LIBRARIES(FieldSetUTest | ||
moses | ||
ascombo | ||
${COGUTIL_LIBRARY} | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# v2 is great at maximizing the precision of the target, while v1 is | ||
# great at maximizing the negative predictive value of the target | ||
target,v1,v2 | ||
0,0,0 | ||
0,1,0 | ||
0,0,0 | ||
0,1,0 | ||
0,1,0 | ||
1,0,0 | ||
1,0,0 | ||
1,0,1 | ||
1,0,1 | ||
1,0,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters