mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Test Generator workflow
This commit is contained in:
parent
f708270f35
commit
49a0e5be04
@ -1,5 +1,5 @@
|
||||
name: debian-sapi-generator-tool
|
||||
on: push
|
||||
on: pull_request
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -116,18 +116,18 @@ target_link_libraries(sapi_generator PUBLIC
|
||||
)
|
||||
|
||||
add_executable(sapi_generator_tool
|
||||
compilation_database.cc
|
||||
compilation_database.h
|
||||
# compilation_database.cc
|
||||
# compilation_database.h
|
||||
generator_tool.cc
|
||||
)
|
||||
target_link_libraries(sapi_generator_tool PRIVATE
|
||||
absl::statusor
|
||||
sapi::base
|
||||
sapi::file_base
|
||||
sapi::file_helpers
|
||||
sapi::fileops
|
||||
sapi::generator
|
||||
)
|
||||
#target_link_libraries(sapi_generator_tool PRIVATE
|
||||
# absl::statusor
|
||||
# sapi::base
|
||||
# sapi::file_base
|
||||
# sapi::file_helpers
|
||||
# sapi::fileops
|
||||
# sapi::generator
|
||||
#)
|
||||
if(SAPI_ENABLE_CLANG_TOOL_STATIC)
|
||||
target_link_options(sapi_generator_tool PRIVATE
|
||||
# These work for both GCC and Clang
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#if 0
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -154,11 +155,12 @@ absl::Status GeneratorMain(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
} // namespace sapi
|
||||
|
||||
#endif
|
||||
int main(int argc, char* argv[]) {
|
||||
if (absl::Status status = sapi::GeneratorMain(argc, argv); !status.ok()) {
|
||||
absl::FPrintF(stderr, "%s\n", status.message());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
printf("<not implemented>\n");
|
||||
// if (absl::Status status = sapi::GeneratorMain(argc, argv); !status.ok()) {
|
||||
// absl::FPrintF(stderr, "%s\n", status.message());
|
||||
// return EXIT_FAILURE;
|
||||
// }
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user