-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathMakefile
73 lines (52 loc) · 2.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
run_test:
@echo "\nRunning Tests\n"
@sh test/runTest.sh
run_test_nochecks:
@echo "\nRunning Tests - No Check\n"
@sh test/runTestNochecks.sh
performance_test:
@echo "\nDB Setup\n"
@createdb temporal_tables_test
@psql temporal_tables_test -q -f versioning_function.sql
@psql temporal_tables_test -q -f system_time_function.sql
@psql temporal_tables_test -q -f test/performance/setup.sql
@echo "\nRun Test\n"
@echo "Insert"
@psql temporal_tables_test -q -f test/performance/insert.sql
@echo "Update"
@psql temporal_tables_test -q -f test/performance/update.sql
@echo "Delete"
@psql temporal_tables_test -q -f test/performance/delete.sql
@echo "\nDB teardown\n"
@psql temporal_tables_test -q -f test/performance/teardown.sql
@psql -q -c "drop database temporal_tables_test;"
performance_test_nochecks:
@echo "\nDB Setup\n"
@createdb temporal_tables_test
@psql temporal_tables_test -q -f versioning_function_nochecks.sql
@psql temporal_tables_test -q -f system_time_function.sql
@psql temporal_tables_test -q -f test/performance/setup.sql
@echo "\nRun Test for NOCHECKS version\n"
@echo "Insert"
@psql temporal_tables_test -q -f test/performance/insert.sql
@echo "Update"
@psql temporal_tables_test -q -f test/performance/update.sql
@echo "Delete"
@psql temporal_tables_test -q -f test/performance/delete.sql
@echo "\nDB teardown\n"
@psql temporal_tables_test -q -f test/performance/teardown.sql
@psql -q -c "drop database temporal_tables_test;"
performance_test_original:
@echo "\nDB Setup\n"
@createdb temporal_tables_test
@psql temporal_tables_test -q -c "create extension temporal_tables"
@psql temporal_tables_test -q -f test/performance/setup.sql
@echo "\nRun Test for ORIGINAL version\n"
@echo "Insert"
@psql temporal_tables_test -q -f test/performance/insert.sql
@echo "Update"
@psql temporal_tables_test -q -f test/performance/update.sql
@echo "Delete"
@psql temporal_tables_test -q -f test/performance/delete.sql
@echo "\nDB teardown\n"
@psql -q -c "drop database temporal_tables_test;"