-
Notifications
You must be signed in to change notification settings - Fork 3
/
_test.csh
executable file
·42 lines (33 loc) · 1.21 KB
/
_test.csh
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
#!/bin/csh -f
set P = "psql tapdb datalab"
# CSV conversions
echo "=================="
echo "CSV TESTS"
echo "=================="
./fits2db --create --drop --csv -t foobar test.fits
./fits2db --create --drop --csv -t foobar test.fits | $P
$P -c "select * from foobar"
echo "=================="
./fits2db --create --drop --csv -t foobar --sid=serid test.fits
./fits2db --create --drop --csv -t foobar --sid=serid test.fits | $P
$P -c "select * from foobar"
echo "=================="
./fits2db --create --drop --csv -t foobar --sid=serid --rid=ranid test.fits
./fits2db --create --drop --csv -t foobar --sid=serid --rid=ranid test.fits | $P
$P -c "select * from foobar"
echo "=================="
echo "=================="
# Binary conversions
echo "=================="
echo "BINARY TESTS"
echo "=================="
./fits2db --create --drop --csv -t foobar -B test.fits | $P
$P -c "select * from foobar"
echo "=================="
./fits2db --create --drop --csv -t foobar -B --sid=serid test.fits | $P
$P -c "select * from foobar"
echo "=================="
./fits2db --create --drop --csv -t foobar -B --sid=serid --rid=ranid test.fits | $P
$P -c "select * from foobar"
# Clean up
psql tapdb datalab -c "drop table if exists foobar"