Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions examples.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,23 @@
host: localhost
port: 9009

- name: ilp-from-conf
lang: c
path: examples/line_sender_c_example_from_conf.c
header: |-
[C client library docs](https://github.com/questdb/c-questdb-client/blob/main/doc/C.md)
conf: tcp::addr=localhost:9009;
- name: ilp-from-conf
lang: c
path: examples/line_sender_c_example_from_conf.c
header: |-
[C client library docs](https://github.com/questdb/c-questdb-client/blob/main/doc/C.md)
conf: tcp::addr=localhost:9009;

- name: ilp-from-conf
lang: cpp
path: examples/line_sender_cpp_example_from_conf.cpp
header: |-
[C client library docs](https://github.com/questdb/c-questdb-client/blob/main/doc/CPP.md)
conf: tcp::addr=localhost:9009;
- name: ilp-from-conf
lang: cpp
path: examples/line_sender_cpp_example_from_conf.cpp
header: |-
[C client library docs](https://github.com/questdb/c-questdb-client/blob/main/doc/CPP.md)
conf: tcp::addr=localhost:9009;

- name: ilp-from-conf
lang: rust
path: questdb-rs/examples/from_conf.rs
header: |-
[Rust client library docs](https://docs.rs/crate/questdb-rs/latest)
conf: tcp::addr=localhost:9009;
- name: ilp-from-conf
lang: rust
path: questdb-rs/examples/from_conf.rs
header: |-
[Rust client library docs](https://docs.rs/crate/questdb-rs/latest)
conf: tcp::addr=localhost:9009;
13 changes: 13 additions & 0 deletions system_test/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,19 @@ def start(self):
env = dict(os.environ)
env['CARGO_TARGET_DIR'] = str(self._target_dir)
self._log_file = open(self._log_path, 'wb')

# Compile before running `cargo run`.
# Note that errors and output are purpously suppressed.
# This is just to exclude the build time from the start-up time.
# If there are build errors, they'll be reported later in the `run`
# call below.
subprocess.call(
['cargo', 'build'],
cwd=self._code_dir,
env=env,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)

self._proc = subprocess.Popen(
['cargo', 'run', str(self.qdb_ilp_port)],
cwd=self._code_dir,
Expand Down
11 changes: 11 additions & 0 deletions system_test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,17 @@ def test_bad_env_var(self):
with self.assertRaisesRegex(qls.SenderError, r'.*Environment variable QDB_CLIENT_CONF not set.*'):
qls._error_wrapped_call(qls._DLL.line_sender_from_env)

def test_manifest_yaml(self):
# Check the manifest file can be read as yaml.
try:
import yaml
except ImportError:
self.skipTest('Python version does not support yaml')
proj = Project()
manifest_path = proj.root_dir / 'examples.manifest.yaml'
with open(manifest_path, 'r') as f:
yaml.safe_load(f)


def parse_args():
parser = argparse.ArgumentParser('Run system tests.')
Expand Down