diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-14 15:21:52 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-14 15:22:32 -0600 |
commit | dd354bc323cd3176c9676444f99b33b69d0a2062 (patch) | |
tree | 3b697ea833fa22dd0e067f2ef00997039950cfc9 /test.sh | |
parent | 7e87c09c50983a25ed7c9816e11a856903ed89d5 (diff) |
Create srv.dev-shell target in Makefile
Diffstat (limited to 'test.sh')
-rw-r--r-- | test.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test.sh b/test.sh deleted file mode 100644 index b45cd55..0000000 --- a/test.sh +++ /dev/null @@ -1,29 +0,0 @@ - -test_dir="$(mktemp -d)" - -mkdir -p "$test_dir"/run -mkdir -p "$test_dir"/data - -test_cfg="(import ./config.nix) // { - runDir=\"${test_dir}/run\"; - dataDir=\"${test_dir}/data\"; -}" - -entrypoint=$(nix-build --no-out-link -A entrypoint \ - --arg baseConfig "$test_cfg" \ - --arg skipServices '["srv"]') - -$entrypoint & -trap "kill $!; wait; rm -rf $test_dir" EXIT - -# NOTE this is a bit of a hack... the location of the redis socket's source of -# truth is in default.nix, but it's not clear how to get that from there to -# here, so we reproduce the calculation here. -while [ ! -e $test_dir/run/redis ]; do - echo "waiting for redis unix socket" - sleep 1 -done - -nix-shell -A srv.test \ - --arg baseConfig "$test_cfg" \ - --run "cd srv/src && go test ./... -count=1 -tags integration" |