Add simple tests and meson build. Maxim Orlov <m.orlov@postgrespro.ru>
[online_analyze.git] / meson.build
diff --git a/meson.build b/meson.build
new file mode 100644 (file)
index 0000000..798cd1c
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright (c) 2023, Postgres Professional
+
+online_analyze_sources = files(
+  'online_analyze.c'
+)
+
+if host_system == 'windows'
+  online_analyze_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
+    '--NAME', 'online_analyze',
+    '--FILEDESC', 'online_analyze - provides a set of features that immediately update statistics after INSERT, UPDATE, DELETE, or SELECT INTO operations for the affected tables.',])
+endif
+
+online_analyze = shared_module('online_analyze',
+  online_analyze_sources,
+  kwargs: contrib_mod_args,
+)
+contrib_targets += online_analyze
+
+tests += {
+  'name': 'online_analyze',
+  'sd': meson.current_source_dir(),
+  'bd': meson.current_build_dir(),
+  'regress': {
+    'sql': [
+      'online_analyze',
+    ],
+  },
+}