diff --git a/examples.manifest.yaml b/examples.manifest.yaml index d8a91b4f..0e5a0beb 100644 --- a/examples.manifest.yaml +++ b/examples.manifest.yaml @@ -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; diff --git a/system_test/fixture.py b/system_test/fixture.py index bc5e7c1f..88e802dc 100644 --- a/system_test/fixture.py +++ b/system_test/fixture.py @@ -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, diff --git a/system_test/test.py b/system_test/test.py index c57aab94..9d90bac6 100755 --- a/system_test/test.py +++ b/system_test/test.py @@ -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.')