From dd354bc323cd3176c9676444f99b33b69d0a2062 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 14 May 2022 15:21:52 -0600 Subject: Create srv.dev-shell target in Makefile --- test.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 test.sh (limited to 'test.sh') 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" -- cgit v1.2.3