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
|
name: debian-sapi-generator-tool
|
||||||
on: push
|
on: pull_request
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -116,18 +116,18 @@ target_link_libraries(sapi_generator PUBLIC
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_executable(sapi_generator_tool
|
add_executable(sapi_generator_tool
|
||||||
compilation_database.cc
|
# compilation_database.cc
|
||||||
compilation_database.h
|
# compilation_database.h
|
||||||
generator_tool.cc
|
generator_tool.cc
|
||||||
)
|
)
|
||||||
target_link_libraries(sapi_generator_tool PRIVATE
|
#target_link_libraries(sapi_generator_tool PRIVATE
|
||||||
absl::statusor
|
# absl::statusor
|
||||||
sapi::base
|
# sapi::base
|
||||||
sapi::file_base
|
# sapi::file_base
|
||||||
sapi::file_helpers
|
# sapi::file_helpers
|
||||||
sapi::fileops
|
# sapi::fileops
|
||||||
sapi::generator
|
# sapi::generator
|
||||||
)
|
#)
|
||||||
if(SAPI_ENABLE_CLANG_TOOL_STATIC)
|
if(SAPI_ENABLE_CLANG_TOOL_STATIC)
|
||||||
target_link_options(sapi_generator_tool PRIVATE
|
target_link_options(sapi_generator_tool PRIVATE
|
||||||
# These work for both GCC and Clang
|
# These work for both GCC and Clang
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#if 0
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -154,11 +155,12 @@ absl::Status GeneratorMain(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace sapi
|
} // namespace sapi
|
||||||
|
#endif
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
if (absl::Status status = sapi::GeneratorMain(argc, argv); !status.ok()) {
|
printf("<not implemented>\n");
|
||||||
absl::FPrintF(stderr, "%s\n", status.message());
|
// if (absl::Status status = sapi::GeneratorMain(argc, argv); !status.ok()) {
|
||||||
return EXIT_FAILURE;
|
// absl::FPrintF(stderr, "%s\n", status.message());
|
||||||
}
|
// return EXIT_FAILURE;
|
||||||
|
// }
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user