From 0dc202f7776ba7ff58f3cbbbbbb712ef7a96bffa Mon Sep 17 00:00:00 2001 From: Alastair Ong Date: Thu, 7 Dec 2023 13:27:56 +0000 Subject: [PATCH] uncomment tests --- Cargo.lock | 2 +- run_test.sh | 208 ++++++++++++++++++++++++++-------------------------- 2 files changed, 105 insertions(+), 105 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8b767276..7a6ead41c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2685,7 +2685,7 @@ dependencies = [ [[package]] name = "holochain_scaffolding_cli" -version = "0.1.12" +version = "0.1.11" dependencies = [ "anyhow", "assert_cmd", diff --git a/run_test.sh b/run_test.sh index 4461418a8..1406daa39 100755 --- a/run_test.sh +++ b/run_test.sh @@ -38,110 +38,110 @@ npm t npm run package " -# rm -rf /tmp/forum-vue -# cd /tmp - -# hc-scaffold web-app forum-vue --setup-nix true --template vue -# cd forum-vue - -# hc-scaffold dna forum -# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ -# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea -# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post -# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ -# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash - -# hc-scaffold collection global all_posts post -# hc-scaffold collection by-author posts_by_author post -# hc-scaffold collection global all_likes like -# hc-scaffold collection global all_posts_entry_hash post:EntryHash -# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash - -# hc-scaffold link-type post like --delete true --bidireccional false -# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true -# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false -# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true - -# nix develop --command bash -c " -# set -e -# npm i -# npm run build -w ui -# npm t -# npm run package -# " - -# rm -rf /tmp/forum-lit -# cd /tmp - -# hc-scaffold web-app forum-lit --setup-nix true --template lit -# cd forum-lit - -# hc-scaffold dna forum -# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ -# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea -# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post -# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ -# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash - -# hc-scaffold collection global all_posts post -# hc-scaffold collection by-author posts_by_author post -# hc-scaffold collection global all_posts_entry_hash post:EntryHash -# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash -# hc-scaffold collection global all_likes like - -# hc-scaffold link-type post like --delete true --bidireccional false -# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true -# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false -# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true - -# nix develop --command bash -c " -# set -e -# npm i -# npm run build -w ui -# npm run format -w ui -# npm run lint -w ui -# npm t -# npm run package -# " - - -# rm -rf /tmp/forum-vanilla -# cd /tmp - -# hc-scaffold web-app forum-vanilla --setup-nix true --template vanilla -# cd forum-vanilla - -# hc-scaffold dna forum -# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ -# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea -# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post -# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ -# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash - -# hc-scaffold collection global all_posts post -# hc-scaffold collection by-author posts_by_author post -# hc-scaffold collection global all_posts_entry_hash post:EntryHash -# hc-scaffold collection global all_likes like -# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash - -# hc-scaffold link-type post like --delete true --bidireccional false -# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true -# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false -# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true - - -# nix develop --command bash -c " -# set -e -# npm i -# npm t -# npm run package -# " - -# rm -rf /tmp/hello-world -# cd /tmp - -# hc-scaffold example hello-world -# cd hello-world +rm -rf /tmp/forum-vue +cd /tmp + +hc-scaffold web-app forum-vue --setup-nix true --template vue +cd forum-vue + +hc-scaffold dna forum +hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ +hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea +hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post +hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ +hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash + +hc-scaffold collection global all_posts post +hc-scaffold collection by-author posts_by_author post +hc-scaffold collection global all_likes like +hc-scaffold collection global all_posts_entry_hash post:EntryHash +hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash + +hc-scaffold link-type post like --delete true --bidireccional false +hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true +hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false +hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true + +nix develop --command bash -c " +set -e +npm i +npm run build -w ui +npm t +npm run package +" + +rm -rf /tmp/forum-lit +cd /tmp + +hc-scaffold web-app forum-lit --setup-nix true --template lit +cd forum-lit + +hc-scaffold dna forum +hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ +hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea +hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post +hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ +hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash + +hc-scaffold collection global all_posts post +hc-scaffold collection by-author posts_by_author post +hc-scaffold collection global all_posts_entry_hash post:EntryHash +hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash +hc-scaffold collection global all_likes like + +hc-scaffold link-type post like --delete true --bidireccional false +hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true +hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false +hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true + +nix develop --command bash -c " +set -e +npm i +npm run build -w ui +npm run format -w ui +npm run lint -w ui +npm t +npm run package +" + + +rm -rf /tmp/forum-vanilla +cd /tmp + +hc-scaffold web-app forum-vanilla --setup-nix true --template vanilla +cd forum-vanilla + +hc-scaffold dna forum +hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/ +hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea +hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post +hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\::Like,string_list:Vec\ +hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash + +hc-scaffold collection global all_posts post +hc-scaffold collection by-author posts_by_author post +hc-scaffold collection global all_posts_entry_hash post:EntryHash +hc-scaffold collection global all_likes like +hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash + +hc-scaffold link-type post like --delete true --bidireccional false +hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true +hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false +hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true + + +nix develop --command bash -c " +set -e +npm i +npm t +npm run package +" + +rm -rf /tmp/hello-world +cd /tmp + +hc-scaffold example hello-world +cd hello-world nix develop --command bash -c " set -e