This repository was archived by the owner on Feb 3, 2023. It is now read-only.
File tree 9 files changed +40
-87
lines changed
9 files changed +40
-87
lines changed Original file line number Diff line number Diff line change 99
99
command : nix-shell --run 'aws dynamodb list-tables --endpoint-url=http://localhost:8000'
100
100
- run :
101
101
name : app spec tests
102
- command : nix-shell --run hc-app-spec-test- sim1h
102
+ command : nix-shell --run ' hc-test- app-spec app_spec sim1h'
103
103
no_output_timeout : 20m
104
104
105
105
app-spec-tests-sim2h :
@@ -115,7 +115,7 @@ jobs:
115
115
no_output_timeout : 20m
116
116
- run :
117
117
name : app spec tests
118
- command : nix-shell --run hc-app-spec-test- sim2h
118
+ command : nix-shell --run ' hc-test- app-spec app_spec sim2h'
119
119
no_output_timeout : 20m
120
120
121
121
cluster-tests :
@@ -302,16 +302,10 @@ workflows:
302
302
- fmt
303
303
- app-spec-tests-sim1h
304
304
- app-spec-tests-sim2h
305
- # - app-spec-tests-memory
306
- # - app-spec-tests-websocket
307
- # @todo reimplement proc tests properly
308
- # i.e. don't copy and paste app spec and expec it to work with stale state
309
- # - app-spec-proc-tests
310
305
- cluster-tests
311
306
- cli-tests
312
307
- wasm-conductor-tests
313
- # @todo this was flakey
314
- # - stress-tests-sim1h
308
+ - stress-tests-sim1h
315
309
- stress-tests-sim2h
316
310
317
311
- docker-build-minimal :
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -euo pipefail
2
+ set -euxo pipefail
3
3
mkdir -p dist
4
4
5
5
echo " ===================================================================================="
6
6
echo " RUNNING cargo test for zomes"
7
- echo " Using conductor binary: ` which holochain` "
8
- echo " Using cli binary: ` which hc` "
7
+ echo " Using conductor binary: ` command -v holochain` "
8
+ echo " Using cli binary: ` command -v hc` "
9
9
echo " ------------------------------------------------------------------------------------"
10
10
11
11
cargo test --manifest-path zomes/blog/code/Cargo.toml
@@ -29,4 +29,6 @@ cd test
29
29
# more precisely symlinks are not supported without additional work on the host
30
30
# e.g. https://superuser.com/questions/1115329/vagrant-shared-folder-and-symbolic-links-under-windows-10
31
31
npm install --no-bin-links
32
- npm run test-ci
32
+ if [[ -z ${HC_APP_SPEC_BUILD_RUN:- } ]]
33
+ then npm run test-ci
34
+ fi
Original file line number Diff line number Diff line change 2
2
{
3
3
buildInputs = [ ]
4
4
++ ( pkgs . callPackage ./cluster_test { } ) . buildInputs
5
- ++ ( pkgs . callPackage ./test { } ) . buildInputs
6
5
;
7
6
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ../app_spec/build_and_test.sh
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ FROM holochain/holochain-rust:latest.${DOCKER_BRANCH}
3
3
4
4
RUN nix-shell --run hc-cli-install
5
5
RUN nix-shell --run hc-conductor-install
6
+ RUN nix-shell --run 'HC_APP_SPEC_BUILD_RUN=1 hc-test-app-spec app_spec sim1h'
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ FROM holochain/holochain-rust:latest.${DOCKER_BRANCH}
4
4
RUN nix-shell --run hc-sim2h-server-install
5
5
RUN nix-shell --run hc-cli-install
6
6
RUN nix-shell --run hc-conductor-install
7
+ RUN nix-shell --run 'HC_APP_SPEC_BUILD_RUN=1 hc-test-app-spec app_spec sim2h'
Original file line number Diff line number Diff line change
1
+ { pkgs } :
2
+ let
3
+
4
+ # (cd $app-spec-test-path && APP_SPEC_NETWORK_TYPE="$app-spec-test-network" ./build_and_test.sh);
5
+ hc-test-app-spec = pkgs . writeShellScriptBin "hc-test-app-spec" ''
6
+ set -euxo pipefail
7
+
8
+ export app_spec_test_path="'' ${1:-app_spec}"
9
+ export app_spec_test_network="'' ${2:-sim2h}"
10
+
11
+ hc-cli-install
12
+ hc-conductor-install
13
+
14
+ (cd $app_spec_test_path && APP_SPEC_NETWORK_TYPE="$app_spec_test_network" ./build_and_test.sh)
15
+
16
+ hc-cli-uninstall
17
+ hc-conductor-uninstall
18
+ '' ;
19
+ in
20
+ {
21
+ buildInputs = [
22
+ hc-test-app-spec
23
+ ] ;
24
+ }
Original file line number Diff line number Diff line change 16
16
++ ( pkgs . callPackage ./fmt {
17
17
pkgs = pkgs ;
18
18
} ) . buildInputs
19
+
20
+ ++ ( pkgs . callPackage ./app-spec {
21
+ pkgs = pkgs ;
22
+ } ) . buildInputs
19
23
;
20
24
}
You can’t perform that action at this time.
0 commit comments