Revision 257
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/test/input/SALVIAS_db.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
export in_engine=MySQL in_host=localhost in_user=bien in_database=salvias_plots |
|
1 |
engine=MySQL database=salvias_plots |
scripts/test/map | ||
---|---|---|
40 | 40 |
trace . "$in" |
41 | 41 |
( |
42 | 42 |
. "$in" |
43 |
if test "$in_host" = localhost -a "$in_user" = bien; then |
|
44 |
export in_password="$bien_password" |
|
45 |
test -n "$isNimoy" -a "$in_engine" = MySQL && \ |
|
46 |
in_user="$USER" in_password="$mysql_password" |
|
43 |
|
|
44 |
# defaults |
|
45 |
test -n "$host" || host=localhost |
|
46 |
if test -z "$user"; then |
|
47 |
if test -n "$isNimoy" -a "$engine" = MySQL; then |
|
48 |
user="$USER" password="$mysql_password" |
|
49 |
else |
|
50 |
user=bien password="$bien_password" |
|
51 |
fi |
|
47 | 52 |
fi |
53 |
|
|
54 |
for var in engine host user password database; do |
|
55 |
export in_$var="${!var}" |
|
56 |
done |
|
48 | 57 |
"$1" |
49 | 58 |
) |
50 | 59 |
else |
Also available in: Unified diff
test/map: Use db.sh syntax in *.sh tests