Skip to content

Commit 93fb191

Browse files
committed
chore: Rename Testcontainers for C to Testcontainers Native
This renames every instance of "Testcontainers for C", "Testcontainers C", and "testcontainers-c".
1 parent e71cb32 commit 93fb191

32 files changed

+121
-123
lines changed

.devcontainer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Testcontainers for C/C++. DevContainer
1+
# Testcontainers Native. DevContainer
22

33
This is an experimental Dev Container for the project site that
44
does not yet include the build tools.

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ build/
1414
/lib
1515

1616
# Generated files
17-
testcontainers-c/testcontainers-c.h
18-
testcontainers-c/testcontainers-c.so
19-
testcontainers-c/testcontainers.so
20-
testcontainers-c/testcontainers.dll
21-
testcontainers-c/testcontainers.h
17+
testcontainers-native/testcontainers-native.h
18+
testcontainers-native/testcontainers-native.so
19+
testcontainers-native/testcontainers.so
20+
testcontainers-native/testcontainers.dll
21+
testcontainers-native/testcontainers.h
2222
*.so
2323
*.out
2424
*.exe

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cmake_minimum_required (VERSION 3.16.3)
2-
project (TESTCONTAINERS-C)
2+
project (TESTCONTAINERS-NATIVE)
33

44
include(CTest)
55

6-
include_directories(${CMAKE_CURRENT_BINARY_DIR}/testcontainers-c)
6+
include_directories(${CMAKE_CURRENT_BINARY_DIR}/testcontainers-native)
77

