-
Notifications
You must be signed in to change notification settings - Fork 81
/
run_tests.sh
executable file
·32 lines (21 loc) · 1.45 KB
/
run_tests.sh
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
#!/bin/bash
set -exu
TESTDIR="$(dirname "$(readlink -f "$0")")"
APPDIR=$TESTDIR/..
python $APPDIR/cassandradump.py --import-file $TESTDIR/test_keyspace_init.cql --sync
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace
diff -a $TESTDIR/full_export.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --import-file $TESTDIR/full_export.cql.expected
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace
diff -a $TESTDIR/full_export.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --import-file $TESTDIR/full_export.cql.expected --sync
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace
diff -a $TESTDIR/full_export.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table
diff -a $TESTDIR/cf_export.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table --no-create
diff -a $TESTDIR/cf_export_nocreate.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table --no-insert
diff -a $TESTDIR/cf_export_noinsert.cql.expected /tmp/dump.cql
python $APPDIR/cassandradump.py --export-file /tmp/dump.cql --filter "test_keyspace.twenty_rows_composite_table WHERE a = 'A' AND b = '19'"
diff -a $TESTDIR/filter.cql.expected /tmp/dump.cql