aboutsummaryrefslogtreecommitdiff
path: root/benchmark-synthetic.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-06-06 23:57:42 +0200
committerJakob Unterwurzacher2016-06-07 00:08:56 +0200
commitc2a5303eebc84d616072163f74eef8483c9f5386 (patch)
tree181ffdbb956eb76351d137a4fa9f52ed98b8f242 /benchmark-synthetic.bash
parent0f4d3501369e13c8ba6ee4c9fc7df02a3cc698b1 (diff)
tests: split example_filesystems into its own package
Running these tests from integration_tests' TestMain() was awkward because they were run twice with unchanged settings. integration_tests tests everything with OpenSSL and with native Go crypto, but this does not take affect for the example filesystems. To make this work, test_helpers is also split into its own package.
Diffstat (limited to 'benchmark-synthetic.bash')
-rwxr-xr-xbenchmark-synthetic.bash10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark-synthetic.bash b/benchmark-synthetic.bash
new file mode 100755
index 0000000..8c5c9ce
--- /dev/null
+++ b/benchmark-synthetic.bash
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Run the synthetic benchmarks that are built into gocryptfs using
+# "go test".
+
+set -eu
+
+source build.bash
+
+go test ./tests/integration_tests -bench=. -defaultonly