Skip to content

Commit

Permalink
Updated test suite for SWTbahn Standard. Removed unnecessary ignored …
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
Eugene Yip committed Jan 15, 2024
1 parent 8b41ee9 commit 1558ce5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ doc/
*.o
*.a
.idea/
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
.DS_Store
**/.vscode
**/.cache
2 changes: 1 addition & 1 deletion test/physical/swtbahn-standard/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc, char **argv) {
return 0;
}

if (bidib_start_serial("/dev/ttyUSB0", "../swtbahn-cli/configurations/swtbahn-standard", 200)) {
if (bidib_start_serial("/dev/ttyUSB0", "../../swtbahn-cli/configurations/swtbahn-standard", 200)) {
printf("testsuite: libbidib failed to start\n");
return 0;
}
Expand Down
14 changes: 7 additions & 7 deletions test/physical/swtbahn-standard/testsuite.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void testsuite_case_swtbahnStandardTrackCoverage(const char *train) {
testsuite_switch_point("point2", "normal");
testsuite_switch_point("point3", "normal");

testsuite_driveTo("seg12", 80, train);
testsuite_driveTo("seg12", 30, train);

testsuite_switch_point("point6", "reverse");
testsuite_switch_point("point8", "reverse");
Expand All @@ -125,27 +125,27 @@ void testsuite_case_swtbahnStandardTrackCoverage(const char *train) {
testsuite_switch_point("point9", "reverse");
testsuite_switch_point("point11", "reverse");

testsuite_driveToStop("seg37", 80, train);
testsuite_driveToStop("seg37", 30, train);

testsuite_switch_point("point12", "reverse");

testsuite_driveToStop("seg40", -80, train);
testsuite_driveToStop("seg40", -30, train);

testsuite_switch_point("point12", "normal");
testsuite_switch_point("point11", "normal");
testsuite_switch_point("point10", "normal");

testsuite_driveTo("seg28", 50, train);
testsuite_driveTo("seg28", 30, train);

testsuite_switch_point("point7", "normal");
testsuite_switch_point("point4", "normal");
testsuite_switch_point("point9", "normal");

testsuite_driveTo("seg21", 80, train);
testsuite_driveTo("seg21", 30, train);

testsuite_switch_point("point5", "normal");

testsuite_driveTo("seg28", 80, train);
testsuite_driveTo("seg28", 30, train);

testsuite_switch_point("point7", "reverse");
testsuite_switch_point("point8", "normal");
Expand All @@ -154,7 +154,7 @@ void testsuite_case_swtbahnStandardTrackCoverage(const char *train) {
testsuite_switch_point("point6", "normal");
testsuite_switch_point("point1", "reverse");

testsuite_driveToStop("seg4", 80, train);
testsuite_driveToStop("seg4", 30, train);

testsuite_switch_point("point1", "normal");

Expand Down

0 comments on commit 1558ce5

Please sign in to comment.