Skip to content

Commit

Permalink
use valve.rs 0.2.0 and bump up valve.py version
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmicu committed Jan 10, 2023
1 parent 9fa4072 commit 6463442
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ valve.rs/test/output: | valve.rs

test: pg_test sqlite_test

tables_to_test = column datatype rule table table1 table2 table3 table4 table5 table6
tables_to_test = column datatype rule table table1 table2 table3 table4 table5 table6 table7

pg_test: valve.rs/target/release/ontodev_valve cleantestout valve.rs/test/main.py valve.rs/test/insert_update.sh | valve.rs/test/output
@echo "Testing valve on postgresql ..."
Expand All @@ -40,6 +40,8 @@ pg_test: valve.rs/target/release/ontodev_valve cleantestout valve.rs/test/main.p
cd valve.rs && diff -q test/expected/messages.tsv test/output/messages.tsv
cd valve.rs && source .venv/bin/activate && test/main.py --insert_update test/src/table.tsv postgresql:///valve_postgres > /dev/null
cd valve.rs && source .venv/bin/activate && test/insert_update.sh postgresql:///valve_postgres
cd valve.rs && source .venv/bin/activate && scripts/export.py messages postgresql:///valve_postgres test/output/ $(tables_to_test)
cd valve.rs && diff -q test/expected/messages_after_api_test.tsv test/output/messages.tsv
@echo "Test succeeded!"

sqlite_test: valve.rs/target/release/ontodev_valve cleandb cleantestout valve.rs/test/main.py valve.rs/test/insert_update.sh | valve.rs/build/ valve.rs/test/output
Expand All @@ -50,6 +52,8 @@ sqlite_test: valve.rs/target/release/ontodev_valve cleandb cleantestout valve.rs
cd valve.rs && diff -q test/expected/messages.tsv test/output/messages.tsv
cd valve.rs && source .venv/bin/activate && test/main.py --insert_update test/src/table.tsv build/valve.db > /dev/null
cd valve.rs && source .venv/bin/activate && test/insert_update.sh build/valve.db
cd valve.rs && source .venv/bin/activate && scripts/export.py messages build/valve.db test/output/ $(tables_to_test)
cd valve.rs && diff -q test/expected/messages_after_api_test.tsv test/output/messages.tsv
@echo "Test succeeded!"

rs-version := $(shell grep valve\.rs VALVE.VERSION |awk '{print $$2}')
Expand Down
4 changes: 2 additions & 2 deletions VALVE.VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
valve.rs 0.1.14
valve.py 0.1.15
valve.rs 0.2.0
valve.py 0.2.0

0 comments on commit 6463442

Please sign in to comment.