mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 10:33:27 +08:00
- Directory structure now matches common practices - Regression tests now run with pg_regress via the PGXS infrastructure. - Unit tests do not integrate well with pg_regress and have to be run separately. - Docker functionality is separate from main Makefile. Run with `make -f docker.mk` to build and `make -f docker.mk run` to run the database in a container.
17 lines
270 B
PL/PgSQL
17 lines
270 B
PL/PgSQL
DROP FUNCTION IF EXISTS unit_tests.example_test();
|
|
CREATE FUNCTION unit_tests.names_tests_start_set()
|
|
RETURNS test_result
|
|
AS
|
|
$$
|
|
DECLARE
|
|
message test_result;
|
|
ret_name NAME;
|
|
BEGIN
|
|
SELECT assert.ok('End of test.') INTO message;
|
|
RETURN message;
|
|
END
|
|
$$
|
|
LANGUAGE plpgsql;
|
|
|
|
|