forked from diesel-rs/diesel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
executable file
·18 lines (17 loc) · 862 Bytes
/
Copy pathtest
File metadata and controls
executable file
·18 lines (17 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e
if [ "$1" = "integration" ] && [ "$2" = "sqlite" ]; then
(cd diesel_tests && DATABASE_URL=/tmp/test.db cargo test --features "sqlite" --no-default-features)
elif [ "$1" = "integration" ]; then
(cd diesel_tests && cargo test --features "postgres" --no-default-features)
elif [ "$1" = "compile" ]; then
(cd diesel_compile_tests && cargo test)
else
(cd diesel && cargo test --no-default-features --features "chrono sqlite postgres")
(cd diesel_cli && cargo test --features "sqlite" --no-default-features)
(cd diesel_tests && DATABASE_URL=/tmp/test.db cargo test --features "sqlite" --no-default-features)
(cd examples && ./test_all)
(cd diesel_cli && cargo test --features "postgres" --no-default-features)
(cd diesel_tests && cargo test --features "postgres" --no-default-features)
(cd diesel_compile_tests && cargo test)
fi;