8-
add_subdirectory(testcontainers-c)
8+
add_subdirectory(testcontainers-native)
99
add_subdirectory(modules)
1010
if(NOT DEFINED SKIP_DEMOS)
1111
add_subdirectory(demo)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![Slack: testcontainers-native on slack.testcontainers.org](https://img.shields.io/badge/Slack-%23testcontainers%E2%80%94native-brightgreen?style=flat&logo=slack)](https://slack.testcontainers.org/)
88
[![Stability: Experimental](https://masterminds.github.io/stability/experimental.svg)](https://masterminds.github.io/stability/experimental.html)
9-
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/oleg-nenashev/testcontainers-c)](https://github.com/oleg-nenashev/testcontainers-c/releases)
9+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/testcontainers/testcontainers-native)](https://github.com/testcontainers/testcontainers-native/releases)
1010

1111
!!! warning
1212
This is a prototype.
@@ -24,7 +24,7 @@ Also join the `#testcontainers-native` channel on the [Testcontainers Slack](htt
2424

2525
## Key Features
2626

27-
- _Testcontainers for C/C++_ - a shared library and C-style headers that can be used in native projects
27+
- _Testcontainers Native_ - a shared library and C-style headers that can be used in native projects
2828
- Support for [C](./docs/c/README.md), [C++](./docs/cpp/README.md), [Swift](./docs/swift/README.md) and other native projects.
2929
- Minimum viable Testcontainers API functionality:
3030
starting and terminating containers, passing files, exposing ports,
@@ -66,12 +66,12 @@ See [the examples and demos](./demo/README.md) for more examples.
6666
### Using in other languages
6767

6868
TL;DR: You get the C header file, a shared library object or a DLL file from the
69-
[Testcontainers for C](./docs/c/README.md) module.
69+
[Testcontainers for Native](./docs/c/README.md) module.
7070
Then, you can bind this native library in your project type.
7171
It allows supporting many other languages that support using
7272
native tooling via dynamically or statically linked libraries:
7373

74-
![Languages that can leverage Testcontainers for C](docs/images/supported-languages.png)
74+
![Languages that can leverage Testcontainers Native](docs/images/supported-languages.png)
7575

7676
Disclaimer:
7777
The schema above shows the most popular languages for Embedded systems,

ROADMAP.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
[![Slack: testcontainers-native on slack.testcontainers.org](https://img.shields.io/badge/Slack-%23testcontainers%E2%80%94native-brightgreen?style=flat&logo=slack)](http://slack.testcontainers.org/)
44

55
A full public roadmap is coming soon.
6-
See the [GitHub Issues](https://github.com/testcontainers/testcontainers-c/issues) and,
6+
See the [GitHub Issues](https://github.com/testcontainers/testcontainers-native/issues) and,
77
in particular,
88
the pinned issues to learn about the key initiatives on the table.
99

1010
## Key Objectives
1111

12-
What we want to do before 1.0:
12+
What we want to do before 1.0:
1313

14-
- [ ] Ensure sufficient feature parity with Testcontainers for Go ([#6](https://github.com/testcontainers/testcontainers-c/issues/6))
15-
- [ ] Add a C++ binding library and class-based headers ([#12](https://github.com/testcontainers/testcontainers-c/issues/12))
14+
- [ ] Ensure sufficient feature parity with Testcontainers for Go ([#6](https://github.com/testcontainers/testcontainers-native/issues/6))
15+
- [ ] Add a C++ binding library and class-based headers ([#12](https://github.com/testcontainers/testcontainers-native/issues/12))
1616
- [ ] Prototype and document support for other languages that
1717
leverage native libraries, in particular Swift
1818
- [x] Make Testcontainers Native an official project
1919
listed on the [Testcontainers site](https://testcontainers.com/)
2020
- [ ] Publish the project to common C/C++ package managers
21-
([vcpkg](https://github.com/testcontainers/testcontainers-c/issues/2),
22-
[Conan](https://github.com/testcontainers/testcontainers-c/issues/3))
21+
([vcpkg](https://github.com/testcontainers/testcontainers-native/issues/2),
22+
[Conan](https://github.com/testcontainers/testcontainers-native/issues/3))
2323

2424
## Discuss the Roadmap
2525

demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
## Usage in C/C++
44

55
- [Using the generic Testcontainer C API](./generic-container/README.md)
6-
- [Using Testcontainers C in Google Test (C++)](./google-test/README.md)
6+
- [Using Testcontainers Native in Google Test (C++)](./google-test/README.md)
77
- [Using the WireMock module](./wiremock/README.md)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
project(testcontainers-c-generic-container-demo
1+
project(testcontainers-native-generic-container-demo
22
VERSION 0.0.1
33
DESCRIPTION "Demonstrates usage of the generic container API in a simple main app")
44

55
set(TARGET_OUT demo_generic_container.out)
66

7-
include_directories(${testcontainers-c_SOURCE_DIR})
7+
include_directories(${testcontainers-native_SOURCE_DIR})
88
# WORKING_DIRECTORY breaks shared lib loading
99
file(COPY test_data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
1010

1111
# Vanilla Demo for WireMock
1212
add_executable(${TARGET_OUT} generic_container_demo.c)
13-
add_dependencies(${TARGET_OUT} testcontainers-c-shim)
14-
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-c)
13+
add_dependencies(${TARGET_OUT} testcontainers-native-shim)
14+
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-native)
1515
add_test(NAME generic_container_demo COMMAND ${TARGET_OUT})

demo/generic-container/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Demo - Generic Container on Testcontainers C
1+
# Demo - Generic Container on Testcontainers Native
22

3-
Demonstrates usage of the generic container API provided by the Testcontainers C library.
3+
Demonstrates usage of the generic container API provided by the Testcontainers Native library.
44
In this demo, we do not use any module SDKs or test frameworks, just a simple `main()` function.
55

66
## Running demo

demo/generic-container/generic_container_demo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <stdio.h>
2-
#include "testcontainers-c.h"
2+
#include "testcontainers-native.h"
33

44
#define DEFAULT_IMAGE "wiremock/wiremock:3.0.1-1"
55

66
int main() {
7-
printf("Using WireMock with the Testcontainers C binding:\n");
7+
printf("Using WireMock with the Testcontainers Native binding:\n");
88

99
printf("Creating new container: %s\n", DEFAULT_IMAGE);
1010
int requestId = tc_new_container_request(DEFAULT_IMAGE);
@@ -31,4 +31,3 @@ int main() {
3131
printf("Server Response: HTTP-%d\n%s\n\n", response.r0, response.r1);
3232
return 0;
3333
}
34-

demo/google-test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is based on https://google.github.io/googletest/quickstart-cmake.html
33
project(google-test-demo
44
VERSION 0.0.1
5-
DESCRIPTION "Demonstrates usage of Testcontainers C in Google Test")
5+
DESCRIPTION "Demonstrates usage of Testcontainers Native in Google Test")
66

77
set(TARGET_OUT ${PROJECT_NAME}.out)
88

@@ -21,8 +21,8 @@ enable_testing()
2121
file(COPY test_data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
2222

2323
add_executable(${TARGET_OUT} test.cpp)
24-
add_dependencies(${TARGET_OUT} testcontainers-c-shim)
25-
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-c)
24+
add_dependencies(${TARGET_OUT} testcontainers-native-shim)
25+
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-native)
2626
target_link_libraries(${TARGET_OUT} PRIVATE GTest::gtest_main)
2727

2828
include(GoogleTest)

0 commit comments

Comments
 (0)