another directory rename: failstar -> fail
"failstar" sounds like a name for a cruise liner from the 80s. As "*" isn't a desirable part of directory names, just name the whole thing "fail/", the core parts being stored in "fail/core/". Additionally fixing two build system dependency issues: - missing jobserver -> protomessages dependency - broken bochs -> fail dependency (add_custom_target DEPENDS only allows plain file dependencies ... cmake for the win) git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@956 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
15
core/jobserver/messagedefs/CMakeLists.txt
Normal file
15
core/jobserver/messagedefs/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
## Setup desired protobuf descriptions HERE ##
|
||||
set(MY_PROTOS
|
||||
FailControlMessage.proto
|
||||
)
|
||||
|
||||
#### PROTOBUFS ####
|
||||
find_package(Protobuf REQUIRED)
|
||||
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${MY_PROTOS} )
|
||||
|
||||
## Build library
|
||||
add_library(protomessages ${PROTO_SRCS} ${PROTO_HDRS} )
|
||||
|
||||
16
core/jobserver/messagedefs/FailControlMessage.proto
Normal file
16
core/jobserver/messagedefs/FailControlMessage.proto
Normal file
@ -0,0 +1,16 @@
|
||||
message FailControlMessage {
|
||||
enum Command {
|
||||
// Minions may send these:
|
||||
NEED_WORK = 0; // server replies with WORK_FOLLOWS or DIE
|
||||
RESULT_FOLLOWS = 1; // followed by experiment-specific ExperimentData message (holding both original parameters and experiment result)
|
||||
|
||||
// JobServer may send these:
|
||||
WORK_FOLLOWS = 5; // followed by experiment-specific ExperimentData message
|
||||
COME_AGAIN = 6; // no experiment-specific ExperimentData at the moment, but Campaign is not over yet
|
||||
DIE = 7; // tells the client to terminate
|
||||
}
|
||||
|
||||
required Command command = 1;
|
||||
optional uint32 workloadID = 2;
|
||||
required uint64 build_id = 3; // identifying the client/server build (e.g., build time in unixtime format)
|
||||
}
|
||||
2
core/jobserver/messagedefs/protogen.sh
Executable file
2
core/jobserver/messagedefs/protogen.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
protoc --cpp_out=. FailControlMessage.proto
|
||||
Reference in New Issue
Block a user